Problem with %n
Gérard Leymarie
Gerard.Leymarie at sita.int
Wed Aug 18 11:09:05 GMT 1999
All,
While changing the password under NT I have no problem.
But I would like to synchronise it with LINUX and Yellow Page.
So I use the following script (ypmake):
/bin/echo $1:$2 | /usr/sbin/chpasswd
/bin/echo $1:$2 > /usr/local/samba/var/passwd.$1
cd /var/yp
/usr/bin/make
exit 0
And , in my smb.conf I have:
encrypt passwords = Yes
update encrypted = Yes
passwd program = /usr/local/samba/bin/ypmake %u %n
passwd chat = .
passwd chat debug = Yes
password level = 8
username level = 8
unix password sync = Yes
when I use directly the script, It's working propely, but when I change
password
from NT, the samba password is changed correctly , but the linux password
is %n, and not the value
of %n.
WHY?
Thanks, Gerard
More information about the samba-ntdom
mailing list