Ticket 47821 - deref plugin cannot handle complex acis
Bug Description: the deref plugin does not return attributes if
the access depends on rules requireing
the entry
Fix Description: do the access check after the entry is retrieved
https://fedorahosted.org/389/ticket/47821
Reviewed by: mark, thanks
Conflicts:
ldap/servers/plugins/deref/deref.c