3df7083c4a4a07d6789de1f9bd09d74af9b6c271
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" => "ldapFilterNestingLimit",
229 "type" => "integer",
230 "default" => 200,
231 "description" => _("The 'ldapFilterNestingLimit' statement can be used to speed up group handling for groups with several hundreds of members. The default behaviour is, that GOsa will resolv the memberUid values in a group to real names. To achieve this, it writes a single filter to minimize searches. Some LDAP servers (namely Sun DS) simply crash when the filter gets too big. You can set a member limit, where GOsa will stop to do these lookups."),
232 "check" => "gosaProperty::isInteger",
233 "migrate" => "",
234 "group" => "ldap",
235 "mandatory" => TRUE),
237 array(
238 "name" => "ldapSizelimit",
239 "type" => "integer",
240 "default" => 200,
241 "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."),
242 "check" => "gosaProperty::isInteger",
243 "migrate" => "",
244 "group" => "core",
245 "mandatory" => TRUE),
247 array(
248 "name" => "ldapSizeIgnore",
249 "type" => "bool",
250 "default" => "false",
251 "description" => _("Disables sizelimit checks, only the configured amount of results will be shown!"),
252 "check" => "gosaProperty::isBool",
253 "migrate" => "",
254 "group" => "core",
255 "mandatory" => FALSE),
257 array(
258 "name" => "warnSSL",
259 "type" => "bool",
260 "default" => "true",
261 "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.",
262 "check" => "gosaProperty::isBool",
263 "migrate" => "",
264 "group" => "security",
265 "mandatory" => TRUE),
267 array(
268 "name" => "ppdGzip",
269 "type" => "bool",
270 "default" => "true",
271 "description" => "The 'ppdGzip' variable enables PPD file compression.",
272 "check" => "gosaProperty::isBool",
273 "migrate" => "",
274 "group" => "ppd",
275 "mandatory" => FALSE),
278 array(
279 "name" => "ignoreAcl",
280 "type" => "dn",
281 "default" => "",
282 "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.",
283 "check" => "gosaProperty::isDN",
284 "migrate" => "",
285 "group" => "debug",
286 "mandatory" => FALSE),
289 array(
290 "name" => "ppdPath",
291 "type" => "path",
292 "default" => "/var/spool/ppd",
293 "description" => "The 'ppdPath' variable defines where to store PPD files for the GOto environment plugins.",
294 "check" => "gosaProperty::isPath",
295 "migrate" => "",
296 "group" => "ppd",
297 "mandatory" => FALSE),
299 array(
300 "name" => "ldapMaxQueryTime",
301 "type" => "integer",
302 "default" => "",
303 "description" => "The 'ldapMaxQueryTime' statement tells GOsa to stop LDAP actions if there is no answer within the specified number of seconds.",
304 "check" => "gosaProperty::isInteger",
305 "migrate" => "",
306 "group" => "debug",
307 "mandatory" => FALSE),
309 array(
310 "name" => "storeFilterSettings",
311 "type" => "bool",
312 "default" => "true",
313 "description" => "The 'storeFilterSettings' statement determines whether GOsa should store filter and plugin settings inside of a cookie.",
314 "check" => "gosaProperty::isBool",
315 "migrate" => "",
316 "group" => "core",
317 "mandatory" => FALSE),
319 array(
320 "name" => "sendCompressedOutput",
321 "type" => "bool",
322 "default" => "true",
323 "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.",
324 "check" => "gosaProperty::isBool",
325 "migrate" => "",
326 "group" => "core",
327 "mandatory" => FALSE),
329 array(
330 "name" => "modificationDetectionAttribute",
331 "type" => "switch",
332 "default" => "entryCSN",
333 "defaults" => "core::getPropertyValues",
334 "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.",
335 "check" => "",
336 "migrate" => "",
337 "group" => "core",
338 "mandatory" => TRUE),
340 array(
341 "name" => "language",
342 "type" => "switch",
343 "default" => "",
344 "defaults" => "core::getPropertyValues",
345 "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.",
346 "check" => "",
347 "migrate" => "",
348 "group" => "core",
349 "mandatory" => FALSE),
351 array(
352 "name" => "theme",
353 "type" => "string",
354 "default" => "default",
355 "defaults" => "core::getPropertyValues",
356 "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.",
357 "check" => "",
358 "migrate" => "",
359 "group" => "visual",
360 "mandatory" => FALSE),
362 array(
363 "name" => "sessionLifetime",
364 "type" => "integer",
365 "default" => 7200,
366 "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.",
367 "check" => "gosaProperty::isInteger",
368 "migrate" => "",
369 "group" => "security",
370 "mandatory" => FALSE),
372 array(
373 "name" => "templateCompileDirectory",
374 "type" => "path",
375 "default" => "/var/spool/gosa",
376 "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.",
377 "check" => "gosaProperty::isWriteablePath",
378 "migrate" => "",
379 "group" => "core",
380 "mandatory" => TRUE),
382 array(
383 "name" => "debugLevel",
384 "type" => "integer",
385 "default" => 0,
386 "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"),
387 "
388 DEBUG_TRACE = 1
389 DEBUG_LDAP = 2
390 DEBUG_MYSQL = 4
391 DEBUG_SHELL = 8
392 DEBUG_POST = 16
393 DEBUG_SESSION = 32
394 DEBUG_CONFIG = 64
395 DEBUG_ACL = 128
396 DEBUG_SI = 256"),
397 "check" => "gosaProperty::isInteger",
398 "migrate" => "",
399 "group" => "debug",
400 "mandatory" => FALSE),
402 array(
403 "name" => "sambaHashHook",
404 "type" => "command",
405 "default" => "perl -MCrypt::SmbHash -e \"print join(q[:], ntlmgen \\\$ARGV[0]), $/;\"",
406 "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]), $/;\""),
407 "check" => "gosaProperty::isCommand",
408 "migrate" => "",
409 "group" => "samba",
410 "mandatory" => FALSE),
412 array(
413 "name" => "passwordDefaultHash",
414 "type" => "switch",
415 "default" => "crypt/md5",
416 "defaults" => "core::getPropertyValues",
417 "description" => "The 'passwordDefaultHash' statement defines the default password hash to choose for new accounts.",
418 "check" => "",
419 "migrate" => "",
420 "group" => "password",
421 "mandatory" => FALSE),
422 array(
423 "name" => "strictPasswordRules",
424 "type" => "bool",
425 "default" => "true",
426 "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'."),
427 "check" => "gosaProperty::isBool",
428 "migrate" => "",
429 "group" => "password",
430 "mandatory" => FALSE),
432 array(
433 "name" => "accountPrimaryAttribute",
434 "type" => "switch",
435 "default" => "cn",
436 "defaults" => "core::getPropertyValues",
437 "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'.",
438 "check" => "",
439 "migrate" => "",
440 "group" => "security",
441 "mandatory" => TRUE),
443 array(
444 "name" => "userRDN",
445 "type" => "rdn",
446 "default" => "ou=people",
447 "description" => "The 'userRDN' statement defines the location where new accounts will be created inside of defined departments. The default is 'ou=people'.",
448 "check" => "gosaProperty::isRdn",
449 "migrate" => "",
450 "group" => "user",
451 "mandatory" => FALSE),
453 array(
454 "name" => "groupRDN",
455 "type" => "rdn",
456 "default" => "ou=groups",
457 "description" => "The 'groupsRDN' statement defines the location where new groups will be created inside of defined departments. The default is 'ou=groups'.",
458 "check" => "gosaProperty::isRdn",
459 "migrate" => "",
460 "group" => "group",
461 "mandatory" => FALSE),
463 array(
464 "name" => "gidNumberBase",
465 "type" => "integer",
466 "default" => "1000",
467 "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.",
468 "check" => "gosaProperty::isInteger",
469 "migrate" => "",
470 "group" => "id",
471 "mandatory" => TRUE),
473 array(
474 "name" => "baseIdHook",
475 "type" => "command",
476 "default" => "",
477 "description" => _("The 'baseIdHook' statement allows to hook into the id generation method (traditional mode), to define the starting range for new generated ids"),
478 "check" => "gosaProperty::isCommand",
479 "migrate" => "",
480 "group" => "id",
481 "mandatory" => FALSE),
483 array(
484 "name" => "gidNumberPoolMin",
485 "type" => "integer",
486 "default" => 10000,
487 "description" => "The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'.",
488 "check" => "gosaProperty::isInteger",
489 "migrate" => "",
490 "group" => "id",
491 "mandatory" => FALSE),
493 array(
494 "name" => "gidNumberPoolMax",
495 "type" => "integer",
496 "default" => 40000,
497 "description" => "The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'.",
498 "check" => "gosaProperty::isInteger",
499 "migrate" => "",
500 "group" => "id",
501 "mandatory" => FALSE),
503 array(
504 "name" => "uidNumberPoolMin",
505 "type" => "integer",
506 "default" => 10000,
507 "description" => "The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'.",
508 "check" => "gosaProperty::isInteger",
509 "migrate" => "",
510 "group" => "id",
511 "mandatory" => FALSE),
513 array(
514 "name" => "uidNumberPoolMax",
515 "type" => "integer",
516 "default" => 40000,
517 "description" => "The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'.",
518 "check" => "gosaProperty::isInteger",
519 "migrate" => "",
520 "group" => "id",
521 "mandatory" => FALSE),
523 array(
524 "name" => "uidNumberBase",
525 "type" => "integer",
526 "default" => "1000",
527 "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.",
528 "check" => "gosaProperty::isInteger",
529 "migrate" => "",
530 "group" => "id",
531 "mandatory" => FALSE),
533 array(
534 "name" => "gosaSupportURI",
535 "type" => "string",
536 "default" => "",
537 "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",
538 "check" => "",
539 "migrate" => "",
540 "group" => "gosa-si",
541 "mandatory" => FALSE),
543 array(
544 "name" => "gosaSupportTimeout",
545 "type" => "integer",
546 "default" => 15,
547 "description" => "The 'gosaSupportTimeout' sets a connection timeout for all gosa-si actions. See 'gosaSupportURI' for details.",
548 "check" => "gosaProperty::isInteger",
549 "migrate" => "",
550 "group" => "gosa-si",
551 "mandatory" => FALSE),
553 array(
554 "name" => "loginAttribute",
555 "type" => "switch",
556 "default" => "uid",
557 "defaults" => "core::getPropertyValues",
558 "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'",
559 "check" => "",
560 "migrate" => "",
561 "group" => "security",
562 "mandatory" => TRUE),
564 array(
565 "name" => "timezone",
566 "type" => "switch",
567 "default" => "",
568 "defaults" => "core::getPropertyValues",
569 "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.",
570 "check" => "",
571 "migrate" => "",
572 "group" => "core",
573 "mandatory" => TRUE),
575 array(
576 "name" => "honourUnitTags",
577 "type" => "bool",
578 "default" => "false",
579 "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.",
580 "check" => "",
581 "migrate" => "gosaProperty::isBool",
582 "group" => "core",
583 "mandatory" => FALSE),
585 array(
586 "name" => "useSaslForKerberos",
587 "type" => "bool",
588 "default" => "false",
589 "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.",
590 "check" => "gosaProperty::isBool",
591 "migrate" => "",
592 "group" => "password",
593 "mandatory" => FALSE),
595 array(
596 "name" => "rfc2307bis",
597 "type" => "bool",
598 "default" => "false",
599 "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",
600 "check" => "gosaProperty::isBool",
601 "migrate" => "",
602 "group" => "core",
603 "mandatory" => FALSE),
605 array(
606 "name" => "personalTitleInDN",
607 "type" => "bool",
608 "default" => "false",
609 "description" => "The 'personalTitleInDN' option tells GOsa to include the personal title in user DNs when #accountPrimaryAttribute' is set to \"cn\".",
610 "check" => "gosaProperty::isBool",
611 "migrate" => "",
612 "group" => "storage location",
613 "mandatory" => FALSE),
615 array(
616 "name" => "nextIdHook",
617 "type" => "command",
618 "default" => "",
619 "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.",
620 "check" => "gosaProperty::isCommand",
621 "migrate" => "",
622 "group" => "id",
623 "mandatory" => FALSE),
625 array(
626 "name" => "sambaMachineAccountRDN",
627 "type" => "rdn",
628 "default" => "ou=winstations",
629 "description" => "This statement defines the location where GOsa looks for new samba workstations.",
630 "check" => "gosaProperty::isRdn",
631 "migrate" => "",
632 "group" => "samba",
633 "mandatory" => FALSE),
635 array(
636 "name" => "idGenerator",
637 "type" => "string",
638 "default" => "{%sn}-{%givenName[2-4]}",
639 "description" => "The 'idGenerator' statement describes an automatic way to generate new user ids. There are two basic functions supported - which can be combined:
641 a) using attributes
643 You can specify LDAP attributes (currently only sn and givenName) in
644 braces {} and add a percent sign befor it. Optionally you can strip it
645 down to a number of characters, specified in []. I.e.
647 idGenerator=\"{%sn}-{%givenName[2-4]}\"
649 will generate an ID using the full surename, adding a dash, and adding at
650 least the first two characters of givenName. If this ID is used, it'll
651 use up to four characters. If no automatic generation is possible, a
652 input box is shown.
654 b) using automatic id's
656 I.e. specifying
658 idGenerator=\"acct{id:3}\"
660 will generate a three digits id with the next free entry appended to \"acct\".
662 idGenerator=\"acct{id!1}\"
664 will generate a one digit id with the next free entry appended to \"acct\" - if needed.
666 idGenerator=\"ext{id#3}\"
668 will generate a three digits random number appended to \"ext\".
669 ",
670 "check" => "",
671 "migrate" => "",
672 "group" => "core",
673 "mandatory" => FALSE),
675 array(
676 "name" => "strictNamingRules",
677 "type" => "bool",
678 "default" => "true",
679 "description" => "",
680 "check" => "gosaProperty::isBool",
681 "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'",
682 "group" => "core",
683 "mandatory" => FALSE),
685 array(
686 "name" => "minId",
687 "type" => "integer",
688 "default" => 40,
689 "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.",
690 "check" => "gosaProperty::isInteger",
691 "migrate" => "",
692 "group" => "id",
693 "mandatory" => FALSE),
695 array(
696 "name" => "mailAttribute",
697 "type" => "switch",
698 "default" => "mail",
699 "defaults" => "core::getPropertyValues",
700 "description" => "The 'mailAttribute' statement determines which attribute GOsa will use to create accounts. Valid values are 'mail' and 'uid'.",
701 "check" => "",
702 "migrate" => "",
703 "group" => "mail",
704 "mandatory" => FALSE),
706 array(
707 "name" => "gosaSharedPrefix",
708 "type" => "string",
709 "default" => "",
710 "description" => "This attribute allows to override the prefix used to create shared folders.",
711 "check" => "",
712 "migrate" => "",
713 "group" => "mail",
714 "mandatory" => FALSE),
716 array(
717 "name" => "mailUserCreation",
718 "type" => "string",
719 "default" => "",
720 "description" => "This attribute allows to override the user account creation syntax, see the 'mailFolderCreation' description for more details.
722 Examples
723 mailUserCreation=\"%prefix%%uid%\" => \"user.foobar\"
724 mailUserCreation=\"my-prefix.%uid%%domain%\" => \"my-prefix.foobar@example.com\"
725 ",
726 "check" => "",
727 "migrate" => "",
728 "group" => "mail",
729 "mandatory" => FALSE),
731 array(
732 "name" => "mailFolderCreation",
733 "type" => "string",
734 "default" => "",
735 "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.
737 To override the methods default account creation syntax, you can set the 'mailFolderCreation' option.
739 Examples
741 mailFolderCreation=\"%prefix%%cn%\" => \"shared.development\"
742 mailFolderCreation=\"my-prefix.%cn%%domain%\" => \"my-prefix.development@example.com\"
744 %prefix% The methods default prefix. (Depends on cyrusUseSlashes=FALSE/TRUE)
745 %cn% The groups/users cn.
746 %uid% The users uid.
747 %mail% The objects mail attribute.
748 %domain% The domain part of the objects mail attribute.
749 %mailpart% The user address part of the mail address.
750 %uattrib% Depends on mailAttribute=\"uid/mail\".
751 ",
752 "check" => "",
753 "migrate" => "",
754 "group" => "mail",
755 "mandatory" => FALSE),
757 array(
758 "name" => "imapTimeout",
759 "type" => "integer",
760 "default" => 10,
761 "description" => "The 'imapTimeout' statement sets the connection timeout for imap actions.",
762 "check" => "gosaProperty::isInteger",
763 "migrate" => "",
764 "group" => "mail",
765 "mandatory" => FALSE),
767 array(
768 "name" => "mailMethod",
769 "type" => "switch",
770 "default" => "",
771 "defaults" => "core::getPropertyValues",
772 "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.",
773 "check" => "",
774 "migrate" => "",
775 "group" => "mail",
776 "mandatory" => FALSE),
778 array(
779 "name" => "cyrusUseSlashes",
780 "type" => "bool",
781 "default" => "true",
782 "description" => "The 'cyrusUseSlashes' statement determines if GOsa should use \"foo/bar\" or \"foo.bar\" namespaces in IMAP. Unix style is with slashes.",
783 "check" => "gosaProperty::isBool",
784 "migrate" => "",
785 "group" => "mail",
786 "mandatory" => FALSE),
788 array(
789 "name" => "vacationTemplateDirectory",
790 "type" => "path",
791 "default" => "/etc/gosa/vacation",
792 "description" => "The 'vacationTemplateDirectory' statement sets the path where GOsa will look for vacation message templates. Default is /etc/gosa/vacation.
794 Example template /etc/gosa/vacation/business.txt:
796 DESC:Away from desk
797 Hi, I'm currently away from my desk. You can contact me on
798 my cell phone via %mobile.
800 Greetings,
801 %givenName %sn
803 ",
804 "check" => "gosaProperty::isWriteablePath",
805 "migrate" => "",
806 "group" => "mail",
807 "mandatory" => FALSE),
809 array(
810 "name" => "ldapTLS",
811 "type" => "bool",
812 "default" => "false",
813 "description" => "The 'ldapTLS' statement enables or disables TLS operating on LDAP connections.",
814 "check" => "gosaProperty::isBool",
815 "migrate" => "",
816 "group" => "security",
817 "mandatory" => TRUE),
819 array(
820 "name" => "honourIvbbAttributes",
821 "type" => "bool",
822 "default" => "false",
823 "description" => "The 'honourIvbbAttributes' statement enables the IVBB mode inside of GOsa. You need the ivbb.schema file from used by german authorities.",
824 "check" => "gosaProperty::isBool",
825 "migrate" => "",
826 "group" => "core",
827 "mandatory" => FALSE),
829 array(
830 "name" => "sambaIdMapping",
831 "type" => "bool",
832 "default" => "false",
833 "description" => "The 'sambaIdMapping' statement tells GOsa to maintain sambaIdmapEntry objects. Depending on your setup this can drastically improve the windows login performance.",
834 "check" => "gosaProperty::isBool",
835 "migrate" => "",
836 "group" => "samba",
837 "mandatory" => FALSE),
839 array(
840 "name" => "handleExpiredAccounts",
841 "type" => "bool",
842 "default" => "true",
843 "description" => "The 'handleExpiredAccounts' statement enables shadow attribute tests during the login to the GOsa web interface and forces password renewal or account lockout.",
844 "check" => "gosaProperty::isBool",
845 "migrate" => "",
846 "group" => "core",
847 "mandatory" => FALSE),
849 array(
850 "name" => "sambaSID",
851 "type" => "string",
852 "default" => "",
853 "description" => "The 'sambaSID' statement defines a samba SID if not available inside of the LDAP. You can retrieve the current sid by net getlocalsid.",
854 "check" => "",
855 "migrate" => "",
856 "group" => "samba",
857 "mandatory" => FALSE),
859 array(
860 "name" => "sambaRidBase",
861 "type" => "integer",
862 "default" => "",
863 "description" => "The 'sambaRidBase' statement defines the base id to add to ordinary sid calculations - if not available inside of the LDAP.",
864 "check" => "gosaProperty::isInteger",
865 "migrate" => "",
866 "group" => "samba",
867 "mandatory" => FALSE),
869 array(
870 "name" => "enableSnapshots",
871 "type" => "bool",
872 "default" => "false",
873 "description" => "The 'enableSnapshots' statement enables a snapshot mechaism in GOsa. This enables you to save certain states of entries and restore them later on.",
874 "check" => "gosaProperty::isBool",
875 "migrate" => "",
876 "group" => "snapshot",
877 "mandatory" => TRUE),
879 array(
880 "name" => "snapshotBase",
881 "type" => "dn",
882 "default" => "ou=snapshots,dc=localhost,dc=de",
883 "description" => "The 'snapshotBase' statement defines the base where snapshots should be stored inside of the LDAP.",
884 "check" => "gosaProperty::isDn",
885 "migrate" => "",
886 "group" => "snapshot",
887 "mandatory" => FALSE),
889 array(
890 "name" => "snapshotAdminDn",
891 "type" => "dn",
892 "default" => "cn=admin,dc=localhost,dc=de",
893 "description" => "The 'snapshotAdminDn' variable defines the user which is used to authenticate when connecting to 'snapshotURI'.",
894 "check" => "gosaProperty::isDn",
895 "migrate" => "",
896 "group" => "snapshot",
897 "mandatory" => FALSE),
899 array(
900 "name" => "snapshotAdminPassword",
901 "type" => "string",
902 "default" => "secret",
903 "description" => "The 'snapshotAdminPassword' variable defines the credentials which are used in combination with 'snapshotAdminDn' and 'snapshotURI' in order to authenticate.",
904 "check" => "",
905 "migrate" => "",
906 "group" => "snapshot",
907 "mandatory" => FALSE),
909 array(
910 "name" => "idAllocationMethod",
911 "type" => "switch",
912 "default" => "traditional",
913 "defaults" => "core::getPropertyValues",
914 "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.",
915 "check" => "",
916 "migrate" => "",
917 "group" => "id",
918 "mandatory" => TRUE),
919 array(
920 "name" => "snapshotURI",
921 "type" => "uri",
922 "default" => "ldap://localhost:389",
923 "description" => "The 'snapshotURI' variable defines the LDAP URI for the server which is used to do object snapshots.",
924 "check" => "",
925 "migrate" => "",
926 "group" => "snapshot",
927 "mandatory" => FALSE)
928 ),
930 "plProvidedAcls" => array(
931 "accessTo" => _("System trust"),
932 "cn" => _("Name"),
933 "description" => _("Description"),
934 "sudoUser" => _("Users"),
935 "sudoHost" => _("Host"),
936 "sudoCommand" => _("Command"),
937 "sudoRunAs" => _("Run as user"),
938 "trustModel" => _("Access control list"))
939 )
940 );
941 }
942 }
943 ?>