storage.yml
1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
:DsAdmin::Storage::Ldap:
:con:
:host: 'host.weird-web-workers.org'
:port: 389
:DsAdmin::Model::User:
:query:
:base: 'ou=user,o=system,dc=weird-web-workers,dc=org'
:filter: '(objectClass=posixAccount)'
:objectClass:
- 'account'
- 'posixAccount'
- 'shadowAccount'
:dnPat: "uid=#{:name}"
:map:
:uid: :name
:userpassword: :pass
:uidnumber: :uid
:gidnumber: :gid
:loginshell: :shell
:homedirectory: :home
:DsAdmin::Model::Group:
:query:
:base: 'ou=group,o=system,dc=weird-web-workers,dc=org'
:filter: '(objectClass=posixGroup)'
:objectClass: 'posixGroup'
:dnPat: "cn=#{:name}"
:map:
:cn: :name
:gidnumber: :gid
:memberuid: :members
:DsAdmin::Model::Site:
:query:
:base: 'o=hosting,dc=weird-web-workers,dc=org'
:filter: '(&(objectClass=organization)(!(o=hosting)))'
:objectClass: 'organization'
:dnPat: "o=#{:name}"
:map:
:o: :name
:DsAdmin::Model::MailAliasRole:
:query:
:base: 'o=hosting,dc=weird-web-workers,dc=org'
:filter: '(&(objectClass=MailAlias)(objectClass=organizationalrole))'
:objectClass:
- 'organizationalRole'
- 'MailAlias'
:dnPat: "cn=#{:user},o=#{:mail|/.*@/, ''}"
:map:
:cn: :user
:DsAdmin::Model::MailAliasPerson:
:query:
:base: 'o=hosting,dc=weird-web-workers,dc=org'
:filter: '(&(objectClass=MailAlias)(objectClass=person))'
:objectClass:
- 'person'
- 'MailAlias'
:dnPat: "mail=#{:mail},o=#{:mail|/.*@/, ''}"
:map:
:sn: :surname
:cn: :name
:DsAdmin::Model::MailAccount:
:query:
:base: 'o=hosting,dc=weird-web-workers,dc=org'
:filter: '(objectClass=mailAccount)'
:objectClass:
- 'person'
- 'MailAccount'
:dnPat: "mail=#{:mail},o=#{:mail|/.*@/, ''}"
:map:
:homedirectory: :home