smbldap-tools problems

Rodrigo Henriquez M. rodrigo at
Mon Dec 15 05:02:03 GMT 2003

Hello world.

I'm having troubles migrating  from W2K AD to Openldap/Samba.

I'm using pwdump2 to extract the user passwords and information from
the AD. It works fine.

The problem occurs when I use smbldap-migrate-accounts program to extract
the user password from the file generated by pwdump2.

localhost:/usr/local/sbin# -a 
Use of uninitialized value in concatenation (.) or string at 
/usr/local/sbin/ line 117, <> line 4.
failed to modify entry: lmpassword: attribute type undefined at 
/usr/local/sbin/ line 56, <DATA> line 283.

I modified the script in line 117 from and use the "-a" flag but the problem

--$usertype = "-a $Options{'A'}";
++$usertype = "-a ";

In spite of all this, I populated the LDAP bd without problems :

Using builtin directory structure
adding new entry: dc=ebug,dc=cl
adding new entry: ou=Users,dc=ebug,dc=cl
adding new entry: ou=Groups,dc=ebug,dc=cl
adding new entry: ou=Computers,dc=ebug,dc=cl
adding new entry: uid=Administrator,ou=Users,dc=ebug,dc=cl
adding new entry: uid=nobody,ou=Users,dc=ebug,dc=cl
adding new entry: cn=Domain Admins,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Domain Users,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Domain Guests,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Administrators,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Users,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Guests,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Power Users,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Account Operators,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Server Operators,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Print Operators,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Backup Operators,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Replicator,ou=Groups,dc=ebug,dc=cl
adding new entry: cn=Domain Computers,ou=Groups,dc=ebug,dc=cl

My current configuration:

- Debian Sarge
- samba-3.0.0final-1
- smbldap-tools-0.8.2-2
- slapd-2.1.22-1

I tried with Fedora Core 1, Mandrake 9.2 and SuSE EL 8.0 with
the same results.

I read the samba-ldap-howto from idealx and follow the step one
by one.

I googlize  but there is not much information related to this.

Any help or clue?

Thank you so much in advance. I really need migrate this thing today
and is the only thing that I need.

OTOH, if someone knows another way of how to extract the passwords
from the AD, it will be useful a lot.


Rodrigo HenriquezM.

More information about the samba-technical mailing list