[Date Prev][Date Next]
Re: (ITS#5878) Unable to add users from file generated by migrate_passd.pl
On Monday 05 January 2009 12:31:23 email@example.com wrote:
> Full_Name: Sandeep Kumbhar
> Version: openldap-2.3.27-8.el5_1.3
> OS: CentOS 5.2
> Submission from: (NULL) (22.214.171.124)
> 1. I am using below schema for my LDAP server
> include /etc/openldap/schema/core.schema
> include /etc/openldap/schema/cosine.schema
> include /etc/openldap/schema/inetorgperson.schema
> include /etc/openldap/schema/nis.schema
> 2. I created local user on the same server and did the following to
> generate the
> data for step 3.
> # grep 'username' /etc/passwd > /etc/openldap/passwd.username
In general, I note that this documentation leaves a lot to be desired.
> 3. Then I used the migration perl script for converting the local users to
> LDAP users.
> # /usr/share/openldap/migration/migrate_passwd.pl
> /etc/openldap/passwd.username \
> 4. Now after creation of the *.ldif I used the below command to add this
> file into the LDAP server.
You should run migrate_base.pl before you add any other data generated by
> # ldapadd -x -D "cn=Manager,dc=intra,dc=exlinuz,dc=com" -W -f
> /etc/openldap/ \
> 5. After typing the ldapadd command I gave the LDAP password I got the
> error below
> adding new entry "uid=sandeepk,ou=People1,dc=intra,dc=exlinuz,dc=com"
> ldap_add: No such object (32)
> matched DN: dc=intra,dc=exlinuz,dc=com
According to the error, the deepest part of this DN that exists is
dc=intra,dc=exlinuz,dc=com, so you haven't created
ou=People1,dc=intra,dc=exlinuz,dc=com, which migrate_base.pl would have done
> 6. I have created the domain.ldif and root.ldif and added them successfully
> into the
> LDAP Server using the official Openldap documentation.
> However I could not find anything adding Unix users and therefore I used
> above referenced link to generate Unix users database file for LDAP.
> Please see the ldif file output by the migration script
There is no bug here. Please consult the documentation of the tools you are
using (migrationtools) when your spoonfeeding doesn't work perfectly. The only
problem you encountered was the 'HOWTO' you used, file bugs on it instead. It
is quite evident that the author of the HOWTO has not bothered to consult the
documentation for migrationtools ... see the migration-tools.txt file shipped
with the software.
Honestly, http://www.zarb.org/~bgmilne/make_master.sh could replace about half
the HOWTO, and cover something the HOWTO doesn't (migrating groups ....).