diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-06-14 23:52:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:09:08 -0500 |
commit | 3b87db50626e5e26292d2ec6e0c621de76d2097c (patch) | |
tree | 15650739dd643b726d2d3ab2b36d577203d6e75c | |
parent | 1fde679daec85e2d9c24a05566a8bae18a6ee0fb (diff) | |
download | samba-3b87db50626e5e26292d2ec6e0c621de76d2097c.tar.gz samba-3b87db50626e5e26292d2ec6e0c621de76d2097c.tar.xz samba-3b87db50626e5e26292d2ec6e0c621de76d2097c.zip |
r16239: Search for the domain in the correct partition, so this will work with
LDAP backends.
Andrew Bartlett
(This used to be commit 270a77bfff65c9e1d5d7c535338f9b9b86d53fa3)
-rw-r--r-- | source4/nbt_server/dgram/netlogon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/nbt_server/dgram/netlogon.c b/source4/nbt_server/dgram/netlogon.c index c50c0ba1c0b..9a6b8a2887b 100644 --- a/source4/nbt_server/dgram/netlogon.c +++ b/source4/nbt_server/dgram/netlogon.c @@ -109,6 +109,7 @@ static void nbtd_netlogon_getdc2(struct dgram_mailslot_handler *dgmslot, int ret; const char **services = lp_server_services(); const char *my_ip = reply_iface->ip_address; + const struct ldb_dn *partitions_basedn = ldb_dn_string_compose(packet, samdb_base_dn(packet), "CN=Partitions,CN=Configuration"); if (!my_ip) { DEBUG(0, ("Could not obtain own IP address for datagram socket\n")); return; @@ -125,7 +126,7 @@ static void nbtd_netlogon_getdc2(struct dgram_mailslot_handler *dgmslot, return; } - ret = gendb_search(samctx, samctx, NULL, &ref_res, ref_attrs, + ret = gendb_search(samctx, samctx, partitions_basedn, &ref_res, ref_attrs, "(&(&(nETBIOSName=%s)(objectclass=crossRef))(ncName=*))", name->name); |