summaryrefslogtreecommitdiff
path: root/source4/cldap_server
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-10-02 21:58:46 -0700
committerAndrew Tridgell <tridge@samba.org>2008-10-02 21:58:46 -0700
commitc5fdb82d3280a0c94c9b15be0090c08675338159 (patch)
tree80b915cad1a468c8eebef59c526a2ef55575eba4 /source4/cldap_server
parentbfb3bf6eb0ac1790c79e5b57cda099503f6084d5 (diff)
downloadsamba-c5fdb82d3280a0c94c9b15be0090c08675338159.tar.gz
samba-c5fdb82d3280a0c94c9b15be0090c08675338159.tar.bz2
samba-c5fdb82d3280a0c94c9b15be0090c08675338159.zip
fixed the sense of ldb base dn comparisons in two places, and use a
direct comparison instead of a sub-tree comparison in another this fixes basedn searches on the global catalog port
Diffstat (limited to 'source4/cldap_server')
-rw-r--r--source4/cldap_server/netlogon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index 7dccd81fad..b31e89b7a5 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -301,7 +301,7 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
server_type |= NBT_SERVER_KDC;
}
- if (!ldb_dn_compare_base(ldb_get_root_basedn(sam_ctx), ldb_get_default_basedn(sam_ctx))) {
+ if (ldb_dn_compare(ldb_get_root_basedn(sam_ctx), ldb_get_default_basedn(sam_ctx)) == 0) {
server_type |= NBT_SERVER_DS_DNS_FOREST;
}