FreedomTunnel/DeploymentNotes: Difference between revisions

From My Wiki
Jump to navigation Jump to search
imported>Charlesnw
imported>Charlesnw
No edit summary
Line 1: Line 1:
==Server setup:==
==Server setup:==


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




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


3) Attempt to add schemas:
3) Attempt to add schemas:
Line 10: Line 10:
   581  ldapadd -x -D cn=admin,cn=config,dc=corp,dc=thefnf,dc=net -W -f openldap/goserver.ldif  
   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
will fail.  


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


Relevant bits:  
http://www.saruman.biz/wiki/index.php/OpenLDAP#Adding_or_modifying_the_cn.3Dconfig_admin_password


PASS=$(slappasswd)
==GOSA Setup==
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:
Pretty straight forward LAMP deployment.  
 
http://ubuntuforums.org/showthread.php?t=1515119
 
and get


===GOSA LDAP bits===
<pre>
<pre>
 
464  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goserver.ldif
SASL/EXTERNAL authentication started
  466  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goto.ldif
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
  467  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gofon.ldif
SASL SSF: 0
  468  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goto.ldif
modifying entry "cn=config"
  469  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosystem.ldif
 
  470  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goto.ldif
modifying entry "olcDatabase={0}config,cn=config"
  475  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif
ldap_modify: Type or value exists (20)
  476  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goserver.ldif
additional info: modify/add: olcRootDN: value #0 already exists
  480  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif
 
  482  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif
  484  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif
  487  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif
  494  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif
  497  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/samba3.ldif
  498  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif
</pre>
</pre>
Found
http://www.saruman.biz/wiki/index.php/OpenLDAP#Adding_or_modifying_the_cn.3Dconfig_admin_password

Revision as of 07:05, 15 May 2012

Server setup:

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


2)run dpkg-reconfigure slapd) to get the basic functionality setup.

3) Attempt to add schemas:

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

will fail.

Fix is at:

http://www.saruman.biz/wiki/index.php/OpenLDAP#Adding_or_modifying_the_cn.3Dconfig_admin_password

GOSA Setup

Pretty straight forward LAMP deployment.

GOSA LDAP bits

 464  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goserver.ldif 
  466  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goto.ldif 
  467  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gofon.ldif 
  468  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goto.ldif 
  469  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosystem.ldif 
  470  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goto.ldif 
  475  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif 
  476  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/goserver.ldif 
  480  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif 
  482  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif 
  484  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif 
  487  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif 
  494  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif 
  497  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/samba3.ldif 
  498  ldapadd  -QY EXTERNAL -H ldapi:/// -f openldap/gosa-samba3.ldif