--- servers/slapd/back-sock/compare.c 2007/09/07 10:20:24 1.2 +++ servers/slapd/back-sock/compare.c 2008/02/09 00:46:09 1.4.2.1 @@ -1,8 +1,8 @@ /* compare.c - sock backend compare function */ -/* $OpenLDAP: pkg/ldap/servers/slapd/back-sock/compare.c,v 1.1 2007/09/07 10:04:55 hyc Exp $ */ +/* $OpenLDAP: pkg/ldap/servers/slapd/back-sock/compare.c,v 1.4 2008/01/07 23:20:14 kurt Exp $ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2007 The OpenLDAP Foundation. + * Copyright 1998-2008 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -48,7 +48,7 @@ sock_back_compare( e.e_private = NULL; if ( ! access_allowed( op, &e, - entry, NULL, ACL_READ, NULL ) ) + entry, NULL, ACL_COMPARE, NULL ) ) { send_ldap_error( op, rs, LDAP_INSUFFICIENT_ACCESS, NULL ); return -1;