I thought I was doing well with samba. I have numerous samba / gnu-Linux networks running well. Now I have one customer that wants to do something that I cannot get the software to do. All he wants to do is have his users change their passwords from the Windows passwords control panel. It seems like such a simple request but I cannot for the life of me get it to work on my test network. I have been able to make it work until I tell samba to sync with Linux passwords. This customer needs to sync Linux/samba passwords to maintain uniform passwords with mail clients (the Linux box is the mail server). What I get is a complaint from the control panel that the original password is incorrect. I have the password chat corrected (the Mandrake 6.1 distro install is bugged) to resemble the actual chat -including case- and the passwd path is correct. I have been known to run plaintext passwords, so I tried all the above with and without the registry entry for plaintext enabled. The clients are win98 and win98se. Here are the smb.conf highlights: security = user password level = 8 username level = 8 encrypted passwords = yes smb passwd file = /etc/smbpasswd (this is correct) Unix password sync = yes passwd program = /usr/bin/passwd (this does exist here) passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*password* %n\n *passwd*all*authentication*tokens*updated*successfully* Other stuff: local master = yes os level = 33 domain master = yes preferred master = yes domain logons = yes name resolve order = hosts wins lmhosts wins support = yes wins proxy = yes dns proxy = yes What I need to know is this: 1) Is this supported and supposed to work? 2) If #1 is true, what am I missing? Any help would be appreciated. Thanx.
Hello, "james.fogg" wrote:> passwd program = /usr/bin/passwd (this does exist here)I have the line: passwd program = /bin/passwd %u within my configuration ("samba-2.0.7", SuSE Linux 6.1). Perhaps you have to add "%u". Reason: "passwd" is executed "as root" if you are using "encrypted passwords" and "unix password sync". Bye, Steffen
Hi Mathias, You have specified that you want to use encrypted passwords in your smb.conf file. I note also that you have no 'security=' in your smb.conf, which means that it is going to look for your smbpasswd file to verify the encrypted password that the clients are going to send. NT and Win95 client oneway encryption algorythm is completely different from the algorythm used to encrypt passwords on a u*ix /etc/passwd, so you have to create this file by hand, or one of the other methods that are mentioned in the following reference: Check out "Using Samba" from O'Reilly publishing (Robert Eckstein,David Collier-Brown and Peter Kelly, authors)Chapter 6. The passwords section starting on page 171 will give you what you need. The 2.0.7 release you can get to from www.samba.org comes with this book in html format, or you can purchase it at your favorite bookstore - or you can check the man pages that come with samba - but this is not for the timid.... Hope this helps, Don
Hallo!>In your DHCP configuration, tell the clients about this state of >affairs. Assuming you use the ISC dhcpd, put this in dhcpd.conf: > # Win95 bug: must have two NBNS servers. Put the one in twice. > option netbios-name-servers ip.of.NBNS.server ip.of.NBNS.server; > option netbios-node-type 8;BTW, I have a ISC dhcpd 2 server running and I give several infos to the workstations like gateway, WINS server (samba) and so on to use so I do not need to configure all the computers each time I intsall them again - I hoped. Sadly, I am forced to configure anyway since each computer should get a different Netbios-name and I do not know how to set this up. Any hint? thx Ludwig