FreedomTunnel/DeploymentNotes: Difference between revisions

From My Wiki
Jump to navigation Jump to search
imported>Charlesnw
imported>Charlesnw
Line 29: Line 29:


and get
and get
<pre>


SASL/EXTERNAL authentication started
SASL/EXTERNAL authentication started
Line 38: Line 40:
ldap_modify: Type or value exists (20)
ldap_modify: Type or value exists (20)
additional info: modify/add: olcRootDN: value #0 already exists
additional info: modify/add: olcRootDN: value #0 already exists
</pre>

Revision as of 05:57, 15 May 2012

Server setup:

1) http://www.rjsystems.nl/en/2100-d6-openldap-provider.php


2) (I had to run dpkg-reconfigure slapd) to get the ACLs tweaked.

3) Attempt to add schemas:

 581  ldapadd -x -D cn=admin,cn=config,dc=corp,dc=thefnf,dc=net -W -f openldap/goserver.ldif 

gives me the dreaded invalid credentials error. So then I find

http://www.openldap.org/lists/openldap-technical/201201/msg00045.html http://www.openldap.org/lists/openldap-technical/201201/msg00053.html

Relevant bits:

PASS=$(slappasswd) echo -e "database config\nrootpw $PASS" > /tmp/slapd-initial.conf slaptest -f /tmp/slapd-initial.conf -F /etc/*ldap/slapd.d chown -R ldap:ldap /etc/*ldap/slapd.d slapd -u ldap -g ldap ldapwhoami -x -D cn=config -W

Then I found:

http://ubuntuforums.org/showthread.php?t=1515119

and get


SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
modifying entry "cn=config"

modifying entry "olcDatabase={0}config,cn=config"
ldap_modify: Type or value exists (20)
	additional info: modify/add: olcRootDN: value #0 already exists