Created
October 1, 2022 17:12
-
-
Save lucasew/775f8cce29581fa325a8025baee0faed to your computer and use it in GitHub Desktop.
The LDIF file you are probably looking for
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this glorious ldif file defines two users that can be logged in with a Linux machine | |
# tested with Ubuntu Mate 22.04 in a VM using osixia's container to bootstrap the OpenLDAP server | |
dn: ou=People,dc=example,dc=com | |
changetype: add | |
objectClass: organizationalUnit | |
ou: People | |
dn: ou=Groups,dc=example,dc=com | |
changetype: add | |
objectClass: organizationalUnit | |
ou: Groups | |
dn: cn=john,ou=Groups,dc=example,dc=com | |
changetype: add | |
objectClass: posixGroup | |
cn: john | |
gidNumber: 10000 | |
dn: uid=john,ou=People,dc=example,dc=com | |
changetype: add | |
objectClass: inetOrgPerson | |
objectClass: posixAccount | |
objectClass: shadowAccount | |
uid: john | |
sn: Doe | |
givenName: John | |
cn: John Doe | |
displayName: John Doe | |
uidNumber: 10000 | |
gidNumber: 10000 | |
userPassword: johnldap | |
gecos: John Doe | |
loginShell: /bin/bash | |
homeDirectory: /home/ldap/john | |
dn: cn=mary,ou=Groups,dc=example,dc=com | |
changetype: add | |
objectClass: posixGroup | |
cn: mary | |
gidNumber: 10001 | |
dn: uid=mary,ou=People,dc=example,dc=com | |
changetype: add | |
objectClass: inetOrgPerson | |
objectClass: posixAccount | |
objectClass: shadowAccount | |
uid: mary | |
sn: Doe | |
givenName: Mary | |
cn: Mary Doe | |
displayName: Mary Doe | |
uidNumber: 10001 | |
gidNumber: 10001 | |
userPassword: maryldap | |
gecos: Mary Doe | |
loginShell: /bin/bash | |
homeDirectory: /home/ldap/mary | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment