]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-sock/compare.c
More for ITS#5860
[openldap] / servers / slapd / back-sock / compare.c
index 73d138615e45ae72b4cc1716b2b31333c2df3aae..3712b665efc8fa01e6e5118f80ace59083106dfc 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2007 The OpenLDAP Foundation.
+ * Copyright 1998-2009 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * top-level directory of the distribution or, alternatively, at
  * <http://www.OpenLDAP.org/license.html>.
  */
+/* 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;