version 1.2, 2007/09/07 10:20:24
|
version 1.4, 2008/01/07 23:20:14
|
Line 1
|
Line 1
|
/* compare.c - sock backend compare function */ |
/* 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.3 2007/12/26 23:51:45 hyc Exp $ */ |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. |
* |
* |
* Copyright 1998-2007 The OpenLDAP Foundation. |
* Copyright 1998-2008 The OpenLDAP Foundation. |
* All rights reserved. |
* All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
Line 48 sock_back_compare(
|
Line 48 sock_back_compare(
|
e.e_private = NULL; |
e.e_private = NULL; |
|
|
if ( ! access_allowed( op, &e, |
if ( ! access_allowed( op, &e, |
entry, NULL, ACL_READ, NULL ) ) |
entry, NULL, ACL_COMPARE, NULL ) ) |
{ |
{ |
send_ldap_error( op, rs, LDAP_INSUFFICIENT_ACCESS, NULL ); |
send_ldap_error( op, rs, LDAP_INSUFFICIENT_ACCESS, NULL ); |
return -1; |
return -1; |