mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +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));
|
DEBUG(10,("SearchRequest: results: [%d]\n", res->count));
|
||||||
result = LDAP_SUCCESS;
|
result = LDAP_SUCCESS;
|
||||||
errstr = NULL;
|
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) {
|
if (res->controls) {
|
||||||
done_r->msg->controls = res->controls;
|
done_r->msg->controls = res->controls;
|
||||||
|
@ -23,6 +23,9 @@ sAMAccountType: INTEGER
|
|||||||
systemFlags: INTEGER
|
systemFlags: INTEGER
|
||||||
userAccountControl: INTEGER
|
userAccountControl: INTEGER
|
||||||
|
|
||||||
|
dn: @OPTIONS
|
||||||
|
checkBaseOnSearch: TRUE
|
||||||
|
|
||||||
dn: @KLUDGEACL
|
dn: @KLUDGEACL
|
||||||
passwordAttribute: sambaPassword
|
passwordAttribute: sambaPassword
|
||||||
passwordAttribute: ntPwdHash
|
passwordAttribute: ntPwdHash
|
||||||
|
@ -4,6 +4,7 @@ partition: ${CONFIGDN}:${CONFIGDN_LDB}
|
|||||||
partition: ${DOMAINDN}:${DOMAINDN_LDB}
|
partition: ${DOMAINDN}:${DOMAINDN_LDB}
|
||||||
replicateEntries: @ATTRIBUTES
|
replicateEntries: @ATTRIBUTES
|
||||||
replicateEntries: @INDEXLIST
|
replicateEntries: @INDEXLIST
|
||||||
|
replicateEntries: @OPTIONS
|
||||||
modules:${SCHEMADN}:${SCHEMADN_MOD}${SCHEMADN_MOD2}
|
modules:${SCHEMADN}:${SCHEMADN_MOD}${SCHEMADN_MOD2}
|
||||||
modules:${CONFIGDN}:${CONFIGDN_MOD}${CONFIGDN_MOD2}
|
modules:${CONFIGDN}:${CONFIGDN_MOD}${CONFIGDN_MOD2}
|
||||||
modules:${DOMAINDN}:${DOMAINDN_MOD}${DOMAINDN_MOD2}
|
modules:${DOMAINDN}:${DOMAINDN_MOD}${DOMAINDN_MOD2}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user