LDAP

From Antiflux Wiki

(Difference between revisions)
Jump to: navigation, search
m
(added section header, section on migrationtools)
Line 1: Line 1:
-
Find a user by username:
+
==Find a user by username==
<code>ldapsearch -x uid=&laquo;username&raquo;</code>
<code>ldapsearch -x uid=&laquo;username&raquo;</code>
-
Adding a record:
+
==Add a record==
<code>ldapadd -xW -D cn=admin,dc=antiflux,dc=org < &laquo;file.ldif&raquo;</code>
<code>ldapadd -xW -D cn=admin,dc=antiflux,dc=org < &laquo;file.ldif&raquo;</code>
 +
 +
==Convert /etc/passwd to LDAP==
 +
# Use <code>/usr/share/migrationtools/migrate_passwd.pl</code> 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.

Revision as of 21:00, 13 September 2006

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