Synchronize passwd with YP passwd
Christian Duclou
Christian.Duclou at eeigm.u-nancy.fr
Mon Jul 26 08:47:09 GMT 1999
Hello,
I think i've a solution.
I only tested the use of "smpasswd" on UNIX login prompt (connection
establish with telnet).
I did'nt tested that from a NT WorkStation, cause i have'nt active a
samba server as PDC yet.
I did that with these parameters:
# smb.conf Samba config file created using vi
# from localhost (127.0.0.1)
# Date: 1999/07/22 16:45
# Version : 3.0
# Particularité : met a jour le mot de passe SMBPASSWD et UNIX par la
commande
# smbpasswd
# Test realise : OK - mise a jour du mot de passe a partir du poste
client
# OK - connexion avec telnet du poste client
(/etc/passwd)
# OK - connexion avec linux du poste client (NIS)
# Reste à faire : mettre à jour le mot de passe sur le PDC
# ( ... transformer le serveur SAMBA en PDC)
# Controler la securite de la commande ypmake
# Global parameters
[global]
workgroup = ECOLE
server string = CASSE TETE %v %m
encrypt passwords = Yes
update encrypted = Yes
security = SERVER
preferred master = Yes
password server = SQL
passwd program = /etc/samba/ypmake %u %n
passwd chat = .
passwd chat debug = True
unix password sync = Yes
# !!! Think to put your network adress in place of XXX.YYY.ZZZ. on the
next line
hosts allow = localhost,XXX.YYY.ZZZ.
[gf]
path = /home/gf
read only = No
[root]# cat /etc/samba/ypmake
# ypmake
# Met a jour les mdp a partir de la cmd smbpasswd
# maj /etc/passwd
/bin/echo $1:$2 | /usr/sbin/chpasswd
# maj /var/yp/<domain>/*
cd /var/yp
/usr/bin/make
# code de retour 0 forcé
# car erreur de make non rédibitoire pour la mise a jour de
/etc/smppasswd
exit 0
Christian DUCLOU
Gérard Leymarie wrote:
> Hi,
> I'm using samba 2.0.5a on slackware 3.5 with a server which grant
> Yellow Page for other servers such as mail, sql, etc...
> I have no problems to synchronise NT passwd and unix passwd,
>
--
_____________ EEIGM - Service Informatique _____________
6, rue Bastien LEPAGE - 54010 NANCY - CEDEX - France
Phone: (33) 383.36.83.27 - Fax: (33) 383.36.83.36
________________ http://eeigm.u-nancy.fr _______________
More information about the samba-ntdom
mailing list