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 'passwordDefaultHash':
27 $tmp = passwordMethod::get_available_methods();
28 foreach($tmp['name'] as $id => $method){
29 $desc = $tmp[$id]['name'];
30 $list[$method] = $desc;
31 }
32 break;
33 case 'accountPrimaryAttribute':
34 $list = array('uid' => 'uid', 'cn' => 'cn');
35 break;
36 case 'loginAttribute':
37 $list = array(
38 'uid' => 'uid',
39 'mail' => 'mail',
40 'both' => 'uid & mail');
41 break;
42 case 'timezone':
43 $tmp = timezone::_get_tz_zones();
44 foreach($tmp['TIMEZONES'] as $name => $offset){
45 if($offset >= 0){
46 $list[$name] = $name." ( + ".sprintf("%0.2f",$offset/(60*60))." "._("hours").")";
47 }else{
48 $offset = $offset * -1;
49 $list[$name] = $name." ( - ".sprintf("%0.2f",($offset/(60*60)))." "._("hours").")";
50 }
51 }
52 break;
53 case 'mailAttribute':
54 $list = array('mail' => 'mail','uid' => 'uid');
55 break;
56 case 'mailMethod':
57 $list = mailMethod::get_methods();
58 break;
59 case 'language':
60 $tmp = get_languages(TRUE);
61 $list[""] = _("Automatic");
62 foreach($tmp as $key => $desc){
63 $list[$key] = $desc;
64 }
65 break;
66 case 'modificationDetectionAttribute':
67 $list = array('entryCSN' => 'entryCSN (OpenLdap)','textCSN'=>'textCSN (Sun DS)');
68 break;
69 default: echo $name." ";$list = array();
70 }
72 if(!isset($list[$value])){
73 $list[$value] = $value." ("._("User value").")";
74 }
76 return($list);
77 }
79 static function plInfo()
80 {
81 return (array(
82 "plShortName" => _("Core"),
83 "plDescription" => _("GOsa core plugin"),
84 "plSelfModify" => FALSE,
85 "plDepends" => array(),
86 "plPriority" => 0,
87 "plSection" => array("administration"),
88 "plCategory" => array("all"),
89 "plProperties" => array(
91 array(
92 "name" => "htaccessAuthentication",
93 "type" => "bool",
94 "default" => "false",
95 "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."),
96 "check" => "gosaProperty::isBool",
97 "migrate" => "",
98 "group" => "authentification",
99 "mandatory" => TRUE),
101 array(
102 "name" => "logging",
103 "type" => "bool",
104 "default" => "true",
105 "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'."),
107 "check" => "gosaProperty::isBool",
108 "migrate" => "",
109 "group" => "core",
110 "mandatory" => TRUE),
112 array(
113 "name" => "listSummary",
114 "type" => "bool",
115 "default" => "true",
116 "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."),
117 "check" => "gosaProperty::isBool",
118 "migrate" => "",
119 "group" => "visual",
120 "mandatory" => FALSE),
122 array(
123 "name" => "passwordMinLength",
124 "type" => "integer",
125 "default" => "",
126 "description" => _("The 'passwordMinLength' statement determines whether a newly entered password has to be of a minimum length."),
127 "check" => "gosaProperty::isInteger",
128 "migrate" => "",
129 "group" => "password",
130 "mandatory" => FALSE),
132 array(
133 "name" => "passwordMinDiffer",
134 "type" => "integer",
135 "default" => "",
136 "description" => _("The 'passwordMinDiffer' statement determines whether a newly entered password has to be checked to have at least n different characters."),
137 "check" => "gosaProperty::isInteger",
138 "migrate" => "",
139 "group" => "password",
140 "mandatory" => FALSE),
142 array(
143 "name" => "passwordHook",
144 "type" => "command",
145 "default" => "",
146 "description" =>
147 _("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\""),
148 "check" => "gosaProperty::isCommand",
149 "migrate" => "",
150 "group" => "password",
151 "mandatory" => FALSE),
153 array(
154 "name" => "displayErrors",
155 "type" => "bool",
156 "default" => "false",
157 "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.",
158 "check" => "gosaProperty::isBool",
159 "migrate" => "",
160 "group" => "debug",
161 "mandatory" => TRUE),
163 array(
164 "name" => "schemaCheck",
165 "type" => "bool",
166 "default" => "true",
167 "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.",
168 "check" => "gosaProperty::isBool",
169 "migrate" => "",
170 "group" => "debug",
171 "mandatory" => TRUE),
173 array(
174 "name" => "copyPaste",
175 "type" => "bool",
176 "default" => "false",
177 "description" => "The 'copyPaste' statement enables copy and paste for LDAP entries managed with GOsa.",
178 "check" => "gosaProperty::isBool",
179 "migrate" => "",
180 "group" => "copyPaste",
181 "mandatory" => TRUE),
183 array(
184 "name" => "forceGlobals",
185 "type" => "bool",
186 "default" => "false",
187 "description" => "The 'forceGlobals' statement enables PHP security checks to force register_global settings to be switched off.",
188 "check" => "gosaProperty::isBool",
189 "migrate" => "",
190 "group" => "security",
191 "mandatory" => TRUE),
193 array(
194 "name" => "forceSSL",
195 "type" => "string",
196 "default" => "false",
197 "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://",
198 "check" => "gosaProperty::isBool",
199 "migrate" => "",
200 "group" => "security",
201 "mandatory" => TRUE),
203 array(
204 "name" => "ldapStats",
205 "type" => "bool",
206 "default" => "false",
207 "description" => _("Logs information about triggered ldap operations, duration, filter, aso. into syslog."),
208 "check" => "gosaProperty::isBool",
209 "migrate" => "",
210 "group" => "debug",
211 "mandatory" => FALSE),
213 array(
214 "name" => "ldapSizelimit",
215 "type" => "integer",
216 "default" => 200,
217 "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."),
218 "check" => "gosaProperty::isInteger",
219 "migrate" => "",
220 "group" => "core",
221 "mandatory" => TRUE),
223 array(
224 "name" => "ldapSizeIgnore",
225 "type" => "bool",
226 "default" => "false",
227 "description" => _("Disables sizelimit checks, only the configured amount of results will be shown!"),
228 "check" => "gosaProperty::isBool",
229 "migrate" => "",
230 "group" => "core",
231 "mandatory" => FALSE),
233 array(
234 "name" => "warnSSL",
235 "type" => "bool",
236 "default" => "true",
237 "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.",
238 "check" => "gosaProperty::isBool",
239 "migrate" => "",
240 "group" => "security",
241 "mandatory" => TRUE),
243 array(
244 "name" => "ppdGzip",
245 "type" => "bool",
246 "default" => "true",
247 "description" => "The 'ppdGzip' variable enables PPD file compression.",
248 "check" => "gosaProperty::isBool",
249 "migrate" => "",
250 "group" => "ppd",
251 "mandatory" => FALSE),
254 array(
255 "name" => "ignoreAcl",
256 "type" => "dn",
257 "default" => "",
258 "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.",
259 "check" => "gosaProperty::isDN",
260 "migrate" => "",
261 "group" => "debug",
262 "mandatory" => FALSE),
265 array(
266 "name" => "ppdPath",
267 "type" => "path",
268 "default" => "/var/spool/ppd",
269 "description" => "The 'ppdPath' variable defines where to store PPD files for the GOto environment plugins.",
270 "check" => "gosaProperty::isPath",
271 "migrate" => "",
272 "group" => "ppd",
273 "mandatory" => FALSE),
275 array(
276 "name" => "ldapMaxQueryTime",
277 "type" => "integer",
278 "default" => "",
279 "description" => "The 'ldapMaxQueryTime' statement tells GOsa to stop LDAP actions if there is no answer within the specified number of seconds.",
280 "check" => "gosaProperty::isInteger",
281 "migrate" => "",
282 "group" => "debug",
283 "mandatory" => FALSE),
285 array(
286 "name" => "storeFilterSettings",
287 "type" => "bool",
288 "default" => "true",
289 "description" => "The 'storeFilterSettings' statement determines whether GOsa should store filter and plugin settings inside of a cookie.",
290 "check" => "gosaProperty::isBool",
291 "migrate" => "",
292 "group" => "core",
293 "mandatory" => FALSE),
295 array(
296 "name" => "sendCompressedOutput",
297 "type" => "bool",
298 "default" => "true",
299 "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.",
300 "check" => "gosaProperty::isBool",
301 "migrate" => "",
302 "group" => "core",
303 "mandatory" => FALSE),
305 array(
306 "name" => "modificationDetectionAttribute",
307 "type" => "switch",
308 "default" => "entryCSN",
309 "defaults" => "core::getPropertyValues",
310 "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.",
311 "check" => "",
312 "migrate" => "",
313 "group" => "core",
314 "mandatory" => TRUE),
316 array(
317 "name" => "language",
318 "type" => "switch",
319 "default" => "",
320 "defaults" => "core::getPropertyValues",
321 "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.",
322 "check" => "",
323 "migrate" => "",
324 "group" => "core",
325 "mandatory" => FALSE),
327 array(
328 "name" => "theme",
329 "type" => "string",
330 "default" => "default",
331 "defaults" => "core::getPropertyValues",
332 "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.",
333 "check" => "",
334 "migrate" => "",
335 "group" => "visual",
336 "mandatory" => FALSE),
338 array(
339 "name" => "sessionLifetime",
340 "type" => "integer",
341 "default" => 7200,
342 "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.",
343 "check" => "gosaProperty::isInteger",
344 "migrate" => "",
345 "group" => "security",
346 "mandatory" => FALSE),
348 array(
349 "name" => "templateCompileDirectory",
350 "type" => "path",
351 "default" => "/var/spool/gosa",
352 "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.",
353 "check" => "gosaProperty::isWriteablePath",
354 "migrate" => "",
355 "group" => "core",
356 "mandatory" => TRUE),
358 array(
359 "name" => "debugLevel",
360 "type" => "integer",
361 "default" => 0,
362 "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"),
363 "
364 DEBUG_TRACE = 1
365 DEBUG_LDAP = 2
366 DEBUG_MYSQL = 4
367 DEBUG_SHELL = 8
368 DEBUG_POST = 16
369 DEBUG_SESSION = 32
370 DEBUG_CONFIG = 64
371 DEBUG_ACL = 128
372 DEBUG_SI = 256"),
373 "check" => "gosaProperty::isInteger",
374 "migrate" => "",
375 "group" => "debug",
376 "mandatory" => FALSE),
378 array(
379 "name" => "sambaHashHook",
380 "type" => "command",
381 "default" => "perl -MCrypt::SmbHash -e \"print join(q[:], ntlmgen \\\$ARGV[0]), $/;\"",
382 "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]), $/;\""),
383 "check" => "gosaProperty::isCommand",
384 "migrate" => "",
385 "group" => "samba",
386 "mandatory" => FALSE),
388 array(
389 "name" => "passwordDefaultHash",
390 "type" => "switch",
391 "default" => "crypt",
392 "defaults" => "core::getPropertyValues",
393 "description" => "The 'passwordDefaultHash' statement defines the default password hash to choose for new accounts.",
394 "check" => "",
395 "migrate" => "",
396 "group" => "password",
397 "mandatory" => FALSE),
399 array(
400 "name" => "accountPrimaryAttribute",
401 "type" => "switch",
402 "default" => "cn",
403 "defaults" => "core::getPropertyValues",
404 "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'.",
405 "check" => "",
406 "migrate" => "",
407 "group" => "security",
408 "mandatory" => TRUE),
410 array(
411 "name" => "userRDN",
412 "type" => "rdn",
413 "default" => "ou=people",
414 "description" => "The 'userRDN' statement defines the location where new accounts will be created inside of defined departments. The default is 'ou=people'.",
415 "check" => "gosaProperty::isRdn",
416 "migrate" => "",
417 "group" => "user",
418 "mandatory" => FALSE),
420 array(
421 "name" => "groupRDN",
422 "type" => "rdn",
423 "default" => "ou=groups",
424 "description" => "The 'groupsRDN' statement defines the location where new groups will be created inside of defined departments. The default is 'ou=groups'.",
425 "check" => "gosaProperty::isRdn",
426 "migrate" => "",
427 "group" => "group",
428 "mandatory" => FALSE),
430 array(
431 "name" => "gidNumberBase",
432 "type" => "integer",
433 "default" => "1000",
434 "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.",
435 "check" => "gosaProperty::isInteger",
436 "migrate" => "",
437 "group" => "core",
438 "mandatory" => TRUE),
440 array(
441 "name" => "uidNumberBase",
442 "type" => "integer",
443 "default" => "1000",
444 "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.",
445 "check" => "gosaProperty::isInteger",
446 "migrate" => "",
447 "group" => "core",
448 "mandatory" => TRUE),
450 array(
451 "name" => "gosaSupportURI",
452 "type" => "string",
453 "default" => "",
454 "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",
455 "check" => "",
456 "migrate" => "",
457 "group" => "gosa-si",
458 "mandatory" => FALSE),
460 array(
461 "name" => "gosaSupportTimeout",
462 "type" => "integer",
463 "default" => "15",
464 "description" => "The 'gosaSupportTimeout' sets a connection timeout for all gosa-si actions. See 'gosaSupportURI' for details.",
465 "check" => "gosaProperty::isInteger",
466 "migrate" => "",
467 "group" => "gosa-si",
468 "mandatory" => FALSE),
470 array(
471 "name" => "loginAttribute",
472 "type" => "switch",
473 "default" => "uid",
474 "defaults" => "core::getPropertyValues",
475 "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'",
476 "check" => "",
477 "migrate" => "",
478 "group" => "security",
479 "mandatory" => TRUE),
481 array(
482 "name" => "timezone",
483 "type" => "switch",
484 "default" => "",
485 "defaults" => "core::getPropertyValues",
486 "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.",
487 "check" => "",
488 "migrate" => "",
489 "group" => "core",
490 "mandatory" => TRUE),
492 array(
493 "name" => "honourUnitTags",
494 "type" => "bool",
495 "default" => "false",
496 "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.",
497 "check" => "",
498 "migrate" => "gosaProperty::isBool",
499 "group" => "core",
500 "mandatory" => FALSE),
502 array(
503 "name" => "useSaslForKerberos",
504 "type" => "bool",
505 "default" => "false",
506 "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.",
507 "check" => "gosaProperty::isBool",
508 "migrate" => "",
509 "group" => "password",
510 "mandatory" => FALSE),
512 array(
513 "name" => "rfc2307bis",
514 "type" => "bool",
515 "default" => "false",
516 "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",
517 "check" => "gosaProperty::isBool",
518 "migrate" => "",
519 "group" => "core",
520 "mandatory" => FALSE),
522 array(
523 "name" => "personalTitleInDN",
524 "type" => "bool",
525 "default" => "false",
526 "description" => "The 'personalTitleInDN' option tells GOsa to include the personal title in user DNs when #accountPrimaryAttribute' is set to \"cn\".",
527 "check" => "gosaProperty::isBool",
528 "migrate" => "",
529 "group" => "storage location",
530 "mandatory" => FALSE),
532 array(
533 "name" => "nextIdHook",
534 "type" => "command",
535 "default" => "",
536 "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.",
537 "check" => "gosaProperty::isCommand",
538 "migrate" => "",
539 "group" => "core",
540 "mandatory" => FALSE),
542 array(
543 "name" => "sambaMachineAccountRDN",
544 "type" => "rdn",
545 "default" => "ou=winstations",
546 "description" => "This statement defines the location where GOsa looks for new samba workstations.",
547 "check" => "gosaProperty::isRdn",
548 "migrate" => "",
549 "group" => "samba",
550 "mandatory" => FALSE),
552 array(
553 "name" => "idGenerator",
554 "type" => "string",
555 "default" => "{%sn}-{%givenName[2-4]}",
556 "description" => "The 'idGenerator' statement describes an automatic way to generate new user ids. There are two basic functions supported - which can be combined:
558 a) using attributes
560 You can specify LDAP attributes (currently only sn and givenName) in
561 braces {} and add a percent sign befor it. Optionally you can strip it
562 down to a number of characters, specified in []. I.e.
564 idGenerator=\"{%sn}-{%givenName[2-4]}\"
566 will generate an ID using the full surename, adding a dash, and adding at
567 least the first two characters of givenName. If this ID is used, it'll
568 use up to four characters. If no automatic generation is possible, a
569 input box is shown.
571 b) using automatic id's
573 I.e. specifying
575 idGenerator=\"acct{id:3}\"
577 will generate a three digits id with the next free entry appended to \"acct\".
579 idGenerator=\"acct{id!1}\"
581 will generate a one digit id with the next free entry appended to \"acct\" - if needed.
583 idGenerator=\"ext{id#3}\"
585 will generate a three digits random number appended to \"ext\".
586 ",
587 "check" => "",
588 "migrate" => "",
589 "group" => "core",
590 "mandatory" => FALSE),
592 array(
593 "name" => "strictNamingRules",
594 "type" => "bool",
595 "default" => "true",
596 "description" => "",
597 "check" => "gosaProperty::isBool",
598 "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'",
599 "group" => "core",
600 "mandatory" => FALSE),
602 array(
603 "name" => "minId",
604 "type" => "integer",
605 "default" => "",
606 "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.",
607 "check" => "gosaProperty::isInteger",
608 "migrate" => "",
609 "group" => "core",
610 "mandatory" => FALSE),
612 array(
613 "name" => "mailAttribute",
614 "type" => "switch",
615 "default" => "mail",
616 "defaults" => "core::getPropertyValues",
617 "description" => "The 'mailAttribute' statement determines which attribute GOsa will use to create accounts. Valid values are 'mail' and 'uid'.",
618 "check" => "",
619 "migrate" => "",
620 "group" => "mail",
621 "mandatory" => FALSE),
623 array(
624 "name" => "gosaSharedPrefix",
625 "type" => "string",
626 "default" => "",
627 "description" => "This attribute allows to override the prefix used to create shared folders.",
628 "check" => "",
629 "migrate" => "",
630 "group" => "mail",
631 "mandatory" => FALSE),
633 array(
634 "name" => "mailUserCreation",
635 "type" => "string",
636 "default" => "",
637 "description" => "This attribute allows to override the user account creation syntax, see the 'mailFolderCreation' description for more details.
639 Examples
640 mailUserCreation=\"%prefix%%uid%\" => \"user.foobar\"
641 mailUserCreation=\"my-prefix.%uid%%domain%\" => \"my-prefix.foobar@example.com\"
642 ",
643 "check" => "",
644 "migrate" => "",
645 "group" => "mail",
646 "mandatory" => FALSE),
648 array(
649 "name" => "mailFolderCreation",
650 "type" => "string",
651 "default" => "",
652 "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.
654 To override the methods default account creation syntax, you can set the 'mailFolderCreation' option.
656 Examples
658 mailFolderCreation=\"%prefix%%cn%\" => \"shared.development\"
659 mailFolderCreation=\"my-prefix.%cn%%domain%\" => \"my-prefix.development@example.com\"
661 %prefix% The methods default prefix. (Depends on cyrusUseSlashes=FALSE/TRUE)
662 %cn% The groups/users cn.
663 %uid% The users uid.
664 %mail% The objects mail attribute.
665 %domain% The domain part of the objects mail attribute.
666 %mailpart% The user address part of the mail address.
667 %uattrib% Depends on mailAttribute=\"uid/mail\".
668 ",
669 "check" => "",
670 "migrate" => "",
671 "group" => "mail",
672 "mandatory" => FALSE),
674 array(
675 "name" => "imapTimeout",
676 "type" => "integer",
677 "default" => 10,
678 "description" => "The 'imapTimeout' statement sets the connection timeout for imap actions.",
679 "check" => "gosaProperty::isInteger",
680 "migrate" => "",
681 "group" => "mail",
682 "mandatory" => FALSE),
684 array(
685 "name" => "mailMethod",
686 "type" => "switch",
687 "default" => "",
688 "defaults" => "core::getPropertyValues",
689 "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.",
690 "check" => "",
691 "migrate" => "",
692 "group" => "mail",
693 "mandatory" => FALSE),
695 array(
696 "name" => "cyrusUseSlashes",
697 "type" => "bool",
698 "default" => "true",
699 "description" => "The 'cyrusUseSlashes' statement determines if GOsa should use \"foo/bar\" or \"foo.bar\" namespaces in IMAP. Unix style is with slashes.",
700 "check" => "gosaProperty::isBool",
701 "migrate" => "",
702 "group" => "mail",
703 "mandatory" => FALSE),
705 array(
706 "name" => "vacationTemplateDirectory",
707 "type" => "path",
708 "default" => "/etc/gosa/vacation",
709 "description" => "The 'vacationTemplateDirectory' statement sets the path where GOsa will look for vacation message templates. Default is /etc/gosa/vacation.
711 Example template /etc/gosa/vacation/business.txt:
713 DESC:Away from desk
714 Hi, I'm currently away from my desk. You can contact me on
715 my cell phone via %mobile.
717 Greetings,
718 %givenName %sn
720 ",
721 "check" => "gosaProperty::isWriteablePath",
722 "migrate" => "",
723 "group" => "mail",
724 "mandatory" => FALSE),
726 array(
727 "name" => "ldapTLS",
728 "type" => "bool",
729 "default" => "false",
730 "description" => "The 'ldapTLS' statement enables or disables TLS operating on LDAP connections.",
731 "check" => "gosaProperty::isBool",
732 "migrate" => "",
733 "group" => "security",
734 "mandatory" => TRUE),
736 array(
737 "name" => "honourIvbbAttributes",
738 "type" => "bool",
739 "default" => "false",
740 "description" => "The 'honourIvbbAttributes' statement enables the IVBB mode inside of GOsa. You need the ivbb.schema file from used by german authorities.",
741 "check" => "gosaProperty::isBool",
742 "migrate" => "",
743 "group" => "core",
744 "mandatory" => FALSE),
746 array(
747 "name" => "sambaIdMapping",
748 "type" => "bool",
749 "default" => "false",
750 "description" => "The 'sambaIdMapping' statement tells GOsa to maintain sambaIdmapEntry objects. Depending on your setup this can drastically improve the windows login performance.",
751 "check" => "gosaProperty::isBool",
752 "migrate" => "",
753 "group" => "samba",
754 "mandatory" => FALSE),
756 array(
757 "name" => "handleExpiredAccounts",
758 "type" => "bool",
759 "default" => "true",
760 "description" => "The 'handleExpiredAccounts' statement enables shadow attribute tests during the login to the GOsa web interface and forces password renewal or account lockout.",
761 "check" => "gosaProperty::isBool",
762 "migrate" => "",
763 "group" => "core",
764 "mandatory" => FALSE),
766 array(
767 "name" => "sambaSID",
768 "type" => "string",
769 "default" => "",
770 "description" => "The 'sambaSID' statement defines a samba SID if not available inside of the LDAP. You can retrieve the current sid by net getlocalsid.",
771 "check" => "",
772 "migrate" => "",
773 "group" => "samba",
774 "mandatory" => FALSE),
776 array(
777 "name" => "sambaRidBase",
778 "type" => "integer",
779 "default" => "",
780 "description" => "The 'sambaRidBase' statement defines the base id to add to ordinary sid calculations - if not available inside of the LDAP.",
781 "check" => "gosaProperty::isInteger",
782 "migrate" => "",
783 "group" => "samba",
784 "mandatory" => FALSE),
786 array(
787 "name" => "enableSnapshots",
788 "type" => "bool",
789 "default" => "false",
790 "description" => "The 'enableSnapshots' statement enables a snapshot mechaism in GOsa. This enables you to save certain states of entries and restore them later on.",
791 "check" => "gosaProperty::isBool",
792 "migrate" => "",
793 "group" => "snapshot",
794 "mandatory" => TRUE),
796 array(
797 "name" => "snapshotBase",
798 "type" => "dn",
799 "default" => "ou=snapshots,dc=localhost,dc=de",
800 "description" => "The 'snapshotBase' statement defines the base where snapshots should be stored inside of the LDAP.",
801 "check" => "gosaProperty::isDn",
802 "migrate" => "",
803 "group" => "snapshot",
804 "mandatory" => FALSE),
806 array(
807 "name" => "snapshotAdminDn",
808 "type" => "dn",
809 "default" => "cn=admin,dc=localhost,dc=de",
810 "description" => "The 'snapshotAdminDn' variable defines the user which is used to authenticate when connecting to 'snapshotURI'.",
811 "check" => "gosaProperty::isDn",
812 "migrate" => "",
813 "group" => "snapshot",
814 "mandatory" => FALSE),
816 array(
817 "name" => "snapshotAdminPassword",
818 "type" => "string",
819 "default" => "secret",
820 "description" => "The 'snapshotAdminPassword' variable defines the credentials which are used in combination with 'snapshotAdminDn' and 'snapshotURI' in order to authenticate.",
821 "check" => "",
822 "migrate" => "",
823 "group" => "snapshot",
824 "mandatory" => FALSE),
826 array(
827 "name" => "snapshotURI",
828 "type" => "uri",
829 "default" => "ldap://localhost:389",
830 "description" => "The 'snapshotURI' variable defines the LDAP URI for the server which is used to do object snapshots.",
831 "check" => "",
832 "migrate" => "",
833 "group" => "snapshot",
834 "mandatory" => FALSE)
835 ),
837 "plProvidedAcls" => array(
838 "accessTo" => _("System trust"),
839 "cn" => _("Name"),
840 "description" => _("Description"),
841 "sudoUser" => _("Users"),
842 "sudoHost" => _("Host"),
843 "sudoCommand" => _("Command"),
844 "sudoRunAs" => _("Run as user"),
845 "trustModel" => _("Access control list"))
846 )
847 );
848 }
849 }
850 ?>