diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-11-15 17:35:24 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:28:14 -0500 |
commit | 76d0193bf3cc12fde1ce454a17a334d97b4533f3 (patch) | |
tree | e2047e430c60cad9c3604814676757410337fb6b /source4/dsdb/samdb | |
parent | 146a4ff13a56ac5d72203adbf47c6cd53e892b32 (diff) | |
download | samba-76d0193bf3cc12fde1ce454a17a334d97b4533f3.tar.gz samba-76d0193bf3cc12fde1ce454a17a334d97b4533f3.tar.bz2 samba-76d0193bf3cc12fde1ce454a17a334d97b4533f3.zip |
r19726: when a client explicit asks for the 'netlogon' attriubute on LDAP
the result entry is skipped!
metze
(This used to be commit 62aa73f3d56596780fc82fecbc99c688ecbf5b08)
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/rootdse.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/rootdse.c b/source4/dsdb/samdb/ldb_modules/rootdse.c index c174ac65a1..371031be26 100644 --- a/source4/dsdb/samdb/ldb_modules/rootdse.c +++ b/source4/dsdb/samdb/ldb_modules/rootdse.c @@ -151,6 +151,15 @@ static int rootdse_callback(struct ldb_context *ldb, void *context, struct ldb_r ac = talloc_get_type(context, struct rootdse_context); if (ares->type == LDB_REPLY_ENTRY) { + /* + * if the client explicit asks for the 'netlogon' attribute + * the reply_entry needs to be skipped + */ + if (ac->attrs && ldb_attr_in_list(ac->attrs, "netlogon")) { + talloc_free(ares); + return LDB_SUCCESS; + } + /* for each record returned post-process to add any dynamic attributes that have been asked for */ if (rootdse_add_dynamic(ac->module, ares->message, ac->attrs) != LDB_SUCCESS) { |