More than one password server?

Luke Kenneth Casson Leighton lkcl at switchboard.net
Fri Nov 7 15:36:44 GMT 1997


On Sat, 8 Nov 1997, Matt Foster wrote:

> 
> Hi,
> 
> HP-UX 10.20 samba 1.9.17p4
> 
> >From the smb.conf (5) I read :
> 
>  If you list several hosts in the "password server" option then smbd
>       will try each in turn till it finds one that responds. This is useful
>       in case your primary server goes down.
> 
> Here's smb.conf global section
> 
> workgroup = OUR_WORKGROUP_NAME
> wins support = no
> wins server = IP.ADDRESS.OF.MACHINEA
> domain master = no
> local master = yes
> preferred master = no
> os level = 1
> mangle case = no
> case sensitive = yes
> preserve case = yes
> server string = %h Samba %v - Matt Foster
> time server = true 
> print command = lp -d%p %s
> lpq command = lpstat %p
> lprm command = cancel %p
> security = server
> password server = machinea machineb
> syslog only = yes
> syslog = 1
> debug level = 2
> 
> 
> MachineA is the PDC of an NT domain.
> MachineB is the PDC of another NT domain (no trust relationships).
> 
> It appears that only the first one is tried, in the above example I can
> log into domaina, but not domainb.  If I swap it around the reverse is true.
> The appropriate "dummy" entries are setup in /etc/passwd.

ok, try adding some debug info inside server.c:server_cryptkey(), and see 
if it actually tries both password servers, ok?

like this:

@server.c some_context_diff_stuff:-)

  standard_sub_basic(desthost);
  strupper(desthost);

+ DEBUG(4,("server_cryptkey: attempt connection to password server %s\n",
		desthost));

  dest_ip = *interpret_addr2(desthost);


<a href="mailto:lkcl at switchboard.net"  > Luke Kenneth Casson Leighton </a>
<a href="http://mailhost.cb1.com/~lkcl"> Lynx2.7-friendly Home Page   </a>
<br><b> "Apply the Laws of Nature to your environment because your
         environment applies the Laws of Nature to you"               </b>



More information about the samba mailing list