Tech:Ldap

Miraheze uses ldap as an authentication system for some of our infrastructure such as Grafana.

Add New User
1. Add the following to user.ldif

dn: uid= ,ou=people,dc=miraheze,dc=org changetype: add objectClass: top objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson uid: givenName:  cn:  mail: userPassword:

Note get the password from.

2. Run.

Add New Group
1. Add the following to group.ldif

dn: cn= ,ou=groups,dc=miraheze,dc=org objectClass: top objectClass: posixGroup gidNumber:

2. Run

Modify Existing User
1. Run  on the ldap server (so ldap1.miraheze.org).

2. Locate the user you want to change.

3. Save.

Change User Password
1. Run  on the ldap server (so ldap1.miraheze.org).

2. Run.

3. Locate the user you want to change and then locate the password field.

(Use the {SSHA} you got from the previous step).

4. Save.

Adding base dn
1. Add the following to a .ldif file

dn: ou=people,dc=miraheze,dc=org objectClass: organizationalUnit ou: people

dn: ou=groups,dc=miraheze,dc=org objectClass: organizationalUnit ou: groups

2. Run

(The password can be found in the private puppet repo)