r20322: I assume the options attribute of the nTDSDSA object contains
authorStefan Metzmacher <metze@samba.org>
Fri, 22 Dec 2006 17:40:34 +0000 (17:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:29:40 +0000 (14:29 -0500)
mutiple flags not just 1 for being a global catalog

metze

source/ldap_server/ldap_server.c

index c459c27961e36e457475c9de47fb0f15f3aae827..4a05ac88515f71c1dcd279df8bcc424c234d8fdb 100644 (file)
@@ -485,8 +485,8 @@ static NTSTATUS add_socket(struct event_context *event_context,
        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);