FreedomTunnel/DeploymentNotes: Difference between revisions
imported>Charlesnw Created page with "==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: ..." |
imported>Charlesnw |
||
Line 23: | Line 23: | ||
slapd -u ldap -g ldap | slapd -u ldap -g ldap | ||
ldapwhoami -x -D cn=config -W | 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 |
Revision as of 05:56, 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