This topic lists the steps required to configure OpenLDAP to be used with SAN File System.
# ldapadd -x -W -h localhost -D “cn=Manager,o=yourOrg” Enter LDAP Password: (<----- INPUT PASSWORD HERE )
# ldapadd -x -W -h localhost -D “cn=Manager,o=yourOrg” Enter LDAP Password: (<----- INPUT PASSWORD HERE ) dn: o=yourOrg objectClass: organization o: yourOrg (<=== 2ND ENTER) adding new entry “o=yourOrg” (<----- PRESSED Ctrl+D) #
# ldapsearch -x -h localhost -x -b o=yourOrg ‘ (objectclass=organization)’
# sed “s/Example/yourOrg/” sfsExample.ldif > sfsbase.ldif
# ldapadd -x -W -h localhost -D “cn=Manager,o=yourOrg” -f sfsbase.ldif Enter LDAP Password: adding new entry “cn=Manager,o=yourOrg” adding new entry “ou=Users,o=yourOrg” adding new entry “cn=yourOrgAdmin Administrator,ou=Users, o=yourOrg” adding new entry “cn=yourOrgMon Monitor,ou=Users,o=yourOrg” adding new entry “cn=yourOrgBack Backup,ou=Users,o=yourOrg” adding new entry “cn=yourOrgOper Operator,ou=Users, o=yourOrg” adding new entry “ou=Roles,o=yourOrg” adding new entry “cn=Administrator,ou=Roles,o=yourOrg” adding new entry “cn=Monitor,ou=Roles,o=yourOrg” adding new entry “cn=Backup,ou=Roles,o=yourOrg” adding new entry “cn=Operator,ou=Roles,o=yourOrg”
# ls -lt /var/lib/ldap/The output appears similar to the following example:
total 56 -rw------- 1 ldap ldap 8192 Sep 21 16:41 cn.dbb -rw------- 1 ldap ldap 8192 Sep 21 16:41 dn2id.dbb -rw------- 1 ldap ldap 8192 Sep 21 16:41 id2entry.dbb -rw------- 1 ldap ldap 8192 Sep 21 16:41 nextid.dbb -rw------- 1 ldap ldap 8192 Sep 21 16:41 objectClass.dbb -rw------- 1 ldap ldap 8192 Sep 21 16:41 sn.dbb -rw------- 1 ldap ldap 8192 Sep 21 16:41 uid.dbb
Parent topic: Configuring LDAP using OpenLDAP
Previous topic: Configure the OpenLDAP server