diff options
author | Gerald Carter <jerry@samba.org> | 1999-12-09 07:06:12 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 1999-12-09 07:06:12 +0000 |
commit | e1d2b174caf5f0c48a8fac25778f72a868ec6eb7 (patch) | |
tree | 524c588ea62d25668252ff06e21a72480deb8f12 /source/lib | |
parent | 631814302d6992138cfe024ba7bd456cc7e0d3bf (diff) | |
download | samba-e1d2b174caf5f0c48a8fac25778f72a868ec6eb7.tar.gz samba-e1d2b174caf5f0c48a8fac25778f72a868ec6eb7.tar.xz samba-e1d2b174caf5f0c48a8fac25778f72a868ec6eb7.zip |
OK. This code works on a RedHat 6.0 system. However smbpasswd
time out of sending the session setup on Solaris 2.6. No idea.
I'll work on it some tomorrow. This is to fix the "Unable to
setup password vectors" thingy.
Also changed an inet_aton() to inet_addr() as the former is
not very portable :-)
Luke, I set the redir flag to false because the connection to
the smb-agent was failing and smbpasswd bombed. Double check me
on this one.
-jc
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/util.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/lib/util.c b/source/lib/util.c index 9a9f87d4737..65908ff19ee 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -3234,11 +3234,18 @@ char *get_trusted_serverlist(const char* domain) static char *server_list = NULL; static pstring srv_list; char *trusted_list = lp_trusted_domains(); + int my_role = lp_server_role(); if (strequal(lp_workgroup(), domain)) { - DEBUG(10,("local domain server list: %s\n", server_list)); - pstrcpy(srv_list, lp_passwordserver()); + if ((my_role == ROLE_DOMAIN_PDC) || (my_role == ROLE_DOMAIN_NONE)) { + pstrcpy(srv_list,global_myname); + } + /* we must be a BDC or MEMBER if we execute this branch */ + else { + pstrcpy(srv_list, lp_passwordserver()); + } + DEBUG(10,("local domain server list: %s\n", srv_list)); return srv_list; } |