LDAP
From Antiflux Wiki
(Difference between revisions)
(added section header, section on migrationtools) |
(easier way to copy a user to ldap) |
||
Line 5: | Line 5: | ||
<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> | ||
- | == | + | ==Copy user from /etc/passwd to LDAP== |
- | + | <code>sudo ldif-from-password «username» | ldapadd -xW -D cn=admin,dc=antiflux,dc=org</code> | |
- | + | ||
- | + | ||
- | + |
Revision as of 01:05, 11 January 2007
Find a user by username
ldapsearch -x uid=«username»
Add a record
ldapadd -xW -D cn=admin,dc=antiflux,dc=org < «file.ldif»
Copy user from /etc/passwd to LDAP
sudo ldif-from-password «username» | ldapadd -xW -D cn=admin,dc=antiflux,dc=org