svn commit: samba r20322 - in branches/SAMBA_4_0/source/ldap_server: .

metze at samba.org metze at samba.org
Fri Dec 22 17:40:35 GMT 2006


Author: metze
Date: 2006-12-22 17:40:34 +0000 (Fri, 22 Dec 2006)
New Revision: 20322

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

Log:
I assume the options attribute of the nTDSDSA object contains
mutiple flags not just 1 for being a global catalog

metze
Modified:
   branches/SAMBA_4_0/source/ldap_server/ldap_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c
===================================================================
--- branches/SAMBA_4_0/source/ldap_server/ldap_server.c	2006-12-22 17:39:01 UTC (rev 20321)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c	2006-12-22 17:40:34 UTC (rev 20322)
@@ -485,8 +485,8 @@
 	talloc_free(res);
 	talloc_free(ldb);
 
-	/* if options attribute is 1, then enable the global catlog */
-	if (options == 1) {
+	/* if options attribute has the 0x00000001 flag set, then enable the global catlog */
+	if (options & 0x000000001) {
 		port = 3268;
 		status = stream_setup_socket(event_context, model_ops, &ldap_stream_ops, 
 					     "ipv4", address, &port, ldap_service);



More information about the samba-cvs mailing list