diff options
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/sids.c | 3 | ||||
-rw-r--r-- | source3/lib/util_pwdb.c | 13 |
2 files changed, 3 insertions, 13 deletions
diff --git a/source3/lib/sids.c b/source3/lib/sids.c index efbd03fbf3..712eef8a0d 100644 --- a/source3/lib/sids.c +++ b/source3/lib/sids.c @@ -199,8 +199,7 @@ BOOL get_member_domain_sid(void) } } - return get_domain_sids(global_myname, NULL, - &global_member_sid, lp_workgroup()); + return get_domain_sids(lp_workgroup(), NULL, &global_member_sid); } diff --git a/source3/lib/util_pwdb.c b/source3/lib/util_pwdb.c index 006a68b2c1..d4058b8099 100644 --- a/source3/lib/util_pwdb.c +++ b/source3/lib/util_pwdb.c @@ -625,17 +625,8 @@ BOOL pwdb_initialise(BOOL is_server) } else { - char *srvs; - if (lp_server_role() == ROLE_DOMAIN_PDC) - { - srvs = global_myname; - } - else - { - srvs = lp_passwordserver(); - } - if (!get_domain_sids(global_myname, &global_member_sid, - &global_sam_sid, srvs)) + if (!get_domain_sids(lp_workgroup(), &global_member_sid, + &global_sam_sid)) { return False; } |