Provider Registry Server Install Notes

From IHRIS Wiki
Revision as of 12:07, 4 June 2012 by Litlfred (talk | contribs)

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 openldap)

<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 sudo slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d sudo /etc/init.d/slapd start </source>

Load Base Organizational Units

Saved in bzr file "ldap/base_organizational_units.ldif"


<source lang='bash'> sudo slapadd -l base_organizational_units.ldif </source>


Load Sample iHRIS Data

Saved in bzr file "ldap/ihris_sample_export.ldif"


<source lang='bash'> sudo slapadd -l ihris_sample_export.ldif </source>

Testing Data Load

<source lang='bash' ldapsearch -xLLL -b "dc=moh,dc=gov,dc=rw" uid=person\|9049 </source> should produce

dn: uid=person|9049,ou=paid_public_sector,dc=moh,dc=gov,dc=rw
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: providerPerson
uid: person|9049
cn: Prout Biawriav
givenName: Prout
sn:: Qmlhd3JpYXYg
nid:: MSA=
mutuelle: 2
employeeType:: UGFpZCBQdWJsaWMgU2VjdG9yIA==
c:: VEYg
co: Taifafeki

OpenLDAP Web Services

OpenLDAP Web User Interface

http://localhost/phpldapadmin