X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-sock%2Fcompare.c;h=3712b665efc8fa01e6e5118f80ace59083106dfc;hb=0121f8c01dcdef0827c8e6a1770d0a5ae3b0806e;hp=73d138615e45ae72b4cc1716b2b31333c2df3aae;hpb=b6827c75a802a7003d0d94ba12dce854efeb16fb;p=openldap
diff --git a/servers/slapd/back-sock/compare.c b/servers/slapd/back-sock/compare.c
index 73d138615e..3712b665ef 100644
--- a/servers/slapd/back-sock/compare.c
+++ b/servers/slapd/back-sock/compare.c
@@ -2,7 +2,7 @@
/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software .
*
- * 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
@@ -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;