[How Do I?] Move all UNIX users to LDAP?

2 posts / 0 new
Last post
#1 Sun, 02/28/2010 - 00:53
staticanime

[How Do I?] Move all UNIX users to LDAP?

I've just setup Virtualmin Pro and configured it as per the LDAP guide in the documentation, but I want to move all unix users into the LDAP db, is there a quick way to do this?

Sun, 02/28/2010 - 09:56
andreychek

Once you're at a point where Virtualmin can add/modify/delete LDAP users, I think all you'd need to do is get the users from /etc/passwd to LDAP.

That is, I don't believe Virtualmin cares where they are -- you just need to yank all the details from /etc/passwd, and put those same details into LDAP.

And the good news there is that there's a number of tools out there for converting /etc/passwd users over to LDAP. Many LDAP variants offer migration scripts of some sort... for example, OpenLDAP has some listed here:

http://www.padl.com/OSS/MigrationTools.html

You may be able to use those to move your current users over to LDAP.

Just remember that I've never tried that, nor do I know the details of how it'd work -- and you'd certainly want to make sure you have a full system backup before attempting it :-)

-Eric

Topic locked