about summary refs log tree commit diff stats
path: root/wiki/lib/plugins/authpdo/conf
diff options
context:
space:
mode:
Diffstat (limited to 'wiki/lib/plugins/authpdo/conf')
-rw-r--r--wiki/lib/plugins/authpdo/conf/default.php118
-rw-r--r--wiki/lib/plugins/authpdo/conf/metadata.php27
2 files changed, 145 insertions, 0 deletions
diff --git a/wiki/lib/plugins/authpdo/conf/default.php b/wiki/lib/plugins/authpdo/conf/default.php
new file mode 100644
index 0000000..138ca2f
--- /dev/null
+++ b/wiki/lib/plugins/authpdo/conf/default.php
@@ -0,0 +1,118 @@
+<?php
+/**
+ * Default settings for the authpdo plugin
+ *
+ * @author Andreas Gohr <andi@splitbrain.org>
+ */
+
+$conf['debug'] = 0;
+$conf['dsn'] = '';
+$conf['user'] = '';
+$conf['pass'] = '';
+
+/**
+ * statement to select a single user identified by its login name
+ *
+ * input: :user
+ * return: user, name, mail, (clear|hash), [uid], [*]
+ */
+$conf['select-user'] = '';
+
+/**
+ * statement to check the password in SQL, optional when above returned clear or hash
+ *
+ * input: :user, :clear, :hash, [uid], [*]
+ * return: *
+ */
+$conf['check-pass'] = '';
+
+/**
+ * statement to select a single user identified by its login name
+ *
+ * input: :user, [uid]
+ * return: group
+ */
+$conf['select-user-groups'] = '';
+
+/**
+ * Select all the existing group names
+ *
+ * return: group, [gid], [*]
+ */
+$conf['select-groups'] = '';
+
+/**
+ * Create a new user
+ *
+ * input: :user, :name, :mail, (:clear|:hash)
+ */
+$conf['insert-user'] = '';
+
+/**
+ * Remove a user
+ *
+ * input: :user, [:uid], [*]
+ */
+$conf['delete-user'] = '';
+
+/**
+ * list user names matching the given criteria
+ *
+ * Make sure the list is distinct and sorted by user name. Apply the given limit and offset
+ *
+ * input: :user, :name, :mail, :group, :start, :end, :limit
+ * out: user
+ */
+$conf['list-users'] = '';
+
+/**
+ * count user names matching the given criteria
+ *
+ * Make sure the counted list is distinct
+ *
+ * input: :user, :name, :mail, :group
+ * out: count
+ */
+$conf['count-users'] = '';
+
+/**
+ * Update user data (except password and user name)
+ *
+ * input: :user, :name, :mail, [:uid], [*]
+ */
+$conf['update-user-info'] = '';
+
+/**
+ * Update user name aka login
+ *
+ * input: :user, :newlogin, [:uid], [*]
+ */
+$conf['update-user-login'] = '';
+
+/**
+ * Update user password
+ *
+ * input: :user, :clear, :hash, [:uid], [*]
+ */
+$conf['update-user-pass'] = '';
+
+/**
+ * Create a new group
+ *
+ * input: :group
+ */
+$conf['insert-group'] = '';
+
+/**
+ * Make user join group
+ *
+ * input: :user, [:uid], group, [:gid], [*]
+ */
+$conf['join-group'] = '';
+
+/**
+ * Make user leave group
+ *
+ * input: :user, [:uid], group, [:gid], [*]
+ */
+$conf['leave-group'] = '';
diff --git a/wiki/lib/plugins/authpdo/conf/metadata.php b/wiki/lib/plugins/authpdo/conf/metadata.php
new file mode 100644
index 0000000..7c2ee8c
--- /dev/null
+++ b/wiki/lib/plugins/authpdo/conf/metadata.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * Options for the authpdo plugin
+ *
+ * @author Andreas Gohr <andi@splitbrain.org>
+ */
+
+$meta['debug']              = array('onoff', '_caution' => 'security');
+$meta['dsn']                = array('string', '_caution' => 'danger');
+$meta['user']               = array('string', '_caution' => 'danger');
+$meta['pass']               = array('password', '_caution' => 'danger', '_code' => 'base64');
+$meta['select-user']        = array('', '_caution' => 'danger');
+$meta['check-pass']         = array('', '_caution' => 'danger');
+$meta['select-user-groups'] = array('', '_caution' => 'danger');
+$meta['select-groups']      = array('', '_caution' => 'danger');
+$meta['insert-user']        = array('', '_caution' => 'danger');
+$meta['delete-user']        = array('', '_caution' => 'danger');
+$meta['list-users']         = array('', '_caution' => 'danger');
+$meta['count-users']        = array('', '_caution' => 'danger');
+$meta['update-user-info']   = array('', '_caution' => 'danger');
+$meta['update-user-login']  = array('', '_caution' => 'danger');
+$meta['update-user-pass']   = array('', '_caution' => 'danger');
+$meta['insert-group']       = array('', '_caution' => 'danger');
+$meta['join-group']         = array('', '_caution' => 'danger');
+$meta['leave-group']        = array('', '_caution' => 'danger');
+
+
9039287b7a76f4fcb0628a6295582d8caf768'>ef790392 ^
6b64f800 ^

6b64f800 ^
94ad882e ^
4718a77c ^
6b64f800 ^
a9985c33 ^
4718a77c ^
6b64f800 ^
4718a77c ^

6b64f800 ^

a6517ed8 ^

6b64f800 ^


a6517ed8 ^
6b64f800 ^

a6517ed8 ^
6b64f800 ^









f75c7021 ^
6b64f800 ^



732cf4e7 ^
3c46d5a2 ^



6b64f800 ^




03e72be6 ^
f02ca8df ^
420cb686 ^

6b64f800 ^
53e6c50a ^
880bfb78 ^
6b64f800 ^
8950915a ^

fb7cd3f1 ^



a6517ed8 ^
4718a77c ^
880bfb78 ^
6b64f800 ^




d48cfd0f ^

8950915a ^
d48cfd0f ^


8950915a ^
d48cfd0f ^
8950915a ^






d48cfd0f ^

6b64f800 ^


071afeff ^

6b64f800 ^






a6517ed8 ^

071afeff ^

a6517ed8 ^
071afeff ^


a6517ed8 ^

0828df68 ^
a6517ed8 ^

071afeff ^
a6517ed8 ^
071afeff ^
f75c7021 ^
a6517ed8 ^

071afeff ^
a6517ed8 ^
071afeff ^
0828df68 ^
a6517ed8 ^
071afeff ^










071afeff ^






6b64f800 ^

03e72be6 ^



6b64f800 ^







071afeff ^
d33fa1c5 ^
f3901d90 ^
071afeff ^
94ad882e ^
071afeff ^
94ad882e ^
071afeff ^
94ad882e ^
31338623 ^
f3901d90 ^
d33fa1c5 ^
f3901d90 ^
31338623 ^
071afeff ^



03e72be6 ^
fb7cd3f1 ^







03e72be6 ^


03e72be6 ^
94ad882e ^
420cb686 ^
f02ca8df ^



f02ca8df ^
94ad882e ^
420cb686 ^




f3901d90 ^
94ad882e ^
420cb686 ^
87d5bdb9 ^




bccaa722 ^
94ad882e ^

bccaa722 ^
87d5bdb9 ^
94ad882e ^
bccaa722 ^
87d5bdb9 ^
a6061b9f ^


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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287