Buchan Milne
2003-Aug-12 13:28 UTC
[Samba] Samba 2.2.8 PDC + LDAP -> import_smbpasswd.pl does
not work X-Enigmail-Version: 0.76.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> Message: 5 > Date: Mon, 11 Aug 2003 15:46:04 +0200 > From: "Kopmann, Goetz" <Goetz.Kopmann@airbus.com> > Subject: [Samba] Samba 2.2.8 PDC + LDAP -> import_smbpasswd.pl does > not work > To: "Samba (E-Mail)" <samba@lists.samba.org> > Message-ID: > <A5DA705A2FBA4B42B00A5774553B6B520652C955@S02MKS15.ham.airbus.dasa.de> > Content-Type: text/plain; charset="ISO-8859-1" > > Hi All, > > I'm trying to change the autentification method of our users fromsmbpasswd> to an OpenLDAP-Server. To set it up, i used the information from idealix. > > The next step is to import the user-database fromout of the smbpasswd file > via import_smbpasswd.pl into the LDAP-schema. Unfortunately this does not > work. >The script does work ...> $ cat smbpasswd | perl import_smbpasswd.pl > > produces the output: > > Adding [uid=root,ou=Users,dc=cimpa,dc=corp] > Adding [uid=thc1gk,ou=Users,dc=cimpa,dc=corp] > Adding [uid=cimpa36$,ou=Users,dc=cimpa,dc=corp] > Adding [uid=th15gw,ou=Users,dc=cimpa,dc=corp] > Adding [uid=cimsrv01$,ou=Users,dc=cimpa,dc=corp] > Adding [uid=thb1wa,ou=Users,dc=cimpa,dc=corp] > ..... > Adding [uid=th15on,ou=Users,dc=cimpa,dc=corp] > Adding [uid=cimsrv03$,ou=Users,dc=cimpa,dc=corp] > Adding [uid=thc1ak,ou=Users,dc=cimpa,dc=corp]Hmmm, I would use the LDAP migration tools to get accounts imported first, and then the script will only modify existing accounts, and not add accounts and miss some information you may want to add (which ldap-migration adds for you).> > $ > > ... but no user has been added. >Then most likely the DN you have specified in the top of the script (in the $DN variable) either does not have write access to the entries, or the password is incorrect.> Can anyone help me with that ? Distribution is: SuSE 8.2mandrakesecure.net is unfortunately down at the moment, but the articles there on LDAP/Samba are pretty good, and cover issues such as this. Regards, Buchan - -- |--------------Another happy Mandrake Club member--------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x202 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/OOtprJK6UGDSBKcRAjMEAJ9d7bMMwHrNecmswUWwfNVJsCy+owCgoVss SMptxrUHI1TD8XIvvFf+V2Q=WDNM -----END PGP SIGNATURE----- ****************************************************************** Please click on http://www.cae.co.za/disclaimer.htm to read our e-mail disclaimer or send an e-mail to info@cae.co.za for a copy. ******************************************************************
Damian Gerow
2003-Aug-12 15:07 UTC
[Samba] Samba 2.2.8 PDC + LDAP -> import_smbpasswd.pl does
Thus spake Buchan Milne (bgmilne@cae.co.za) [12/08/03 09:30]:> not workAgreed. I get this output:> > $ cat smbpasswd | perl import_smbpasswd.pl > > > > produces the output: > > > > Adding [uid=root,ou=Users,dc=cimpa,dc=corp] > > Adding [uid=thc1gk,ou=Users,dc=cimpa,dc=corp] > > Adding [uid=cimpa36$,ou=Users,dc=cimpa,dc=corp] > > Adding [uid=th15gw,ou=Users,dc=cimpa,dc=corp] > > Adding [uid=cimsrv01$,ou=Users,dc=cimpa,dc=corp] > > Adding [uid=thb1wa,ou=Users,dc=cimpa,dc=corp] > > ..... > > Adding [uid=th15on,ou=Users,dc=cimpa,dc=corp] > > Adding [uid=cimsrv03$,ou=Users,dc=cimpa,dc=corp] > > Adding [uid=thc1ak,ou=Users,dc=cimpa,dc=corp]But nothing actually gets added to LDAP. I looked at the logs, and I didn't even see /attempts/ to add. I saw searches for existing information only.