Add new comment
Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
|
I had to add a blank line to fix an error in /etc/openldap/adminmart.com.ldif, and I added for groups :
dn: dc=adminmart,dc=com dc: adminmart description: LDAP Admin objectClass: dcObject objectClass: organizationalUnit ou: rootobject dn: ou=People, dc=adminmart,dc=com ou: People description: Users of adminmart objectClass: organizationalUnit dn: ou=Group, dc=adminmart,dc=com ou: Group description: Groups of adminmart objectClass: organizationalUnit I copied all of my groups that I wanted in ldap from /etc/groups to /etc/openldap/groups.txt and then ran: /usr/share/openldap/migration/migrate_groups.pl /etc/openldap/groups.txt /etc/openldap/groups.ldif After I imported users, and groups, I used phpldapadmin to import shadow passwords. I opened /etc/shadow and copied the password field: username:$1$0oDpBoKc$qw6grPT4jqgfqkc5Kzd/G.:_____:_:_____:_::: as {crypt}$1$0oDpBoKc$qw6grPT4jqgfqkc5Kzd/G. And selected clear in the drop down so it would not try to re-encrypt (mangle) the password. There is likely a scripted solution for shadow passwords, but I only had about 15 users and it was faster to just do it.
Reply |





Recent comments
4 hours 9 min ago
5 hours 52 min ago
8 hours 17 min ago
8 hours 23 min ago
12 hours 57 min ago
14 hours 58 min ago
18 hours 21 min ago
20 hours 28 min ago
20 hours 39 min ago
23 hours 5 min ago