s4-ldb: Changes the aclread module to use LDB_HANDLE_FLAG_UNTRUSTED to determine...
authorNadezhda Ivanova <nivanova@samba.org>
Wed, 27 Oct 2010 11:04:03 +0000 (14:04 +0300)
committerNadezhda Ivanova <nivanova@samba.org>
Wed, 27 Oct 2010 11:55:11 +0000 (11:55 +0000)
commit3003bd40379b669e8b2cef7a40784f0114344f8e
tree05820473372336d6ffe459765ae0335d3bc56a65
parentb1f6a2be271881cb93764b54dc89d35f4467f1fb
s4-ldb: Changes the aclread module to use LDB_HANDLE_FLAG_UNTRUSTED to determine the source of the request

The aclread module used to use a control to make sure the request comes from the ldap server,
but now the rootdse filters out any unregistered controls comming from ldap, so the control is
lost. Using the LDB_HANDLE_FLAG_UNTRUSTED is a much more elegant solution.

Autobuild-User: Nadezhda Ivanova <nivanova@samba.org>
Autobuild-Date: Wed Oct 27 11:55:11 UTC 2010 on sn-devel-104
source4/dsdb/samdb/ldb_modules/acl_read.c
source4/dsdb/samdb/samdb.h
source4/ldap_server/ldap_backend.c
source4/libcli/ldap/ldap_controls.c