diff options
author | Luke Leighton <lkcl@samba.org> | 1999-12-08 23:03:42 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-12-08 23:03:42 +0000 |
commit | d45f5cf6b055f72ad30d5ae2b2fd7f42dbab1ed2 (patch) | |
tree | d0c379c4e6487da5410a439ae509e4e1a6f234da /source3/lib | |
parent | 6281c5d7a94d8f5bfec835aa147e7aa8bab15bb2 (diff) | |
download | samba-d45f5cf6b055f72ad30d5ae2b2fd7f42dbab1ed2.tar.gz samba-d45f5cf6b055f72ad30d5ae2b2fd7f42dbab1ed2.tar.bz2 samba-d45f5cf6b055f72ad30d5ae2b2fd7f42dbab1ed2.zip |
jerry spotted that get_domain_sids() was being called with the wrong
arguments: get_any_dc_name() was being called with a server name
not a domain name. oops.
(This used to be commit 631814302d6992138cfe024ba7bd456cc7e0d3bf)
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; } |