Skip to content

Adding new organisations to the LDAP backend

Bruce Becker edited this page Jun 4, 2015 · 1 revision

Audience

Users of the Ansible idp-ldap playbook.

Adding Organisations

Background

The playbook applies a role ldap to the LDAP server, which populates the ldap directory with a set of initial organisations. This is a static file in the repo, which may reset the list of organisations which the ldap recognises.

How organisations are added

The LDAP-backed IdP playbook uses a list of existing organisations in an ldif file, which have been accrued organincally over the years. Every time a new user registers via the web interface, they are asked to choose an organisation, which is then added into the ldap by the idp web frontend.

Keeping the organisation list up to date.

Of course, we would like to have as many organisations as possible. The easiest way is just to allow people to contribute their new organisations. The suggested procedure for doing this is using pull requests.

Creating the pull request for new organisations.

Follow this procedure to create a new pull request for the organisations you want to add.

  1. Fork the repo to your own account
  2. Add your repo to the git remotes on your side : git remote add personal https://github.com/username/DevOps
  3. Edit the file Ansible/roles/ldap/files/etc/openldap/slap.d/orgs.ldif
  4. Commit the file and push it to your personal repo : git commit Ansible/roles/ldap/files/etc/openldap/slap.d/orgs.ldif -m "New organisations" ; git push personal master
  5. Go to your repo on github and open a pull request (the green button that looks like a recycle). 1. Select @AAROC/DevOps as base fork and your repo as the head fork 1. Send pull requests to the dev branch of @AAROC/DevOps 1. You need to do this across repos 1. you should see only one file changed (the file you've just created)

We'll then discuss the new additions and hopefully add them.

Clone this wiki locally