LDAP

From Antiflux Wiki

Revision as of 21:00, 13 September 2006 by Grant (Talk | contribs)
Jump to: navigation, search

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

  1. Use /usr/share/migrationtools/migrate_passwd.pl as root to generate an LDIF file.
  2. Cut'n'paste the LDIF entry for the user you want to add.
  3. Grep out any references to Kerberos entries (krb or kerb).
  4. Use ldapadd to add the record.
Personal tools