[cvs] [Wiki] changed: NewLDAPHowTo

Ben Chavet ben at horde.org
Tue Apr 26 18:14:26 PDT 2005


ben  Tue, 26 Apr 2005 18:14:26 -0700

Modified page: http://wiki.horde.org/display.php?page=NewLDAPHowTo
New Revision:  1.5

@@ -24,10 +24,8 @@
 
-
 
@@ -38,44 +36,70 @@
 </code>
-+++ Create a Directory Security Account
++++ Import LDAP Entries
 
-Because our LDAP directory does not allow anonymous binding, we have to create the Directory Security Account to bind and search with.  Copy the following code into a file, and name it {{horde-dsa.ldif}}.  Don't worry about the password, we will be setting that next.
+Put the following in a file named {{horde.ldif}}.  Don't worry about the password values just yet, we'll be changing them in a minute.  Also, make sure to adjust the //dn// values for your directory.
 
+
 </code>
-Then, run the following command to import the new account, you will be prompted for the LDAP root password.
+Then, run the following command to import the entries into the LDAP directory.  You will be prompted for the LDAP root password.
 
-ldapadd -x -h localhost -D "cn=root,dc=example,dc=com" -f horde-dsa.ldif -W
+ldapadd -x -h localhost -D "cn=root,dc=example,dc=com" -f horde.ldif -W
 </code>
-To set the password for this new account, run the following command.  Be sure to replace {{secretpassword}} with what you actually want the password to be for this account.  Again, you will be prompted for the LDAP root password.
++++ Set Passwords for New Accounts
 
-+++ Create a New LDAP Branch
+Set the password for {{uid=admin,ou=horde,dc=example,dc=com}}:
 <code>
-dn: ou=horde,dc=example,dc=com
+ldappasswd -x -h localhost -D "cn=root,dc=example,dc=com" -s secretpassword -W uid=admin,ou=horde,dc=example,dc=com
 </code>
-And, import it into the LDAP directory with the following command, you will be prompted for the LDAP root password.
++++ Directory Permissions
 
-ldapadd -x -h localhost -D "cn=root,dc=example,dc=com" -f horde.ldif -W
+access to dn.children="ou=horde,dc=example,dc=com"
 </code>


More information about the cvs mailing list