Skip to content

Instantly share code, notes, and snippets.

@mdasilva
Created May 8, 2018 18:23
Show Gist options
  • Save mdasilva/5cca86d133930fff3a12787ba8cfa26a to your computer and use it in GitHub Desktop.
Save mdasilva/5cca86d133930fff3a12787ba8cfa26a to your computer and use it in GitHub Desktop.
# Add an OU to hold user accounts
dn: ou=users,dc=example,dc=org
changeType: add
objectClass: organizationalUnit
description: Organization users
ou: users
# Add an OU to hold roles
dn: ou=roles,dc=example,dc=org
changeType: add
objectClass: organizationalUnit
description: Organization roles
ou: roles
# Add a SysAdmin role
dn: cn=sysadmins,ou=roles,dc=example,dc=org
changeType: add
objectClass: organizationalRole
description: System Admin role
# Add a Developer role
dn: cn=developers,ou=roles,dc=example,dc=org
changeType: add
objectClass: organizationalRole
description: Developer role
# Add some people
dn: uid=dfayden,ou=users,dc=example,dc=org
changeType: add
objectClass: inetOrgPerson
description: Self-proclaimed "greatest thief in the Multiverse."
sn: Fayden
givenName: Dack
cn: Dack Fayden
uid: dfayden
mail: dfayden@example.org
memberOf: cn=sysadmins,ou=roles,dc=example,dc=org
dn: uid=etirel,ou=users,dc=example,dc=org
changeType: add
objectClass: inetOrgPerson
description: Left her embattled homeland in search of a new place to call home.
sn: Tirel
givenName: Elspeth
cn: Elspeth Tirel
uid: etirel
mail: etirel@example.org
memberOf: cn=sysadmins,ou=roles,dc=example,dc=org
dn: uid=gjura,ou=users,dc=example,dc=org
changeType: add
objectClass: inetOrgPerson
description: Fiercely loyal, unyielding, just and charismatic.
sn: Jura
givenName: Gideon
cn: Gideon Jura
uid: gjura
mail: gjura@example.org
memberOf: cn=developers,ou=users,dc=example,dc=org
dn: uid=jbeleren,ou=users,dc=example,dc=org
changeType: add
objectClass: inetOrgPerson
description: Brilliant, curious, and always in control.
sn: Beleren
givenName: Jace
cn: Jace Beleren
uid: jbeleren
mail: jbeleren@example.org
memberOf: cn=developers,ou=users,dc=example,dc=org
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment