diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-12-22 17:40:34 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:29:40 -0500 |
commit | 9f2945b00d3ceff42991cce57b05cec48fac18c6 (patch) | |
tree | e6934b76f705bf9db5cccddd44d62933cc6b8cbb | |
parent | 37ad9ee7cc0af916cfd8cd901fb8fd4019170067 (diff) | |
download | samba-9f2945b00d3ceff42991cce57b05cec48fac18c6.tar.gz samba-9f2945b00d3ceff42991cce57b05cec48fac18c6.tar.bz2 samba-9f2945b00d3ceff42991cce57b05cec48fac18c6.zip |
r20322: I assume the options attribute of the nTDSDSA object contains
mutiple flags not just 1 for being a global catalog
metze
(This used to be commit 202645e196b1425f9043bd34dd02a1418e2e3dd9)
-rw-r--r-- | source4/ldap_server/ldap_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index c459c27961..4a05ac8851 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -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); |