diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/sids.c | 6 | ||||
-rw-r--r-- | source3/lib/util_pwdb.c | 5 |
2 files changed, 7 insertions, 4 deletions
diff --git a/source3/lib/sids.c b/source3/lib/sids.c index 4a2a5d4805..8a289bcea7 100644 --- a/source3/lib/sids.c +++ b/source3/lib/sids.c @@ -172,13 +172,13 @@ BOOL get_member_domain_sid(void) } } - return get_domain_sids(NULL, &global_member_sid); + return get_domain_sids(NULL, &global_member_sid, lp_passwordserver()); } /**************************************************************************** obtain the sid from the PDC. do some verification along the way... ****************************************************************************/ -BOOL get_domain_sids(DOM_SID *sid3, DOM_SID *sid5) +BOOL get_domain_sids(DOM_SID *sid3, DOM_SID *sid5, char *servers) { POLICY_HND pol; fstring srv_name; @@ -193,7 +193,7 @@ BOOL get_domain_sids(DOM_SID *sid3, DOM_SID *sid5) return False; } - if (!cli_connect_serverlist(&cli, lp_passwordserver())) + if (!cli_connect_serverlist(&cli, servers)) { DEBUG(0,("get_member_domain_sid: unable to initialise client connection.\n")); return False; diff --git a/source3/lib/util_pwdb.c b/source3/lib/util_pwdb.c index 8008e9de71..7e7eb0da8b 100644 --- a/source3/lib/util_pwdb.c +++ b/source3/lib/util_pwdb.c @@ -31,6 +31,9 @@ extern DOM_SID global_member_sid; extern fstring global_myworkgroup; extern DOM_SID global_sid_S_1_5_20; + +extern pstring global_myname; + /* * A list of the rids of well known BUILTIN and Domain users * and groups. @@ -443,7 +446,7 @@ BOOL pwdb_initialise(BOOL is_server) } else { - if (!get_domain_sids(&global_member_sid, &global_sam_sid)) + if (!get_domain_sids(&global_member_sid, &global_sam_sid, global_myname)) { return False; } |