Last active
December 22, 2021 06:48
-
-
Save IMOKURI/8c2d6bf05728f659e11726c4eb945cbf to your computer and use it in GitHub Desktop.
ldap snippet
This file contains 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
dn: ou=People,dc=ec2,dc=internal | |
objectClass: organizationalUnit | |
ou: People | |
dn: ou=Group,dc=ec2,dc=internal | |
objectClass: organizationalUnit | |
ou: Group |
This file contains 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
dn: cn=login,dc=ec2,dc=internal | |
objectClass: organizationalRole | |
objectClass: simpleSecurityObject | |
cn: login | |
userPassword: {SSHA}+C/O3XySdiS5ajyV/GhHsmW1Z5RI/tTl |
This file contains 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
dn: olcDatabase={1}mdb,cn=config | |
changeType: modify | |
replace: olcAccess | |
olcAccess: {0}to attrs=userPassword,shadowLastChange | |
by self write | |
by dn.base="cn=admin,dc=ec2,dc=internal" write | |
by dn.base="cn=login,dc=ec2,dc=internal" read | |
by anonymous auth | |
by * none | |
olcAccess: {1}to * | |
by self write | |
by dn.base="cn=admin,dc=ec2,dc=internal" write | |
by anonymous auth | |
by * read |
This file contains 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
dn: uid=thomas,ou=People,dc=ec2,dc=internal | |
objectClass: inetOrgPerson | |
objectClass: posixAccount | |
objectClass: shadowAccount | |
cn: Thomas | |
sn: the Tank Engine | |
mail: thomas@ip-10-0-8-206.ec2.internal | |
userPassword: {SSHA}pR2i0KGJpu8J72NAk+TcpGrlqoq/8C0L | |
loginShell: /bin/bash | |
uidNumber: 2001 | |
gidNumber: 2000 | |
homeDirectory: /home/thomas | |
dn: uid=edward,ou=People,dc=ec2,dc=internal | |
objectClass: inetOrgPerson | |
objectClass: posixAccount | |
objectClass: shadowAccount | |
cn: Edward | |
sn: the Blue Engine | |
mail: edward@ip-10-0-8-206.ec2.internal | |
userPassword: {SSHA}pR2i0KGJpu8J72NAk+TcpGrlqoq/8C0L | |
loginShell: /bin/bash | |
uidNumber: 2002 | |
gidNumber: 2000 | |
homeDirectory: /home/edward | |
dn: uid=henry,ou=People,dc=ec2,dc=internal | |
objectClass: inetOrgPerson | |
objectClass: posixAccount | |
objectClass: shadowAccount | |
cn: Henry | |
sn: the Green Engine | |
mail: henry@ip-10-0-8-206.ec2.internal | |
userPassword: {SSHA}pR2i0KGJpu8J72NAk+TcpGrlqoq/8C0L | |
loginShell: /bin/bash | |
uidNumber: 2003 | |
gidNumber: 2000 | |
homeDirectory: /home/henry | |
dn: uid=gordon,ou=People,dc=ec2,dc=internal | |
objectClass: inetOrgPerson | |
objectClass: posixAccount | |
objectClass: shadowAccount | |
cn: Gordon | |
sn: the Big Engine | |
mail: gordon@ip-10-0-8-206.ec2.internal | |
userPassword: {SSHA}pR2i0KGJpu8J72NAk+TcpGrlqoq/8C0L | |
loginShell: /bin/bash | |
uidNumber: 2004 | |
gidNumber: 2000 | |
homeDirectory: /home/gordon | |
dn: uid=james,ou=People,dc=ec2,dc=internal | |
objectClass: inetOrgPerson | |
objectClass: posixAccount | |
objectClass: shadowAccount | |
cn: James | |
sn: the Red Engine | |
mail: james@ip-10-0-8-206.ec2.internal | |
userPassword: {SSHA}pR2i0KGJpu8J72NAk+TcpGrlqoq/8C0L | |
loginShell: /bin/bash | |
uidNumber: 2005 | |
gidNumber: 2000 | |
homeDirectory: /home/james | |
dn: uid=percy,ou=People,dc=ec2,dc=internal | |
objectClass: inetOrgPerson | |
objectClass: posixAccount | |
objectClass: shadowAccount | |
cn: Percy | |
sn: the Small Engine | |
mail: percy@ip-10-0-8-206.ec2.internal | |
userPassword: {SSHA}pR2i0KGJpu8J72NAk+TcpGrlqoq/8C0L | |
loginShell: /bin/bash | |
uidNumber: 2006 | |
gidNumber: 2000 | |
homeDirectory: /home/percy | |
dn: cn=sodor,ou=Group,dc=ec2,dc=internal | |
objectClass: posixGroup | |
cn: sodor | |
gidNumber: 2000 | |
memberUid: thomas | |
memberUid: edward | |
memberUid: henry | |
memberUid: gordon | |
memberUid: james | |
memberUid: percy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment