LDAP
From Antiflux Wiki
(Difference between revisions)
(easier way to copy a user to ldap) |
|||
Line 7: | Line 7: | ||
==Copy user from /etc/passwd to LDAP== | ==Copy user from /etc/passwd to LDAP== | ||
<code>sudo ldif-from-password «username» | ldapadd -xW -D cn=admin,dc=antiflux,dc=org</code> | <code>sudo ldif-from-password «username» | ldapadd -xW -D cn=admin,dc=antiflux,dc=org</code> | ||
+ | |||
+ | [[Category:Admin]] |
Current revision
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