harbor/tests/ldap_test.ldif

153 lines
3.6 KiB
Plaintext
Raw Normal View History

2017-11-29 12:29:51 +01:00
# User entry doesn't belong to harbor_users, it should fail to login
dn: uid=test,dc=example,dc=com
uid: test
cn: test
sn: 3
objectClass: top
objectClass: posixAccount
objectClass: inetOrgPerson
loginShell: /bin/bash
homeDirectory: /home/test
uidNumber: 1001
gidNumber: 1001
userPassword: 123456
mail: test@example.com
gecos: test
2017-11-29 12:29:51 +01:00
# OU for People
dn: ou=people,dc=example,dc=com
objectClass: organizationalUnit
ou: People
# OU for Groups
dn: ou=groups,dc=example,dc=com
objectClass: organizationalUnit
ou: Groups
# Group Entry harbor_users
dn: cn=harbor_users,ou=groups,dc=example,dc=com
cn: harbor_users
description: All users
member: cn=mike,ou=people,dc=example,dc=com
2017-12-01 06:47:21 +01:00
member: cn=mike02,ou=people,dc=example,dc=com
2018-04-02 06:08:04 +02:00
member: cn=mike03,ou=people,dc=example,dc=com
member: cn=mike04,ou=people,dc=example,dc=com
member: cn=mike05,ou=people,dc=example,dc=com
2017-11-29 12:29:51 +01:00
objectclass: groupOfNames
objectclass: top
2018-03-26 07:18:52 +02:00
# Group Entry harbor_group
dn: cn=harbor_group,ou=groups,dc=example,dc=com
cn: harbor_group
description: harbor group
member: cn=mike,ou=people,dc=example,dc=com
member: cn=mike02,ou=people,dc=example,dc=com
objectclass: groupOfNames
objectclass: top
# Group Entry harbor_group2
dn: cn=harbor_group2,ou=groups,dc=example,dc=com
cn: harbor_group2
description: harbor group2
member: cn=mike,ou=people,dc=example,dc=com
member: cn=mike02,ou=people,dc=example,dc=com
objectclass: groupOfNames
objectclass: top
2017-11-29 12:29:51 +01:00
# User belongs to harbor_user
dn: cn=mike,ou=people,dc=example,dc=com
cn: mike
gidnumber: 10000
givenname: mike
homedirectory: /home/mike
loginshell: /bin/bash
mail: mike@example.com
objectclass: top
objectclass: posixAccount
objectclass: shadowAccount
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
sn: Joe
uid: mike
uidnumber: 5000
userpassword: {MD5}wb68DeX0CyENafzUADNn9A==
2017-12-01 06:47:21 +01:00
memberof: cn=harbor_users,ou=groups,dc=example,dc=com
# User entry to add project member testcase
dn: cn=mike02,ou=people,dc=example,dc=com
cn: mike02
gidnumber: 10000
givenname: mike02
homedirectory: /home/mike02
loginshell: /bin/bash
mail: mike02@example.com
objectclass: top
objectclass: posixAccount
objectclass: shadowAccount
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
sn: Mike02
uid: mike02
uidnumber: 5001
userpassword: {MD5}wb68DeX0CyENafzUADNn9A==
memberof: cn=harbor_users,ou=groups,dc=example,dc=com
dn: cn=mike03,ou=people,dc=example,dc=com
cn: mike03
gidnumber: 10000
givenname: mike03
homedirectory: /home/mike03
loginshell: /bin/bash
mail: mike03@example.com
objectclass: top
objectclass: posixAccount
objectclass: shadowAccount
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
sn: Mike03
uid: mike03
uidnumber: 5002
userpassword: {MD5}wb68DeX0CyENafzUADNn9A==
memberof: cn=harbor_users,ou=groups,dc=example,dc=com
dn: cn=mike04,ou=people,dc=example,dc=com
cn: mike04
gidnumber: 10000
givenname: mike04
homedirectory: /home/mike04
loginshell: /bin/bash
mail: mike04@example.com
objectclass: top
objectclass: posixAccount
objectclass: shadowAccount
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
sn: Mike04
uid: mike04
uidnumber: 5003
userpassword: {MD5}wb68DeX0CyENafzUADNn9A==
memberof: cn=harbor_users,ou=groups,dc=example,dc=com
dn: cn=mike05,ou=people,dc=example,dc=com
cn: mike05
gidnumber: 10000
givenname: mike05
homedirectory: /home/mike05
loginshell: /bin/bash
mail: mike05@example.com
objectclass: top
objectclass: posixAccount
objectclass: shadowAccount
objectclass: inetOrgPerson
objectclass: organizationalPerson
objectclass: person
sn: Mike05
uid: mike05
uidnumber: 5004
userpassword: {MD5}wb68DeX0CyENafzUADNn9A==
memberof: cn=harbor_users,ou=groups,dc=example,dc=com