--- servers/slapd/back-sock/compare.c 2007/09/07 10:04:55 1.1
+++ servers/slapd/back-sock/compare.c 2008/01/07 23:20:14 1.4
@@ -1,8 +1,8 @@
/* compare.c - sock backend compare function */
-/* $OpenLDAP$ */
+/* $OpenLDAP: pkg/ldap/servers/slapd/back-sock/compare.c,v 1.3 2007/12/26 23:51:45 hyc 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
@@ -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;