LDAP
From Antiflux Wiki
Find a user by username
ldapsearch -x uid=«username»
Add a record
ldapadd -xW -D cn=admin,dc=antiflux,dc=org < «file.ldif»
Convert /etc/passwd to LDAP
- Use
/usr/share/migrationtools/migrate_passwd.pl
as root to generate an LDIF file. - Cut'n'paste the LDIF entry for the user you want to add.
- Grep out any references to Kerberos entries (krb or kerb).
- Use ldapadd to add the record.