Migrate openldap users and groups

Posted by user53864 on Server Fault See other posts from Server Fault or by user53864
Published on 2011-03-15T16:15:28Z Indexed on 2011/03/16 8:12 UTC
Read the original article Hit count: 256

Filed under:
|
|
|
|

I have an OpenLDAP server running on one of my ubuntu 8.10 servers. I used command-line only for OpenLdap installation and some basic configurations, everything else I'll configure with the Webmin gui tool. I'm trying to migrate to ubuntu 10.04 and I was able to migrate all other servies, application and databases but not the ldap.

I'm an ldap beginner:

I have installed OpenLDAP server and client on ubuntu 10.04 server using the link and used the following command to export and import ldap users and groups

To export from 8.10 server slapcat > ldap.ldif

To import to 10.04 server Stop ldap and slapadd -l ldap.ldif and Start ldap

Then I accessed Webmin and checked in Ldap users and groups and I could see all the users and groups of my old ldap server.Whenever I create an ldap user from the webmin(in 8.10 or 10.04) a unix user is also created with the home directory under /home. But the imported users in 10.04 from 8.10 are not present as a unix user(/etc/passwd). How could I make the ldap users available as a unix user, is there any perfect way to export and import?.

I also wanted to check the ldap users from the terminal that if password is exported properly but I don't know how to access the ldap users which are not available as unix users. On 8.10, I just use su - ldapuser and it is not working in the 10.04 as unix users are not created for the exported ldap users. If every thing works fine then the CVS works as it is using ldap authentication.

Anybody could help me?

© Server Fault or respective owner

Related posts about ubuntu-10.04

Related posts about openldap