[Samba] Samba 2.2.8 PDC + LDAP -> import_smbpasswd.pl does

Buchan Milne bgmilne at cae.co.za
Tue Aug 12 13:28:10 GMT 2003

 not work
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hash: SHA1

> Message: 5
> Date: Mon, 11 Aug 2003 15:46:04 +0200
> From: "Kopmann, Goetz" <Goetz.Kopmann at airbus.com>
> Subject: [Samba] Samba 2.2.8 PDC + LDAP -> import_smbpasswd.pl does
> 	not work
> To: "Samba (E-Mail)" <samba at lists.samba.org>
> Message-ID:
> 	<A5DA705A2FBA4B42B00A5774553B6B520652C955 at 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 from
> 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.2

mandrakesecure.net is unfortunately down at the moment, but the articles
there on LDAP/Samba are pretty good, and cover issues such as this.


- --
|--------------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
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to info at cae.co.za for a copy.

More information about the samba mailing list