LDAP

From Antiflux Wiki

(Difference between revisions)
Jump to: navigation, search
m
Current revision (19:05, 29 September 2007) (edit) (undo)
 
(2 intermediate revisions not shown.)
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>
 +
 +
==Copy user from /etc/passwd to LDAP==
 +
<code>sudo ldif-from-password &laquo;username&raquo; | 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

Personal tools