summaryrefslogtreecommitdiff
path: root/source3/lib/util_pwdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/util_pwdb.c')
-rw-r--r--source3/lib/util_pwdb.c13
1 files changed, 2 insertions, 11 deletions
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;
}