--- servers/slapd/back-sock/compare.c 2007/09/07 10:04:55 1.1 +++ servers/slapd/back-sock/compare.c 2011/01/04 23:50:44 1.4.2.4 @@ -1,8 +1,8 @@ /* compare.c - sock backend compare function */ -/* $OpenLDAP$ */ +/* $OpenLDAP: pkg/ldap/servers/slapd/back-sock/compare.c,v 1.4.2.3 2010/04/13 20:23:40 kurt Exp $ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2007 The OpenLDAP Foundation. + * Copyright 1998-2011 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -13,6 +13,10 @@ * top-level directory of the distribution or, alternatively, at * . */ +/* ACKNOWLEDGEMENTS: + * This work was initially developed by Brian Candler for inclusion + * in OpenLDAP Software. + */ #include "portable.h" @@ -44,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;