This website is deprecated, and remains online only for historic access to old issues and docs for historic versions of Virtualmin. It has been unmaintained for several years, and should not be relied on for up-to-date information. Please visit www.virtualmin.com instead.
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?
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:
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 :-)
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