mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
r25960: Enable checks on the validity of the search base on sam.ldb in Samba4.
Remove bogus check to return NO_SUCH_ENTRY in ldap_backend.c, as this error is now correctly emited from ldb. Andrew Bartlett
This commit is contained in:
parent
deaac92f43
commit
ed57862b90
@ -300,10 +300,6 @@ reply:
|
||||
DEBUG(10,("SearchRequest: results: [%d]\n", res->count));
|
||||
result = LDAP_SUCCESS;
|
||||
errstr = NULL;
|
||||
} else if (res->count == 0) {
|
||||
DEBUG(10,("SearchRequest: no results\n"));
|
||||
result = LDAP_NO_SUCH_OBJECT;
|
||||
errstr = ldb_errstring(samdb);
|
||||
}
|
||||
if (res->controls) {
|
||||
done_r->msg->controls = res->controls;
|
||||
|
@ -23,6 +23,9 @@ sAMAccountType: INTEGER
|
||||
systemFlags: INTEGER
|
||||
userAccountControl: INTEGER
|
||||
|
||||
dn: @OPTIONS
|
||||
checkBaseOnSearch: TRUE
|
||||
|
||||
dn: @KLUDGEACL
|
||||
passwordAttribute: sambaPassword
|
||||
passwordAttribute: ntPwdHash
|
||||
|
@ -4,6 +4,7 @@ partition: ${CONFIGDN}:${CONFIGDN_LDB}
|
||||
partition: ${DOMAINDN}:${DOMAINDN_LDB}
|
||||
replicateEntries: @ATTRIBUTES
|
||||
replicateEntries: @INDEXLIST
|
||||
replicateEntries: @OPTIONS
|
||||
modules:${SCHEMADN}:${SCHEMADN_MOD}${SCHEMADN_MOD2}
|
||||
modules:${CONFIGDN}:${CONFIGDN_MOD}${CONFIGDN_MOD2}
|
||||
modules:${DOMAINDN}:${DOMAINDN_MOD}${DOMAINDN_MOD2}
|
||||
|
Loading…
Reference in New Issue
Block a user