mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Require compare (not read) access to entry attr for compare ops
This commit is contained in:
parent
64f81ee43b
commit
b0a0ac4914
@ -186,11 +186,8 @@ to the underlying program.
|
|||||||
The
|
The
|
||||||
.B compare
|
.B compare
|
||||||
operation requires
|
operation requires
|
||||||
.B read (=r)
|
|
||||||
access (FIXME: wouldn't
|
|
||||||
.B compare (=c)
|
.B compare (=c)
|
||||||
be a more appropriate choice?)
|
access to the
|
||||||
to the
|
|
||||||
.B entry
|
.B entry
|
||||||
pseudo-attribute
|
pseudo-attribute
|
||||||
of the object whose value is being asserted;
|
of the object whose value is being asserted;
|
||||||
|
@ -48,7 +48,7 @@ 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user