summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-12-19 23:57:48 +0000
committerJeremy Allison <jra@samba.org>2000-12-19 23:57:48 +0000
commit7bf9d8ce4bb7e96a4c72f674e21d015b1ef1481e (patch)
tree7f143422e11c062a31e011625abb8a0d579d637f /source3/libsmb
parent0f95385d2887a50abbfed7ffe5631f13287bd4b4 (diff)
downloadsamba-7bf9d8ce4bb7e96a4c72f674e21d015b1ef1481e.tar.gz
samba-7bf9d8ce4bb7e96a4c72f674e21d015b1ef1481e.tar.bz2
samba-7bf9d8ce4bb7e96a4c72f674e21d015b1ef1481e.zip
Fixed bug found by Gerald. If a Samba server joins a domain and is set
to search for a DC to authenticate to using the "*" syntax than ensure that for the first hour after the password change is searches for the PDC using the 1B name not the 1C name as domain replication may not have occured. Jeremy. (This used to be commit c25533de9918ed9b0c79fd039e11d1b79f513db0)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index a8cc2fcf3a..fa90691a95 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -1063,7 +1063,7 @@ NT GETDC call, UNICODE, NT domain SID and uncle tom cobbley and all...
/********************************************************
Get the IP address list of the PDC/BDC's of a Domain.
*********************************************************/
-BOOL get_dc_list(char *group, struct in_addr **ip_list, int *count)
+BOOL get_dc_list(BOOL pdc_only, char *group, struct in_addr **ip_list, int *count)
{
- return internal_resolve_name(group, 0x1C, ip_list, count);
+ return internal_resolve_name(group, pdc_only ? 0x1B : 0x1C, ip_list, count);
}