[Samba] Migration from Ldap to Samba+Ldap
Olivier Miquel
olivier.miquel at mri.cnrs.fr
Fri May 30 08:31:23 GMT 2008
Hello,
I'm trying to migrate openldap users to a samba+ldap solution.
I had set up the samba+ldap server succesfully, and restored my accounts
via smbldap-populate and an ldif file.
But all my LDAP accounts didn't got all the samba field and i'm forced
to update it manually via smbldap-usermod -a %user and smbldap -u %user
( and typing a new password ).
So my question is :
Wich is the way to update all acounts with the same samba password as
unix password (without typing *manually* the samba password) in order to
get them recognized by samba?
or
Is there a script that sync samba information / Password using the field
userPassword that contains the hash for unix password ?
Thanks for reading me,
Olivier.
________
Example of old account imported with "smbldap-populate dump.ldif" (
missing all samba information ! ) :
dn: uid=charrasse,ou=Users,dc=mri.cnrs,dc=fr
loginShell: /bin/bash
sn: Charrasse
objectClass: top,inetOrgPerson,posixAccount,mri-user
gidNumber: 513
accountType: user
status: active
mail: sophie.charrasse at BLAH.fr
givenName: Sophie
uid: charrasse
uidNumber: 1583
cn: charrasse
userPassword: {MD5}c+URcajBLAHDcSObg==
homeDirectory: /home/alluser
Same account, now valid, modified with "smbldap-usermod -a %user" and
"smbldap -u %user"
dn: uid=charrasse,ou=Users,dc=mri.cnrs,dc=fr
loginShell: /bin/bash
sn: Charrasse
objectClass: top,inetOrgPerson,posixAccount,mri-user,sambaSamAccount
gidNumber: 513
accountType: user
status: active
mail: sophie.charrasse at BLAH.fr
givenName: Sophie
uid: charrasse
uidNumber: 1583
cn: charrasse
homeDirectory: /home/alluser
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
displayName: User
sambaSID: S-1-5-21-1510206305-3765163916-174898732-4166
sambaLMPassword: 48FF388ABA3E5B33AAD3B435B51404EE
sambaAcctFlags: [U]
sambaNTPassword: BB37D7E678271274F1BF1133F9694C29
sambaPwdLastSet: 1212142328
sambaPwdMustChange: 1527502328
userPassword: {MD5}uJ96BLAHctrDiypn9w==
--
passerelle antivirus du campus CNRS de Montpellier
--
More information about the samba
mailing list