Skip to content
Snippets Groups Projects
Commit b0a0ac49 authored by Howard Chu's avatar Howard Chu
Browse files

Require compare (not read) access to entry attr for compare ops

parent 64f81ee4
No related branches found
No related tags found
No related merge requests found
......@@ -186,11 +186,8 @@ to the underlying program.
The
.B compare
operation requires
.B read (=r)
access (FIXME: wouldn't
.B compare (=c)
be a more appropriate choice?)
to the
access to the
.B entry
pseudo-attribute
of the object whose value is being asserted;
......
......@@ -48,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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment