Pdbedit should have some import /export commands.    I don't remember if you
want to change the smb.conf entry for backend before or after you do the
import.  I actually had the tdb backend for samba but already had the "unix"
users in ldap.   I was trying to update the accounts with the samba
passwords, SIDs and other "windows" specific stuff.  

None-the-less, it didn't import properly for me.  About 1/2 users did not
get a password imported.  

Smbpasswd (smbpasswd -w?) should also let you dump out info into a text
file.  You could write a script to run thru each line, split the fields up
and the use the ldap commands to  create/modify the users accounts.  Perl
works pretty well for this with the "split" command.



-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Götz Reinicke - IT Koordinator
Sent: Sunday, May 02, 2010 4:39 AM
To: [email protected]
Subject: [Samba] How ot migrate from /etc/samba/smbpasswd -> LDAP
ldapsam:trusted

Hi,

has anyone done a migration from an "old" smb passwd file =
/etc/samba/smbpasswd setup to a "up to date" LDAP ldapsam:trusted setting?

(Centos 5.4, samba-3.0.33-3.28, openldap-2.3.43)

If so, is there some how to? Or may somewone share his/her experience
with me.

Thanks a lot and best regards,

        Götz
-- 
Götz Reinicke
IT-Koordinator

Tel. +49 7141 969 420
Fax  +49 7141 969 55 420
E-Mail [email protected]

Filmakademie Baden-Württemberg GmbH
Akademiehof 10
71638 Ludwigsburg
www.filmakademie.de

Eintragung Amtsgericht Stuttgart HRB 205016
Vorsitzende des Aufsichtsrats:
Prof. Dr. Claudia Hübner

Geschäftsführer:
Prof. Thomas Schadt
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to