LDAP
From Antiflux Wiki
(Difference between revisions)
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=«username»</code> | <code>ldapsearch -x uid=«username»</code> | ||
- | + | ==Add a record== | |
<code>ldapadd -xW -D cn=admin,dc=antiflux,dc=org < «file.ldif»</code> | <code>ldapadd -xW -D cn=admin,dc=antiflux,dc=org < «file.ldif»</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
- 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.