aboutsummaryrefslogtreecommitdiffstats
path: root/catdap.yml
blob: 052f5b7d839b23f23e46305045118734d9ee9c41 (plain)
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# This is the default configuration for CatDap. You should not need to
# modify it, unless you actually want to fix some default behaviour
# that is configured below
#
# For site-specific configuration, copy this file (catdap.yml) to
# have a _local suffix (catdap_local.yml) and make your changes there.
# Note that you only need to keep configuration sections that differ,
# the rest will be inherited

name: CatDap
default_view: Web
encoding: UTF-8

organisation: Mageia
project_url: http://www.mageia.org/
apptitle: Mageia Identity Management
emailfrom: noreply@mageia.org

Model::Proxy:
        base: ou=People,dc=mageia,dc=org
        dn: cn=catdap,ou=System Accounts,dc=mageia,dc=org
        password: FIXME
        host: ldap.mageia.org
        start_tls: 1
        options:
                inet6: 1

# dn and password should not be required here, we rebind with credentials
# from the authenticated user using Model::LDAP::FromAuthentication
Model::User:
        base: dc=mageia,dc=org
        host: ldap.mageia.org
        start_tls: 1

register:
        login_regex: ^[a-z][a-z0-9]*$
        login_blacklist:
                - apache
        email_domain_blacklist:
                - armyspy.com
                - codehot.co.uk
                - dayrep.com
                - guerillamail.com
                - jourrapide.com
                - rhyta.com
                - wowring.ru
                - yopmail.com
                - zasod.com

forgot_password:
        secret:
                path:   '/tmp/'
                prefix: 'catdap-forgot_password-'
                timeout: 259200
        allow_filter: '(!(objectClass=posixAccount))'

authentication:
        default_realm: ldap
        realms:
                ldap:
                        credential:
                                class: Password
                                password_field: password
                                password_type: self_check
                        store:
                                class: LDAP
                                ldap_server:     'ldap.mageia.org'
                                ldap_server_options:
                                        inet6: 1
                                start_tls:       1
                                binddn:          cn=catdap,ou=System Accounts,dc=mageia,dc=org
                                bindpw:          FIXME
                                user_basedn:    "ou=people,dc=mageia,dc=org"
                                user_filter:    '(&(objectClass=inetOrgPerson)(uid=%s))'
                                user_scope:     'one'
                                user_field:     'uid'
                                email_filter:   '(&(objectClass=inetOrgPerson)(|(mail=%s)(mailAlternateAddress=%s)))'
                                use_roles:      1
                                role_basedn:    'dc=mageia,dc=org'
                                role_scope:     'sub'
                                role_field:     'cn'
                                role_value:     'dn'
                                role_filter:    '(member=%s)'
                                role_search_as_user: 1

Controller::User:
# Attributes that the user can edit. Attributes present but not listed here
# will be show (if not in skip_attrs), but the form will not allow editing.
# Note that the actual access contols should be implemented on the LDAP side,
# that is where they belong, or you are being inconsistent if users have other
# means to access LDAP
        editable_attrs:
                       - cn
                       - sn
                       - givenName
                       - mail
                       - mobile
                       - roomNumber
                       - secretary
                       - mailForwardingAddress
                       - sshPublicKey
                       - preferredLanguage

# Currently not used, we only respect editable_attrs
        uneditable_attrs:
                       - uid
                      # - uidNumber
                      # - gidNumber
                      # - homeDirectory
                      # - host
                      # - manager
                      # - krb5PrincipalName
# List of attributes which are not displayed at all in the user view
        skip_attrs:
                     - objectClass
                     - krb5Key
                     - sambaMungedDial
                     - sambaPasswordHistory
                     - userPassword
                     - sambaLMPassword
                     - sambaNTPassword
                     - sambaPwdMustChange
                     - sambaSID
                     - sambaPrimaryGroupSID
                     - sambaAcctFlags
                     - sambaPwdCanChange
                     - sambaPwdLastSet
                     - sambaKickOffTime
                     - sambaUserWorkstations
                     - sambaLogonTime
                     - krb5KeyVersionNumber
                     - krb5PasswordEnd
                     - krb5MaxLife
                     - krb5MaxRenew
                     - krb5KDCFlags
                     - shadowLastChange
                     - shadowWarning
                     - shadowMax
                     - shadowMin
                     - shadowInactive
                     - shadowExpire
                     - shadowFlag

Plugin::Captcha:
        new:
                width: 250
                height: 100
                lines: 6
                scramble: 1
                font: /usr/share/fonts/TTF/dejavu/DejaVuSansMono.ttf
                rnd_data:
                  - 2
                  - 3
                  - 4
                  - 5
                  - 6
                  - 7
                  - 8
                  - 9
                  - A
                  - B
                  - C
                  - D
                  - E
                  - F
                  - G
                  - H
                  - J
                  - K
                  - L
                  - M
                  - P
                  - R
                  - S
                  - T
                  - U
                  - V
                  - W
                  - X
                  - Y
                  - Z

        create: 
                - ttf
                - rect
                - '#B20000'
                - '#009900'

        particle: 
                - 1000

Plugin::Session:
        expires: 600