Not for Class: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/inetorgperson.ldif |
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/inetorgperson.ldif |
||
There should be a backend.ldif file |
There should be a backend.ldif file within your backups. If for some odd reason this was not backed up then create a an LDIF file |
||
vim backend.ldif |
|||
Copy and paste the following template. |
|||
<pre> |
<pre> |
||
#Load dynamic backend modules |
#Load dynamic backend modules |
||
Line 29: | Line 34: | ||
olcDbDirectory: /var/lib/ldap |
olcDbDirectory: /var/lib/ldap |
||
olcRootDN: cn=admin,dc=cs,dc=wallawalla,dc=edu |
olcRootDN: cn=admin,dc=cs,dc=wallawalla,dc=edu |
||
olcRootPW: {SSHA}sPKiAjzTE9jZ+SpTLocHD6pcm+j5icTm |
olcRootPW: '''{SSHA}sPKiAjzTE9jZ+SpTLocHD6pcm+j5icTm''' |
||
olcDbConfig: set_cachesize 0 2097152 0 |
olcDbConfig: set_cachesize 0 2097152 0 |
||
olcDbConfig: set_lk_max_objects 1500 |
olcDbConfig: set_lk_max_objects 1500 |
Revision as of 19:24, 2 September 2010
Under Progress
Ubuntu 10.04 has a different version of LDAP so if you want to look for a tutorial make sure is 10.04 or because things have changed a lot.
Install the needed LDAP server packages and containing management utilities.
sudo apt-get install slapd ldap-utils
The schemas are ....
In order to load this schemas run the following commands
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/cosine.ldif sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/nis.ldif sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/inetorgperson.ldif
There should be a backend.ldif file within your backups. If for some odd reason this was not backed up then create a an LDIF file
vim backend.ldif
Copy and paste the following template.
#Load dynamic backend modules dn: cn=module,cn=config objectClass: olcModuleList cn: module olcModulepath: /usr/lib/ldap olcModuleload: back_hdb # Database settings dn: olcDatabase=hdb,cn=config objectClass: olcDatabaseConfig objectClass: olcHdbConfig olcDatabase: {1}hdb olcSuffix: dc=cs,dc=wallawalla,dc=edu olcDbDirectory: /var/lib/ldap olcRootDN: cn=admin,dc=cs,dc=wallawalla,dc=edu olcRootPW: '''{SSHA}sPKiAjzTE9jZ+SpTLocHD6pcm+j5icTm''' olcDbConfig: set_cachesize 0 2097152 0 olcDbConfig: set_lk_max_objects 1500 olcDbConfig: set_lk_max_locks 1500 olcDbConfig: set_lk_max_lockers 1500 olcDbIndex: objectClass eq olcLastMod: TRUE olcDbCheckpoint: 512 30 olcAccess: to attrs=userPassword by dn="cn=admin,dc=cs,dc=wallawalla,dc=edu" write by anonymous auth by self write by * none olcAccess: to attrs=shadowLastChange by self write by * read olcAccess: to dn.base="" by * read olcAccess: to * by dn="cn=admin,dc=cs,dc=wallawalla,dc=edu" write by * read