svn commit: samba r19726 - in branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules: .

metze at samba.org metze at samba.org
Wed Nov 15 17:35:24 GMT 2006


Author: metze
Date: 2006-11-15 17:35:24 +0000 (Wed, 15 Nov 2006)
New Revision: 19726

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19726

Log:
when a client explicit asks for the 'netlogon' attriubute on LDAP
the result entry is skipped!

metze
Modified:
   branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c


Changeset:
Modified: branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c
===================================================================
--- branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c	2006-11-15 17:34:20 UTC (rev 19725)
+++ branches/SAMBA_4_0/source/dsdb/samdb/ldb_modules/rootdse.c	2006-11-15 17:35:24 UTC (rev 19726)
@@ -151,6 +151,15 @@
 	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) {



More information about the samba-cvs mailing list