Provider Registry Server Install Notes: Difference between revisions

From IHRIS Wiki
(Created page with "Installation and configuration notes on Ubuntu 12.04 (Precise). All files are in launchpad ==Installation== sudo apt-get install slapd ldap-utils phpldapadmin ==Configure Cust...")
 
No edit summary
Line 9: Line 9:
See [http://www.howtoforge.com/installing-and-configuring-openldap-on-ubuntu-intrepid-ibex this] for more detailed explanations.
See [http://www.howtoforge.com/installing-and-configuring-openldap-on-ubuntu-intrepid-ibex this] for more detailed explanations.


<source lang='bash'>
sudo /etc/init.d/slapd stop
sudo /etc/init.d/slapd stop
</source>


Copy from bzr:
Copy from bzr:
Line 15: Line 17:
*"ldap/slapd.conf" to "/etc/ldap/slapd.conf"  (chmod 644 with owner root)
*"ldap/slapd.conf" to "/etc/ldap/slapd.conf"  (chmod 644 with owner root)


<source lang='bash'>
sudo mv /etc/ldap/slapd.d /etc/ldap/slapd.d.backup_`date +"%d_%m_%y"`
sudo mv /etc/ldap/slapd.d /etc/ldap/slapd.d.backup_`date +"%d_%m_%y"`
sudo mkdir /etc/ldap/slapd.d   
sudo mkdir /etc/ldap/slapd.d   
Line 20: Line 23:
sudo chmod 755 /etc/ldap/slapd.d
sudo chmod 755 /etc/ldap/slapd.d
slaptest -f slapd.conf -F slapd.d
slaptest -f slapd.conf -F slapd.d
sudo /etc/init.d/slapd start
sudo /etc/init.d/slapd start
 
</source>


==Load Sample iHRIS Data==
==Load Sample iHRIS Data==

Revision as of 11:35, 4 June 2012

Installation and configuration notes on Ubuntu 12.04 (Precise).

All files are in launchpad

Installation

sudo apt-get install slapd ldap-utils phpldapadmin

Configure Custom Schema

See this for more detailed explanations.

<source lang='bash'> sudo /etc/init.d/slapd stop </source>

Copy from bzr:

  • "ldap/provider.schema" to "/etc/ldap/schema/provider.schema" (chmod 644 with owner root)
  • "ldap/slapd.conf" to "/etc/ldap/slapd.conf" (chmod 644 with owner root)

<source lang='bash'> sudo mv /etc/ldap/slapd.d /etc/ldap/slapd.d.backup_`date +"%d_%m_%y"` sudo mkdir /etc/ldap/slapd.d sudo chown -R openldap:openldap /etc/ldap/slapd.d sudo chmod 755 /etc/ldap/slapd.d slaptest -f slapd.conf -F slapd.d sudo /etc/init.d/slapd start </source>

Load Sample iHRIS Data

Saved in bzr file "ldap/ihris_sample_export.ldif"

sudo slapadd -l ihris_sample_export.ldif

OpenLDA Web Services

OpenLDAP Web User Interface

http://localhost/phpldapadmin