Ldap Server: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| No edit summary | |||
| Line 2: | Line 2: | ||
| === Preparation === | === Preparation === | ||
| By default the installation of slapd will create a working configuration based on the hostname. If you want a suffix dc=objclt,dc=com then your host file "/etc/hosts" would have a line similar to this: | By default the installation of slapd will create a working configuration based on the hostname. If you want a suffix dc=objclt,dc=com then your host file "/etc/hosts" would have a line similar to this: | ||
| < | <syntaxhighlight lang="bash">127.0.1.1   hostname.objclt.com  hostname</syntaxhighlight> | ||
| === Install === | === Install === | ||
| Line 9: | Line 9: | ||
| === Validate your install === | === Validate your install === | ||
| < | <syntaxhighlight lang="bash">ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config dn</syntaxhighlight> | ||
| == Setup Ldap == | == Setup Ldap == | ||
| === Change Root DN === | === Change Root DN === | ||
| Retreive current information | Retreive current information | ||
| < | <syntaxhighlight lang="bash">ldapsearch -LLL -Y EXTERNAL -H ldapi:/// -b  cn=config dn olcRootDN</syntaxhighlight> | ||
| You need to modify the entry dn: "olcDatabase={1}hdb,cn=config" | You need to modify the entry dn: "olcDatabase={1}hdb,cn=config" | ||
| Proceed to modify | Proceed to modify | ||
| < | <syntaxhighlight lang="bash">ldapmodify -Y EXTERNAL -H ldapi:///</syntaxhighlight> | ||
| First, enter the entry we want to modify | First, enter the entry we want to modify | ||
| < | <syntaxhighlight lang="bash">dn: olcDatabase={1}mdb,cn=config</syntaxhighlight> | ||
| Second, type the parameter we want to modify | Second, type the parameter we want to modify | ||
| < | <syntaxhighlight lang="bash">replace: olcRootDN</syntaxhighlight> | ||
| Third, type the new value you want | Third, type the new value you want | ||
| < | <syntaxhighlight lang="bash">olcRootDN: cn=admin,dc=objclt,dc=com</syntaxhighlight> | ||
| Press enter twice to confirm | Press enter twice to confirm | ||
Revision as of 16:00, 15 May 2016
Installation
Preparation
By default the installation of slapd will create a working configuration based on the hostname. If you want a suffix dc=objclt,dc=com then your host file "/etc/hosts" would have a line similar to this:
127.0.1.1   hostname.objclt.com  hostname
Install
Install Ldap server and utilities
apt-get install slapd ldap-utils
Validate your install
ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config dn
Setup Ldap
Change Root DN
Retreive current information
ldapsearch -LLL -Y EXTERNAL -H ldapi:/// -b  cn=config dn olcRootDN
You need to modify the entry dn: "olcDatabase={1}hdb,cn=config"
Proceed to modify
ldapmodify -Y EXTERNAL -H ldapi:///
First, enter the entry we want to modify
dn: olcDatabase={1}mdb,cn=config
Second, type the parameter we want to modify
replace: olcRootDN
Third, type the new value you want
olcRootDN: cn=admin,dc=objclt,dc=com
Press enter twice to confirm