Add support for ldap, mysql and postgres tests through the use of an external VM.
[freeradius.git] / src / tests / salt-test-server / salt / ldap / base.ldif
1 # Database settings
2 dn: olcDatabase=hdb,cn=config
3 objectClass: olcDatabaseConfig
4 objectClass: olcHdbConfig
5 olcDatabase: {1}hdb
6 olcSuffix: dc=example,dc=com
7 olcDbDirectory: /var/lib/ldap
8 olcRootDN: cn=admin,dc=example,dc=com
9 olcRootPW: {SSHA}SgCZuAcGQA5HlgKi+g5xwVyI2NhXRFYh
10 olcDbConfig: set_cachesize 0 2097152 0
11 olcDbConfig: set_lk_max_objects 1500
12 olcDbConfig: set_lk_max_locks 1500
13 olcDbConfig: set_lk_max_lockers 1500
14 olcDbIndex: objectClass eq
15 olcLastMod: TRUE
16 olcDbCheckpoint: 512 30
17 olcAccess: to * by dn.exact="gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth" manage
18 olcAccess: to attrs=userPassword by dn="cn=admin,dc=example,dc=com" write by anonymous auth by self write by * none
19 olcAccess: to attrs=shadowLastChange by self write by * read
20 olcAccess: to dn.base="" by * read
21 olcAccess: to * by dn="cn=admin,dc=example,dc=com" write by * read
22
23 # Create top-level object in domain
24 dn: dc=example,dc=com
25 objectClass: top
26 objectClass: dcObject
27 objectclass: organization
28 o: Example Organization
29 dc: Example
30 description: LDAP Example
31
32 dn: ou=people,dc=example,dc=com
33 objectClass: organizationalUnit
34 ou: people
35
36 dn: ou=groups,dc=example,dc=com
37 objectClass: organizationalUnit
38 ou: groups
39
40 # foo, groups, example.com
41 dn: cn=foo,ou=groups,dc=example,dc=com
42 cn: foo
43 objectClass: groupOfNames
44 objectClass: top
45 member: uid=john,ou=people,dc=example,dc=com
46
47 dn: ou=profiles,dc=example,dc=com
48 objectClass: organizationalUnit
49 ou: profiles
50
51 dn: cn=radprofile,ou=profiles,dc=example,dc=com
52 objectClass: radiusObjectProfile
53 objectClass: radiusprofile
54 cn: radprofile
55 radiusFramedIPNetmask: 255.255.255.0
56
57 dn: cn=profile1,ou=profiles,dc=example,dc=com
58 objectClass: radiusObjectProfile
59 objectClass: radiusprofile
60 cn: profile1
61 radiusReplyAttribute: Framed-IP-Netmask := 255.255.0.0
62 radiusReplyAttribute: Acct-Interim-Interval := 1800
63 radiusRequestAttribute: Service-Type := Framed-User
64 radiusControlAttribute: Framed-IP-Address == 1.2.3.4
65 radiusControlAttribute: Reply-Message == "Hello world"
66
67 dn: uid=john,ou=people,dc=example,dc=com
68 objectClass: inetOrgPerson
69 objectClass: posixAccount
70 objectClass: shadowAccount
71 objectClass: radiusprofile
72 uid: john
73 sn: Doe
74 givenName: John
75 cn: John Doe
76 displayName: John Doe
77 userPassword: {cleartext}password
78 uidNumber: 100
79 gidNumber: 100
80 homeDirectory: /home/john
81 radiusIdleTimeout: 3600
82 radiusAttribute: reply:Session-Timeout := 7200
83 radiusAttribute: control:NAS-IP-Address := 1.2.3.4
84 radiusProfileDN: cn=profile1,ou=profiles,dc=example,dc=com