e49c7d30da2cce53dd040276c6f679dc154d0668
1 <?php
4 class all extends plugin {
5 static function plInfo()
6 {
7 return (array(
8 "plShortName" => _("All"),
9 "plDescription" => _("All objects in this category"),
10 "plSelfModify" => TRUE,
11 "plDepends" => array(),
12 "plPriority" => 0,
13 "plSection" => array("administration"),
14 "plCategory" => array("all" => array("objectClass" => "none", "description" => '* '._("All"))),
15 "plProvidedAcls" => array())
16 );
17 }
18 }
20 class core extends plugin {
22 static function getPropertyValues($class,$name,$value,$type)
23 {
24 $list = array();
25 switch($name){
26 case 'idAllocationMethod':
27 $list = array('traditional' => _('Traditional'), 'pool' => _('Use samba pool'));
28 break;
29 case 'passwordDefaultHash':
30 $tmp = passwordMethod::get_available_methods();
31 foreach($tmp['name'] as $id => $method){
32 $desc = $tmp[$id]['name'];
33 $list[$method] = $desc;
34 }
35 break;
36 case 'accountPrimaryAttribute':
37 $list = array('uid' => 'uid', 'cn' => 'cn');
38 break;
39 case 'loginAttribute':
40 $list = array(
41 'uid' => 'uid',
42 'mail' => 'mail',
43 'both' => 'uid & mail');
44 break;
45 case 'timezone':
46 $tmp = timezone::_get_tz_zones();
47 foreach($tmp['TIMEZONES'] as $name => $offset){
48 if($offset >= 0){
49 $list[$name] = $name." ( + ".sprintf("%0.2f",$offset/(60*60))." "._("hours").")";
50 }else{
51 $offset = $offset * -1;
52 $list[$name] = $name." ( - ".sprintf("%0.2f",($offset/(60*60)))." "._("hours").")";
53 }
54 }
55 break;
56 case 'mailAttribute':
57 $list = array('mail' => 'mail','uid' => 'uid');
58 break;
59 case 'mailMethod':
60 $list = mailMethod::get_methods();
61 $list[''] = _("None");
62 break;
63 case 'language':
64 $tmp = get_languages(TRUE);
65 $list[""] = _("Automatic");
66 foreach($tmp as $key => $desc){
67 $list[$key] = $desc;
68 }
69 break;
70 case 'modificationDetectionAttribute':
71 $list = array('entryCSN' => 'entryCSN (OpenLdap)','textCSN'=>'textCSN (Sun DS)');
72 break;
73 default: echo $name." ";$list = array();
74 }
76 if(!isset($list[$value])){
77 $list[$value] = $value." ("._("User value").")";
78 }
80 return($list);
81 }
83 static function plInfo()
84 {
85 return (array(
86 "plShortName" => _("Core"),
87 "plDescription" => _("GOsa core plugin"),
88 "plSelfModify" => FALSE,
89 "plDepends" => array(),
90 "plPriority" => 0,
91 "plSection" => array("administration"),
92 "plCategory" => array("all"),
93 "plProperties" => array(
95 array(
96 "name" => "htaccessAuthentication",
97 "type" => "bool",
98 "default" => "false",
99 "description" => _("The 'htaccessAuthentication' variable tells GOsa to use either htaccess authentication or LDAP authentication. This can be used if you want to use i.e. kerberos to authenticate the users."),
100 "check" => "gosaProperty::isBool",
101 "migrate" => "",
102 "group" => "authentification",
103 "mandatory" => TRUE),
105 array(
106 "name" => "logging",
107 "type" => "bool",
108 "default" => "true",
109 "description" => _("The 'logging' statement enables event logging on GOsa side. Setting it to 'true' GOsa will log every action a user performs via syslog. If you use rsyslog and configure it to mysql logging, you can browse all events within GOsa. GOsa will not log anything, if the logging value is empty or set to 'false'."),
111 "check" => "gosaProperty::isBool",
112 "migrate" => "",
113 "group" => "core",
114 "mandatory" => TRUE),
116 array(
117 "name" => "listSummary",
118 "type" => "bool",
119 "default" => "true",
120 "description" => _("The 'listSummary' statement determines whether a status bar will be shown on the bottom of GOsa generated lists, displaying a short summary of type and number of elements in the list."),
121 "check" => "gosaProperty::isBool",
122 "migrate" => "",
123 "group" => "visual",
124 "mandatory" => FALSE),
126 array(
127 "name" => "passwordMinLength",
128 "type" => "integer",
129 "default" => "",
130 "description" => _("The 'passwordMinLength' statement determines whether a newly entered password has to be of a minimum length."),
131 "check" => "gosaProperty::isInteger",
132 "migrate" => "",
133 "group" => "password",
134 "mandatory" => FALSE),
136 array(
137 "name" => "passwordMinDiffer",
138 "type" => "integer",
139 "default" => "",
140 "description" => _("The 'passwordMinDiffer' statement determines whether a newly entered password has to be checked to have at least n different characters."),
141 "check" => "gosaProperty::isInteger",
142 "migrate" => "",
143 "group" => "password",
144 "mandatory" => FALSE),
146 array(
147 "name" => "passwordHook",
148 "type" => "command",
149 "default" => "",
150 "description" =>
151 _("The 'passwordHook' can specify an external script to handle password settings at some other location besides the LDAP.")." ".sprintf(_("It will be called this way: %s"),"/path/to/your/script \"username\" \"oldpassword\" \"newpassword\""),
152 "check" => "gosaProperty::isCommand",
153 "migrate" => "",
154 "group" => "password",
155 "mandatory" => FALSE),
157 array(
158 "name" => "displayErrors",
159 "type" => "bool",
160 "default" => "false",
161 "description" => "The 'displayErrors' statement tells GOsa to show PHP errors in the upper part of the screen. This should be disabled in productive deployments, because there might be some important passwords arround.",
162 "check" => "gosaProperty::isBool",
163 "migrate" => "",
164 "group" => "debug",
165 "mandatory" => TRUE),
167 array(
168 "name" => "schemaCheck",
169 "type" => "bool",
170 "default" => "true",
171 "description" => "The 'schemaCheck' statement enables or disables schema checking during login. It is recommended to switch this on in order to let GOsa handle object creation more efficient.",
172 "check" => "gosaProperty::isBool",
173 "migrate" => "",
174 "group" => "debug",
175 "mandatory" => TRUE),
177 array(
178 "name" => "copyPaste",
179 "type" => "bool",
180 "default" => "false",
181 "description" => "The 'copyPaste' statement enables copy and paste for LDAP entries managed with GOsa.",
182 "check" => "gosaProperty::isBool",
183 "migrate" => "",
184 "group" => "copyPaste",
185 "mandatory" => TRUE),
187 array(
188 "name" => "forceGlobals",
189 "type" => "bool",
190 "default" => "false",
191 "description" => "The 'forceGlobals' statement enables PHP security checks to force register_global settings to be switched off.",
192 "check" => "gosaProperty::isBool",
193 "migrate" => "",
194 "group" => "security",
195 "mandatory" => TRUE),
197 array(
198 "name" => "forceSSL",
199 "type" => "bool",
200 "default" => "false",
201 "description" => "The 'forceSSL' statement enables PHP security checks to force encrypted access to the web interface. GOsa will try to redirect to the same URL - just with https://",
202 "check" => "gosaProperty::isBool",
203 "migrate" => "",
204 "group" => "security",
205 "mandatory" => TRUE),
207 array(
208 "name" => "ldapStats",
209 "type" => "bool",
210 "default" => "false",
211 "description" => _("Logs information about triggered ldap operations, duration, filter, aso. into syslog."),
212 "check" => "gosaProperty::isBool",
213 "migrate" => "",
214 "group" => "debug",
215 "mandatory" => FALSE),
217 array(
218 "name" => "ldapFollowReferrals",
219 "type" => "bool",
220 "default" => "false",
221 "description" => _("The 'ldapFollowReferrals' statement tells GOsa to follow LDAP referrals."),
222 "check" => "gosaProperty::isBool",
223 "migrate" => "",
224 "group" => "ldap",
225 "mandatory" => TRUE),
227 array(
228 "name" => "ldapSizelimit",
229 "type" => "integer",
230 "default" => 200,
231 "description" => _("The ldapSizelimit statement tells GOsa to retrieve the specified maximum number of results. The user will get a warning, that not all entries were shown."),
232 "check" => "gosaProperty::isInteger",
233 "migrate" => "",
234 "group" => "core",
235 "mandatory" => TRUE),
237 array(
238 "name" => "ldapSizeIgnore",
239 "type" => "bool",
240 "default" => "false",
241 "description" => _("Disables sizelimit checks, only the configured amount of results will be shown!"),
242 "check" => "gosaProperty::isBool",
243 "migrate" => "",
244 "group" => "core",
245 "mandatory" => FALSE),
247 array(
248 "name" => "warnSSL",
249 "type" => "bool",
250 "default" => "true",
251 "description" => "The 'warnSSL' statement enables PHP security checks to detect non encrypted access to the web interface. GOsa will display a warning in this case.",
252 "check" => "gosaProperty::isBool",
253 "migrate" => "",
254 "group" => "security",
255 "mandatory" => TRUE),
257 array(
258 "name" => "ppdGzip",
259 "type" => "bool",
260 "default" => "true",
261 "description" => "The 'ppdGzip' variable enables PPD file compression.",
262 "check" => "gosaProperty::isBool",
263 "migrate" => "",
264 "group" => "ppd",
265 "mandatory" => FALSE),
268 array(
269 "name" => "ignoreAcl",
270 "type" => "dn",
271 "default" => "",
272 "description" => "The 'ignoreAcl' value tells GOsa to ignore complete ACL sets for the given DN. Add your DN here and you'll be able to restore accidently dropped ACLs.",
273 "check" => "gosaProperty::isDN",
274 "migrate" => "",
275 "group" => "debug",
276 "mandatory" => FALSE),
279 array(
280 "name" => "ppdPath",
281 "type" => "path",
282 "default" => "/var/spool/ppd",
283 "description" => "The 'ppdPath' variable defines where to store PPD files for the GOto environment plugins.",
284 "check" => "gosaProperty::isPath",
285 "migrate" => "",
286 "group" => "ppd",
287 "mandatory" => FALSE),
289 array(
290 "name" => "ldapMaxQueryTime",
291 "type" => "integer",
292 "default" => "",
293 "description" => "The 'ldapMaxQueryTime' statement tells GOsa to stop LDAP actions if there is no answer within the specified number of seconds.",
294 "check" => "gosaProperty::isInteger",
295 "migrate" => "",
296 "group" => "debug",
297 "mandatory" => FALSE),
299 array(
300 "name" => "storeFilterSettings",
301 "type" => "bool",
302 "default" => "true",
303 "description" => "The 'storeFilterSettings' statement determines whether GOsa should store filter and plugin settings inside of a cookie.",
304 "check" => "gosaProperty::isBool",
305 "migrate" => "",
306 "group" => "core",
307 "mandatory" => FALSE),
309 array(
310 "name" => "sendCompressedOutput",
311 "type" => "bool",
312 "default" => "true",
313 "description" => "The 'sendCompressedOutput' statement determines whether PHP should send compressed HTML pages to browsers or not. This may increase or decrease the performance, depending on your network.",
314 "check" => "gosaProperty::isBool",
315 "migrate" => "",
316 "group" => "core",
317 "mandatory" => FALSE),
319 array(
320 "name" => "modificationDetectionAttribute",
321 "type" => "switch",
322 "default" => "entryCSN",
323 "defaults" => "core::getPropertyValues",
324 "description" => "The 'modificationDetectionAttribute' statement enables GOsa to check if a entry currently being edited has been modified from someone else outside GOsa in the meantime. It will display an informative dialog then. It can be set to 'entryCSN' for OpenLDAP based systems or 'contextCSN' for Sun DS based systems.",
325 "check" => "",
326 "migrate" => "",
327 "group" => "core",
328 "mandatory" => TRUE),
330 array(
331 "name" => "language",
332 "type" => "switch",
333 "default" => "",
334 "defaults" => "core::getPropertyValues",
335 "description" => "The 'language' statement defines the default language used by GOsa. Normally GOsa autodetects the language from the browser settings. If this is not working or you want to force the language, just add the language code (i.e. de for german) here.",
336 "check" => "",
337 "migrate" => "",
338 "group" => "core",
339 "mandatory" => FALSE),
341 array(
342 "name" => "theme",
343 "type" => "string",
344 "default" => "default",
345 "defaults" => "core::getPropertyValues",
346 "description" => "The 'theme' statement defines what theme is used to display GOsa pages. You can install some corporate identity like theme and/or modify certain templates to fit your needs within themes. Take a look at the GOsa FAQ for more information.",
347 "check" => "",
348 "migrate" => "",
349 "group" => "visual",
350 "mandatory" => FALSE),
352 array(
353 "name" => "sessionLifetime",
354 "type" => "integer",
355 "default" => 7200,
356 "description" => "The 'sessionLifetime' value defines when a session will expire in seconds. For Debian systems, this will not work because the sessions will be removed by a cron job instead. Please modify the value inside of your php.ini instead.",
357 "check" => "gosaProperty::isInteger",
358 "migrate" => "",
359 "group" => "security",
360 "mandatory" => FALSE),
362 array(
363 "name" => "templateCompileDirectory",
364 "type" => "path",
365 "default" => "/var/spool/gosa",
366 "description" => "The 'templateCompileDirectory' statements defines the path, where the PHP templating engins 'smarty' should store its compiled GOsa templates for improved speed. This path needs to be writeable by the user your webserver is running with.",
367 "check" => "gosaProperty::isWriteablePath",
368 "migrate" => "",
369 "group" => "core",
370 "mandatory" => TRUE),
372 array(
373 "name" => "debugLevel",
374 "type" => "integer",
375 "default" => 0,
376 "description" => sprintf(_("The 'debugLevel' value tells GOsa to display certain information on each page load. Value is an AND combination of the following byte values: %s"),
377 "
378 DEBUG_TRACE = 1
379 DEBUG_LDAP = 2
380 DEBUG_MYSQL = 4
381 DEBUG_SHELL = 8
382 DEBUG_POST = 16
383 DEBUG_SESSION = 32
384 DEBUG_CONFIG = 64
385 DEBUG_ACL = 128
386 DEBUG_SI = 256"),
387 "check" => "gosaProperty::isInteger",
388 "migrate" => "",
389 "group" => "debug",
390 "mandatory" => FALSE),
392 array(
393 "name" => "sambaHashHook",
394 "type" => "command",
395 "default" => "perl -MCrypt::SmbHash -e \"print join(q[:], ntlmgen \\\$ARGV[0]), $/;\"",
396 "description" => sprintf(_("The 'sambaHashHook' statement contains an executable to generate samba hash values. This is required for password synchronization, but not required if you apply gosa-si services. If you don't have mkntpasswd from the samba distribution installed, you can use perl to generate the hash: %s"),"perl -MCrypt::SmbHash -e \"print join(q[:], ntlmgen \\\$ARGV[0]), $/;\""),
397 "check" => "gosaProperty::isCommand",
398 "migrate" => "",
399 "group" => "samba",
400 "mandatory" => FALSE),
402 array(
403 "name" => "passwordDefaultHash",
404 "type" => "switch",
405 "default" => "crypt/md5",
406 "defaults" => "core::getPropertyValues",
407 "description" => "The 'passwordDefaultHash' statement defines the default password hash to choose for new accounts.",
408 "check" => "",
409 "migrate" => "",
410 "group" => "password",
411 "mandatory" => FALSE),
412 array(
413 "name" => "strictPasswordRules",
414 "type" => "bool",
415 "default" => "true",
416 "description" => _("The 'strictPasswordRules' tells GOsa to check for UTF-8 characters in the supplied password. These Characters can lead to non working authentications if UTF-8 and none UTF-8 systems locales get mixed. The default is 'true'."),
417 "check" => "gosaProperty::isBool",
418 "migrate" => "",
419 "group" => "password",
420 "mandatory" => FALSE),
422 array(
423 "name" => "accountPrimaryAttribute",
424 "type" => "switch",
425 "default" => "cn",
426 "defaults" => "core::getPropertyValues",
427 "description" => "The 'accountPrimaryAttribute' option tells GOsa how to create new accounts. Possible values are 'uid' and 'cn'. In the first case GOsa creates uid style DN entries: 'uid=superuser,ou=staff,dc=example,dc=net'. In the second case, GOsa creates cn style DN entries: 'cn=Foo Bar,ou=staff,dc=example,dc=net'. If you choose \"cn\" to be your 'accountPrimaryAttribute' you can decide whether to include the personal title in your dn by selecting 'personalTitleInDN'.",
428 "check" => "",
429 "migrate" => "",
430 "group" => "security",
431 "mandatory" => TRUE),
433 array(
434 "name" => "userRDN",
435 "type" => "rdn",
436 "default" => "ou=people",
437 "description" => "The 'userRDN' statement defines the location where new accounts will be created inside of defined departments. The default is 'ou=people'.",
438 "check" => "gosaProperty::isRdn",
439 "migrate" => "",
440 "group" => "user",
441 "mandatory" => FALSE),
443 array(
444 "name" => "groupRDN",
445 "type" => "rdn",
446 "default" => "ou=groups",
447 "description" => "The 'groupsRDN' statement defines the location where new groups will be created inside of defined departments. The default is 'ou=groups'.",
448 "check" => "gosaProperty::isRdn",
449 "migrate" => "",
450 "group" => "group",
451 "mandatory" => FALSE),
453 array(
454 "name" => "gidNumberBase",
455 "type" => "integer",
456 "default" => "1000",
457 "description" => "The 'gidNumberBase' statement defines where to start looking for a new free group id. This should be synced with your 'adduser.conf' to avoid overlapping gidNumber values between local and LDAP based lookups. The gidNumberBase can even be dynamic. Take a look at the 'nextIdHook' definition.",
458 "check" => "gosaProperty::isInteger",
459 "migrate" => "",
460 "group" => "id",
461 "mandatory" => TRUE),
463 array(
464 "name" => "baseIdHook",
465 "type" => "cmd",
466 "default" => "",
467 "description" => _("The 'baseIdHook' statement allows to hook into the id generation method (traditional mode), to define the starting range for new generated ids"),
468 "check" => "gosaProperty::isCommand",
469 "migrate" => "",
470 "group" => "id",
471 "mandatory" => TRUE),
473 array(
474 "name" => "gidNumberPoolMin",
475 "type" => "integer",
476 "default" => 10000,
477 "description" => "The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'.",
478 "check" => "gosaProperty::isInteger",
479 "migrate" => "",
480 "group" => "id",
481 "mandatory" => TRUE),
483 array(
484 "name" => "gidNumberPoolMax",
485 "type" => "integer",
486 "default" => 40000,
487 "description" => "The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'.",
488 "check" => "gosaProperty::isInteger",
489 "migrate" => "",
490 "group" => "id",
491 "mandatory" => TRUE),
493 array(
494 "name" => "uidNumberPoolMin",
495 "type" => "integer",
496 "default" => 10000,
497 "description" => "The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'.",
498 "check" => "gosaProperty::isInteger",
499 "migrate" => "",
500 "group" => "id",
501 "mandatory" => TRUE),
503 array(
504 "name" => "uidNumberPoolMax",
505 "type" => "integer",
506 "default" => 40000,
507 "description" => "The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'.",
508 "check" => "gosaProperty::isInteger",
509 "migrate" => "",
510 "group" => "id",
511 "mandatory" => TRUE),
513 array(
514 "name" => "uidNumberBase",
515 "type" => "integer",
516 "default" => "1000",
517 "description" => "The 'uidNumberBase' statement defines where to start looking for a new free user id. This should be synced with your 'adduser.conf' to avoid overlapping uidNumber values between local and LDAP based lookups. The uidNumberBase can even be dynamic. Take a look at the 'baseIdHook' definition.",
518 "check" => "gosaProperty::isInteger",
519 "migrate" => "",
520 "group" => "id",
521 "mandatory" => TRUE),
523 array(
524 "name" => "gosaSupportURI",
525 "type" => "string",
526 "default" => "",
527 "description" => "The 'gosaSupportURI' defines the major gosa-si server host and the password for GOsa to connect to it. It can be used if you want to use i.e. kerberos to authenticate the users. The format is: credentials@host:port",
528 "check" => "",
529 "migrate" => "",
530 "group" => "gosa-si",
531 "mandatory" => FALSE),
533 array(
534 "name" => "gosaSupportTimeout",
535 "type" => "integer",
536 "default" => 15,
537 "description" => "The 'gosaSupportTimeout' sets a connection timeout for all gosa-si actions. See 'gosaSupportURI' for details.",
538 "check" => "gosaProperty::isInteger",
539 "migrate" => "",
540 "group" => "gosa-si",
541 "mandatory" => FALSE),
543 array(
544 "name" => "loginAttribute",
545 "type" => "switch",
546 "default" => "uid",
547 "defaults" => "core::getPropertyValues",
548 "description" => "The 'loginAttribute' statement tells GOsa which LDAP attribute is used as the login name during login. It can be set to 'uid', 'mail' or 'both'",
549 "check" => "",
550 "migrate" => "",
551 "group" => "security",
552 "mandatory" => TRUE),
554 array(
555 "name" => "timezone",
556 "type" => "switch",
557 "default" => "",
558 "defaults" => "core::getPropertyValues",
559 "description" => "The 'timezone' statements defines the timezone used inside of GOsa to handle date related tasks, such as password expiery, vacation messages, etc. The 'timezone' value should be a unix conform timezone value like in /etc/timezone.",
560 "check" => "",
561 "migrate" => "",
562 "group" => "core",
563 "mandatory" => TRUE),
565 array(
566 "name" => "honourUnitTags",
567 "type" => "bool",
568 "default" => "false",
569 "description" => "The 'honourUnitTags' statement enables checking of 'unitTag' attributes when using administrative units. If this is set to 'true' GOsa can only see objects inside the administrative unit a user is logged into.",
570 "check" => "",
571 "migrate" => "gosaProperty::isBool",
572 "group" => "core",
573 "mandatory" => FALSE),
575 array(
576 "name" => "useSaslForKerberos",
577 "type" => "bool",
578 "default" => "false",
579 "description" => "The 'useSaslForKerberos' statement defines the way the kerberos realm is stored in the #userPassword' attribute. Set it to 'true' in order to get {sasl}user@REALM.NET, or to 'false' to get {kerberos}user@REALM.NET. The latter is outdated, but may be needed from time to time.",
580 "check" => "gosaProperty::isBool",
581 "migrate" => "",
582 "group" => "password",
583 "mandatory" => FALSE),
585 array(
586 "name" => "rfc2307bis",
587 "type" => "bool",
588 "default" => "false",
589 "description" => "The 'rfc2307bis' statement enables rfc2307bis style groups in GOsa. You can use 'member' attributes instead of memberUid in this case. To make it work on unix systems, you've to adjust your NSS configuration to use rfc2307bis style groups, too",
590 "check" => "gosaProperty::isBool",
591 "migrate" => "",
592 "group" => "core",
593 "mandatory" => FALSE),
595 array(
596 "name" => "personalTitleInDN",
597 "type" => "bool",
598 "default" => "false",
599 "description" => "The 'personalTitleInDN' option tells GOsa to include the personal title in user DNs when #accountPrimaryAttribute' is set to \"cn\".",
600 "check" => "gosaProperty::isBool",
601 "migrate" => "",
602 "group" => "storage location",
603 "mandatory" => FALSE),
605 array(
606 "name" => "nextIdHook",
607 "type" => "command",
608 "default" => "",
609 "description" => "The 'nextIdHook' statement defines a script to be called for finding the next free id for users or groups externaly. It gets called with the current entry \"dn\" and the attribute to be ID'd. It should return an integer value.",
610 "check" => "gosaProperty::isCommand",
611 "migrate" => "",
612 "group" => "id",
613 "mandatory" => FALSE),
615 array(
616 "name" => "sambaMachineAccountRDN",
617 "type" => "rdn",
618 "default" => "ou=winstations",
619 "description" => "This statement defines the location where GOsa looks for new samba workstations.",
620 "check" => "gosaProperty::isRdn",
621 "migrate" => "",
622 "group" => "samba",
623 "mandatory" => FALSE),
625 array(
626 "name" => "idGenerator",
627 "type" => "string",
628 "default" => "{%sn}-{%givenName[2-4]}",
629 "description" => "The 'idGenerator' statement describes an automatic way to generate new user ids. There are two basic functions supported - which can be combined:
631 a) using attributes
633 You can specify LDAP attributes (currently only sn and givenName) in
634 braces {} and add a percent sign befor it. Optionally you can strip it
635 down to a number of characters, specified in []. I.e.
637 idGenerator=\"{%sn}-{%givenName[2-4]}\"
639 will generate an ID using the full surename, adding a dash, and adding at
640 least the first two characters of givenName. If this ID is used, it'll
641 use up to four characters. If no automatic generation is possible, a
642 input box is shown.
644 b) using automatic id's
646 I.e. specifying
648 idGenerator=\"acct{id:3}\"
650 will generate a three digits id with the next free entry appended to \"acct\".
652 idGenerator=\"acct{id!1}\"
654 will generate a one digit id with the next free entry appended to \"acct\" - if needed.
656 idGenerator=\"ext{id#3}\"
658 will generate a three digits random number appended to \"ext\".
659 ",
660 "check" => "",
661 "migrate" => "",
662 "group" => "core",
663 "mandatory" => FALSE),
665 array(
666 "name" => "strictNamingRules",
667 "type" => "bool",
668 "default" => "true",
669 "description" => "",
670 "check" => "gosaProperty::isBool",
671 "migrate" => "The 'strictNamingRules' statement enables strict checking of uids and group names. If you need characters like . or - inside of your accounts, set this to 'false'",
672 "group" => "core",
673 "mandatory" => FALSE),
675 array(
676 "name" => "minId",
677 "type" => "integer",
678 "default" => 40,
679 "description" => "The 'minId' statement defines the minimum assignable user or group id to avoid security leaks with uid 0 accounts. This is used for the 'traditional' method.",
680 "check" => "gosaProperty::isInteger",
681 "migrate" => "",
682 "group" => "id",
683 "mandatory" => FALSE),
685 array(
686 "name" => "mailAttribute",
687 "type" => "switch",
688 "default" => "mail",
689 "defaults" => "core::getPropertyValues",
690 "description" => "The 'mailAttribute' statement determines which attribute GOsa will use to create accounts. Valid values are 'mail' and 'uid'.",
691 "check" => "",
692 "migrate" => "",
693 "group" => "mail",
694 "mandatory" => FALSE),
696 array(
697 "name" => "gosaSharedPrefix",
698 "type" => "string",
699 "default" => "",
700 "description" => "This attribute allows to override the prefix used to create shared folders.",
701 "check" => "",
702 "migrate" => "",
703 "group" => "mail",
704 "mandatory" => FALSE),
706 array(
707 "name" => "mailUserCreation",
708 "type" => "string",
709 "default" => "",
710 "description" => "This attribute allows to override the user account creation syntax, see the 'mailFolderCreation' description for more details.
712 Examples
713 mailUserCreation=\"%prefix%%uid%\" => \"user.foobar\"
714 mailUserCreation=\"my-prefix.%uid%%domain%\" => \"my-prefix.foobar@example.com\"
715 ",
716 "check" => "",
717 "migrate" => "",
718 "group" => "mail",
719 "mandatory" => FALSE),
721 array(
722 "name" => "mailFolderCreation",
723 "type" => "string",
724 "default" => "",
725 "description" => "Every mail method has its own way to create mail accounts like 'share/development' or 'shared.development@example.com' which is used to identify the accounts, set quotas or add acls.
727 To override the methods default account creation syntax, you can set the 'mailFolderCreation' option.
729 Examples
731 mailFolderCreation=\"%prefix%%cn%\" => \"shared.development\"
732 mailFolderCreation=\"my-prefix.%cn%%domain%\" => \"my-prefix.development@example.com\"
734 %prefix% The methods default prefix. (Depends on cyrusUseSlashes=FALSE/TRUE)
735 %cn% The groups/users cn.
736 %uid% The users uid.
737 %mail% The objects mail attribute.
738 %domain% The domain part of the objects mail attribute.
739 %mailpart% The user address part of the mail address.
740 %uattrib% Depends on mailAttribute=\"uid/mail\".
741 ",
742 "check" => "",
743 "migrate" => "",
744 "group" => "mail",
745 "mandatory" => FALSE),
747 array(
748 "name" => "imapTimeout",
749 "type" => "integer",
750 "default" => 10,
751 "description" => "The 'imapTimeout' statement sets the connection timeout for imap actions.",
752 "check" => "gosaProperty::isInteger",
753 "migrate" => "",
754 "group" => "mail",
755 "mandatory" => FALSE),
757 array(
758 "name" => "mailMethod",
759 "type" => "switch",
760 "default" => "",
761 "defaults" => "core::getPropertyValues",
762 "description" => "The 'mailMethod' statement tells GOsa which mail method the setup should use to communicate with a possible mail server. Leave this undefined if your mail method does not match the predefined ones.",
763 "check" => "",
764 "migrate" => "",
765 "group" => "mail",
766 "mandatory" => FALSE),
768 array(
769 "name" => "cyrusUseSlashes",
770 "type" => "bool",
771 "default" => "true",
772 "description" => "The 'cyrusUseSlashes' statement determines if GOsa should use \"foo/bar\" or \"foo.bar\" namespaces in IMAP. Unix style is with slashes.",
773 "check" => "gosaProperty::isBool",
774 "migrate" => "",
775 "group" => "mail",
776 "mandatory" => FALSE),
778 array(
779 "name" => "vacationTemplateDirectory",
780 "type" => "path",
781 "default" => "/etc/gosa/vacation",
782 "description" => "The 'vacationTemplateDirectory' statement sets the path where GOsa will look for vacation message templates. Default is /etc/gosa/vacation.
784 Example template /etc/gosa/vacation/business.txt:
786 DESC:Away from desk
787 Hi, I'm currently away from my desk. You can contact me on
788 my cell phone via %mobile.
790 Greetings,
791 %givenName %sn
793 ",
794 "check" => "gosaProperty::isWriteablePath",
795 "migrate" => "",
796 "group" => "mail",
797 "mandatory" => FALSE),
799 array(
800 "name" => "ldapTLS",
801 "type" => "bool",
802 "default" => "false",
803 "description" => "The 'ldapTLS' statement enables or disables TLS operating on LDAP connections.",
804 "check" => "gosaProperty::isBool",
805 "migrate" => "",
806 "group" => "security",
807 "mandatory" => TRUE),
809 array(
810 "name" => "honourIvbbAttributes",
811 "type" => "bool",
812 "default" => "false",
813 "description" => "The 'honourIvbbAttributes' statement enables the IVBB mode inside of GOsa. You need the ivbb.schema file from used by german authorities.",
814 "check" => "gosaProperty::isBool",
815 "migrate" => "",
816 "group" => "core",
817 "mandatory" => FALSE),
819 array(
820 "name" => "sambaIdMapping",
821 "type" => "bool",
822 "default" => "false",
823 "description" => "The 'sambaIdMapping' statement tells GOsa to maintain sambaIdmapEntry objects. Depending on your setup this can drastically improve the windows login performance.",
824 "check" => "gosaProperty::isBool",
825 "migrate" => "",
826 "group" => "samba",
827 "mandatory" => FALSE),
829 array(
830 "name" => "handleExpiredAccounts",
831 "type" => "bool",
832 "default" => "true",
833 "description" => "The 'handleExpiredAccounts' statement enables shadow attribute tests during the login to the GOsa web interface and forces password renewal or account lockout.",
834 "check" => "gosaProperty::isBool",
835 "migrate" => "",
836 "group" => "core",
837 "mandatory" => FALSE),
839 array(
840 "name" => "sambaSID",
841 "type" => "string",
842 "default" => "",
843 "description" => "The 'sambaSID' statement defines a samba SID if not available inside of the LDAP. You can retrieve the current sid by net getlocalsid.",
844 "check" => "",
845 "migrate" => "",
846 "group" => "samba",
847 "mandatory" => FALSE),
849 array(
850 "name" => "sambaRidBase",
851 "type" => "integer",
852 "default" => "",
853 "description" => "The 'sambaRidBase' statement defines the base id to add to ordinary sid calculations - if not available inside of the LDAP.",
854 "check" => "gosaProperty::isInteger",
855 "migrate" => "",
856 "group" => "samba",
857 "mandatory" => FALSE),
859 array(
860 "name" => "enableSnapshots",
861 "type" => "bool",
862 "default" => "false",
863 "description" => "The 'enableSnapshots' statement enables a snapshot mechaism in GOsa. This enables you to save certain states of entries and restore them later on.",
864 "check" => "gosaProperty::isBool",
865 "migrate" => "",
866 "group" => "snapshot",
867 "mandatory" => TRUE),
869 array(
870 "name" => "snapshotBase",
871 "type" => "dn",
872 "default" => "ou=snapshots,dc=localhost,dc=de",
873 "description" => "The 'snapshotBase' statement defines the base where snapshots should be stored inside of the LDAP.",
874 "check" => "gosaProperty::isDn",
875 "migrate" => "",
876 "group" => "snapshot",
877 "mandatory" => FALSE),
879 array(
880 "name" => "snapshotAdminDn",
881 "type" => "dn",
882 "default" => "cn=admin,dc=localhost,dc=de",
883 "description" => "The 'snapshotAdminDn' variable defines the user which is used to authenticate when connecting to 'snapshotURI'.",
884 "check" => "gosaProperty::isDn",
885 "migrate" => "",
886 "group" => "snapshot",
887 "mandatory" => FALSE),
889 array(
890 "name" => "snapshotAdminPassword",
891 "type" => "string",
892 "default" => "secret",
893 "description" => "The 'snapshotAdminPassword' variable defines the credentials which are used in combination with 'snapshotAdminDn' and 'snapshotURI' in order to authenticate.",
894 "check" => "",
895 "migrate" => "",
896 "group" => "snapshot",
897 "mandatory" => FALSE),
899 array(
900 "name" => "idAllocationMethod",
901 "type" => "switch",
902 "default" => "traditional",
903 "defaults" => "core::getPropertyValues",
904 "description" => "The 'idAllocationMethod' statement defines how GOsa generates numeric user and group id values. If it is set to 'traditional' GOsa will do create a lock and perform a search for the next free ID. The lock will be removed after the procedure completes. 'pool' will use the sambaUnixIdPool objectclass settings inside your LDAP. This one is unsafe, because it does not check for concurrent LDAP access and already used IDs in this range. On the other hand it is much faster.",
905 "check" => "",
906 "migrate" => "",
907 "group" => "id",
908 "mandatory" => TRUE),
909 array(
910 "name" => "snapshotURI",
911 "type" => "uri",
912 "default" => "ldap://localhost:389",
913 "description" => "The 'snapshotURI' variable defines the LDAP URI for the server which is used to do object snapshots.",
914 "check" => "",
915 "migrate" => "",
916 "group" => "snapshot",
917 "mandatory" => FALSE)
918 ),
920 "plProvidedAcls" => array(
921 "accessTo" => _("System trust"),
922 "cn" => _("Name"),
923 "description" => _("Description"),
924 "sudoUser" => _("Users"),
925 "sudoHost" => _("Host"),
926 "sudoCommand" => _("Command"),
927 "sudoRunAs" => _("Run as user"),
928 "trustModel" => _("Access control list"))
929 )
930 );
931 }
932 }
933 ?>