1 <?php
3 /*
4 * How to use plugin::plInfo()
5 * ===================
6 *
7 * The function returns a descriptive array of the plugin,
8 * which will then be used by GOsa to populate the plugin, its ACLs,
9 * its properties, its schema requirements aso.
10 *
11 *
12 * The following values can be set:
13 * ================================
14 *
15 * plShortName |-> The name of the plugin in short (e.g. Posix)
16 * | This short-name will be shown for example in the ACL definitions.
17 * |
18 * |
19 * plDescription |-> A descriptive text for the plugin (e.g. User posix account extension)
20 * | This will be shown in the ACL definitions.
21 * |
22 * |
23 * plSelfModify |-> If set to true this plugin allows to set 'self' ACLs.
24 * | For exampe to allow to change the users own password, but not the others.
25 * |
26 * |
27 * plDepends |-> The plugins dependencies to other classes (e.g. sambaAccount requires posixAccount)
28 * |
29 * |
30 * plPriority |-> The priority of the plugin, this influences the ACL listings only.
31 * |
32 * |
33 * plSection |-> The section of this plugin 'administration', 'personal', 'addons'
34 * |
35 * |
36 * plCategory |-> The plugin category this plugins belongs to (e.g. users, groups, departments)
37 * |
38 * |
39 * plRequirements |-> Plugin requirements.
40 * | |
41 * | |-> [activePlugin] The schame checks will only be performed if the given plugin is enabled
42 * | | in the gosa.conf definitions.
43 * | | Defaults to the current class name if empty.
44 * | |
45 * | |-> [ldapSchema] An array of objectClass requirements.
46 * | | Syntax [[objectClass => 'version'], ... ]
47 * | | Version can be emtpy which just checks for the existence of the class.
48 * | |
49 * | |-> [onFailureDisablePlugin] A list of plugins that which will be disabled if the
50 * | requirements couldn't be fillfulled.
51 * |
52 * | ---------------------------------------------
53 * | EXAMPLE:
54 * | ---------------------------------------------
55 * | "plRequirements"=> array(
56 * | 'activePlugin' => 'applicationManagement',
57 * | 'ldapSchema' => array(
58 * | 'gosaObject' => '',
59 * | 'gosaAccount' => '>=2.7',
60 * | 'gosaLockEntry' => '>=2.7',
61 * | 'gosaDepartment' => '>=2.7',
62 * | 'gosaCacheEntry' => '>=2.7',
63 * | 'gosaProperties' => '>=2.7',
64 * | 'gosaConfig' => '>=2.7'
65 * | ),
66 * | 'onFailureDisablePlugin' => array(get_class(), 'someClassName')
67 * | ),
68 * | ---------------------------------------------
69 * |
70 * |
71 * |
72 * plProvidedAcls |-> The ACLs provided by this plugin
73 * |
74 * | ---------------------------------------------
75 * | EXAMPLE:
76 * | ---------------------------------------------
77 * | "plProvidedAcls"=> array(
78 * | 'cn' => _('Name'),
79 * | 'uid' => _('Uid'),
80 * | 'phoneNumber' => _('Phone number')
81 * | ),
82 * | ---------------------------------------------
83 * |
84 * |
85 * |
86 * plProperties |-> Properties used by the plugin.
87 * | Properties which are defined here will be modifyable using the property editor.
88 * | To read properties you can use $config->get_cfg_value(className, propertyName)
89 * |
90 * | ---------------------------------------------
91 * | EXAMPLE:
92 * | ---------------------------------------------
93 * | "plProperties"=> array(
94 * | array(
95 * | "name" => "htaccessAuthentication",
96 * | "type" => "bool",
97 * | "default" => "false",
98 * | "description" => _("A description..."),
99 * | "check" => "gosaProperty::isBool",
100 * | "migrate" => "",
101 * | "group" => "authentification",
102 * | "mandatory" => TRUE
103 * | ),
104 * | ),
105 * | See class_core.inc for a huge amount of examples.
106 */
109 class all extends plugin {
110 static function plInfo()
111 {
112 return (array(
113 "plShortName" => _("All"),
114 "plDescription" => _("All objects"),
115 "plSelfModify" => TRUE,
116 "plDepends" => array(),
117 "plPriority" => 0,
118 "plSection" => array("administration"),
119 "plCategory" => array("all" => array("description" => '* '._("All"))),
120 "plProvidedAcls" => array())
121 );
122 }
123 }
125 class core extends plugin {
127 static function getPropertyValues($class,$name,$value,$type)
128 {
129 $list = array();
130 switch($name){
131 case 'idAllocationMethod':
132 $list = array('traditional' => _('Traditional'), 'pool' => _('Use samba pool'));
133 break;
134 case 'passwordDefaultHash':
135 $tmp = passwordMethod::get_available_methods();
136 foreach($tmp['name'] as $id => $method){
137 $desc = $tmp[$id]['name'];
138 $list[$method] = $desc;
139 }
140 break;
141 case 'theme':
142 $cmd = "cd ../ihtml/themes; find . -name 'img.styles' | sed s/'^[^\/]*\/\([^\/]*\).*'/'\\1'/g";
143 $res = `$cmd` ;
144 $list = array();
145 foreach(preg_split("/\n/",$res) as $entry){
146 if(!empty($entry)){
147 $list[$entry] = $entry;
148 }
149 }
150 break;
151 case 'accountPrimaryAttribute':
152 $list = array('uid' => 'uid', 'cn' => 'cn');
153 break;
154 case 'loginAttribute':
155 $list = array(
156 'uid' => 'uid',
157 'mail' => 'mail',
158 'both' => 'uid & mail');
159 break;
160 case 'timezone':
161 $tmp = timezone::_get_tz_zones();
162 foreach($tmp['TIMEZONES'] as $name => $offset){
163 if($offset >= 0){
164 $list[$name] = $name." ( + ".sprintf("%0.2f",$offset/(60*60))." "._("hours").")";
165 }else{
166 $offset = $offset * -1;
167 $list[$name] = $name." ( - ".sprintf("%0.2f",($offset/(60*60)))." "._("hours").")";
168 }
169 }
170 break;
171 case 'mailAttribute':
172 $list = array('mail' => 'mail','uid' => 'uid');
173 break;
174 case 'mailMethod':
175 $list = mailMethod::get_methods();
176 $list[''] = _("None");
177 break;
178 case 'language':
179 $tmp = get_languages(TRUE);
180 $list[""] = _("Automatic");
181 foreach($tmp as $key => $desc){
182 $list[$key] = $desc;
183 }
184 break;
185 case 'modificationDetectionAttribute':
186 $list = array('entryCSN' => 'entryCSN (OpenLdap)','textCSN'=>'textCSN (Sun DS)');
187 break;
188 default: echo $name." ";$list = array();
189 }
191 if(!isset($list[$value])){
192 $list[$value] = $value." ("._("User value").")";
193 }
195 return($list);
196 }
198 static function plInfo()
199 {
200 return (array(
201 "plShortName" => _("Core"),
202 "plDescription" => _("GOsa core plugin"),
203 "plSelfModify" => FALSE,
204 "plDepends" => array(),
205 "plPriority" => 0,
206 "plSection" => array("administration"),
208 "plRequirements"=> array(
209 'ldapSchema' => array(
210 'gosaObject' => '>=2.7',
211 'gosaAccount' => '>=2.7',
212 'gosaLockEntry' => '>=2.7',
213 'gosaDepartment' => '>=2.7',
214 'gosaCacheEntry' => '>=2.7',
215 'gosaProperties' => '>=2.7',
216 'gosaConfig' => '>=2.7'
217 ),
218 'onFailureDisablePlugin' => array(get_class())
219 ),
223 "plCategory" => array("all"),
224 "plProperties" => array(
226 array(
227 "name" => "htaccessAuthentication",
228 "type" => "bool",
229 "default" => "false",
230 "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."),
231 "check" => "gosaProperty::isBool",
232 "migrate" => "",
233 "group" => "authentification",
234 "mandatory" => TRUE),
236 array(
237 "name" => "logging",
238 "type" => "bool",
239 "default" => "true",
240 "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'."),
242 "check" => "gosaProperty::isBool",
243 "migrate" => "",
244 "group" => "core",
245 "mandatory" => TRUE),
247 array(
248 "name" => "listSummary",
249 "type" => "bool",
250 "default" => "true",
251 "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."),
252 "check" => "gosaProperty::isBool",
253 "migrate" => "",
254 "group" => "visual",
255 "mandatory" => FALSE),
257 array(
258 "name" => "passwordMinLength",
259 "type" => "integer",
260 "default" => "",
261 "description" => _("The 'passwordMinLength' statement determines whether a newly entered password has to be of a minimum length."),
262 "check" => "gosaProperty::isInteger",
263 "migrate" => "",
264 "group" => "password",
265 "mandatory" => FALSE),
267 array(
268 "name" => "passwordMinDiffer",
269 "type" => "integer",
270 "default" => "",
271 "description" => _("The 'passwordMinDiffer' statement determines whether a newly entered password has to be checked to have at least n different characters."),
272 "check" => "gosaProperty::isInteger",
273 "migrate" => "",
274 "group" => "password",
275 "mandatory" => FALSE),
277 array(
278 "name" => "passwordHook",
279 "type" => "command",
280 "default" => "",
281 "description" =>
282 _("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\""),
283 "check" => "gosaProperty::isCommand",
284 "migrate" => "",
285 "group" => "password",
286 "mandatory" => FALSE),
288 array(
289 "name" => "passwordProposalHook",
290 "type" => "command",
291 "default" => "",
292 "description" => _("The 'passwordProposalHook' can be used to let GOsa generate password proposals for you. Whenever you change a password, you can then decide whether to use the proposal or to manually specify a password.")." "._("Here is an example command:")." /usr/bin/apg -n1",
293 "check" => "gosaProperty::isCommand",
294 "migrate" => "",
295 "group" => "password",
296 "mandatory" => FALSE),
298 array(
299 "name" => "displayErrors",
300 "type" => "bool",
301 "default" => "false",
302 "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.")." ".sprintf(_("The property '%s' may be interesting too."),'developmentMode'),
303 "check" => "gosaProperty::isBool",
304 "migrate" => "",
305 "group" => "debug",
306 "mandatory" => TRUE),
308 array(
309 "name" => "developmentMode",
310 "type" => "bool",
311 "default" => "false",
312 "description" => _("The 'developmentMode' statement tells GOsa to show development related error messages, for example messages about missing ACL configuration or classes. Due to the fact that enabling this flag will result in a lot of false error messages it should only be enabled while developing or debugging plugins!"),
313 "check" => "gosaProperty::isBool",
314 "migrate" => "",
315 "group" => "debug",
316 "mandatory" => TRUE),
319 array(
320 "name" => "schemaCheck",
321 "type" => "bool",
322 "default" => "true",
323 "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."),
324 "check" => "gosaProperty::isBool",
325 "migrate" => "",
326 "group" => "debug",
327 "mandatory" => TRUE),
329 array(
330 "name" => "copyPaste",
331 "type" => "bool",
332 "default" => "false",
333 "description" => _("The 'copyPaste' statement enables copy and paste for LDAP entries managed with GOsa."),
334 "check" => "gosaProperty::isBool",
335 "migrate" => "",
336 "group" => "copyPaste",
337 "mandatory" => TRUE),
339 array(
340 "name" => "forceGlobals",
341 "type" => "noLdap",
342 "default" => "false",
343 "description" => _("The 'forceGlobals' statement enables PHP security checks to force register_global settings to be switched off."),
344 "check" => "gosaProperty::isBool",
345 "migrate" => "",
346 "group" => "security",
347 "mandatory" => TRUE),
349 array(
350 "name" => "forceSSL",
351 "type" => "noLdap",
352 "default" => "false",
353 "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://"),
354 "check" => "gosaProperty::isBool",
355 "migrate" => "",
356 "group" => "security",
357 "mandatory" => TRUE),
359 array(
360 "name" => "ldapStats",
361 "type" => "bool",
362 "default" => "false",
363 "description" => _("Logs information about triggered ldap operations, duration, filter, aso. into syslog."),
364 "check" => "gosaProperty::isBool",
365 "migrate" => "",
366 "group" => "debug",
367 "mandatory" => FALSE),
369 array(
370 "name" => "ldapFollowReferrals",
371 "type" => "bool",
372 "default" => "false",
373 "description" => _("The 'ldapFollowReferrals' statement tells GOsa to follow LDAP referrals."),
374 "check" => "gosaProperty::isBool",
375 "migrate" => "",
376 "group" => "ldap",
377 "mandatory" => TRUE),
379 array(
380 "name" => "ldapFilterNestingLimit",
381 "type" => "integer",
382 "default" => 200,
383 "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."),
384 "check" => "gosaProperty::isInteger",
385 "migrate" => "",
386 "group" => "ldap",
387 "mandatory" => TRUE),
389 array(
390 "name" => "ldapSizelimit",
391 "type" => "integer",
392 "default" => 200,
393 "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."),
394 "check" => "gosaProperty::isInteger",
395 "migrate" => "",
396 "group" => "core",
397 "mandatory" => TRUE),
399 array(
400 "name" => "ldapSizeIgnore",
401 "type" => "bool",
402 "default" => "false",
403 "description" => _("Disables sizelimit checks, only the configured amount of results will be shown!"),
404 "check" => "gosaProperty::isBool",
405 "migrate" => "",
406 "group" => "core",
407 "mandatory" => FALSE),
409 array(
410 "name" => "warnSSL",
411 "type" => "noLdap",
412 "default" => "true",
413 "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."),
414 "check" => "gosaProperty::isBool",
415 "migrate" => "",
416 "group" => "security",
417 "mandatory" => TRUE),
419 array(
420 "name" => "ppdGzip",
421 "type" => "bool",
422 "default" => "true",
423 "description" => _("The 'ppdGzip' variable enables PPD file compression."),
424 "check" => "gosaProperty::isBool",
425 "migrate" => "",
426 "group" => "ppd",
427 "mandatory" => FALSE),
430 array(
431 "name" => "ignoreAcl",
432 "type" => "dn",
433 "default" => "",
434 "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."),
435 "check" => "gosaProperty::isDN",
436 "migrate" => "",
437 "group" => "debug",
438 "mandatory" => FALSE),
441 array(
442 "name" => "ppdPath",
443 "type" => "path",
444 "default" => "/var/spool/ppd",
445 "description" => _("The 'ppdPath' variable defines where to store PPD files for the GOto environment plugins."),
446 "check" => "gosaProperty::isPath",
447 "migrate" => "",
448 "group" => "ppd",
449 "mandatory" => FALSE),
451 array(
452 "name" => "ldapMaxQueryTime",
453 "type" => "integer",
454 "default" => "",
455 "description" => _("The 'ldapMaxQueryTime' statement tells GOsa to stop LDAP actions if there is no answer within the specified number of seconds."),
456 "check" => "gosaProperty::isInteger",
457 "migrate" => "",
458 "group" => "debug",
459 "mandatory" => FALSE),
461 array(
462 "name" => "storeFilterSettings",
463 "type" => "bool",
464 "default" => "true",
465 "description" => _("The 'storeFilterSettings' statement determines whether GOsa should store filter and plugin settings inside of a cookie."),
466 "check" => "gosaProperty::isBool",
467 "migrate" => "",
468 "group" => "core",
469 "mandatory" => FALSE),
471 array(
472 "name" => "sendCompressedOutput",
473 "type" => "bool",
474 "default" => "true",
475 "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."),
476 "check" => "gosaProperty::isBool",
477 "migrate" => "",
478 "group" => "core",
479 "mandatory" => FALSE),
481 array(
482 "name" => "modificationDetectionAttribute",
483 "type" => "switch",
484 "default" => "entryCSN",
485 "defaults" => "core::getPropertyValues",
486 "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."),
487 "check" => "",
488 "migrate" => "",
489 "group" => "core",
490 "mandatory" => TRUE),
492 array(
493 "name" => "language",
494 "type" => "switch",
495 "default" => "",
496 "defaults" => "core::getPropertyValues",
497 "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."),
498 "check" => "",
499 "migrate" => "",
500 "group" => "core",
501 "mandatory" => FALSE),
503 array(
504 "name" => "theme",
505 "type" => "switch",
506 "default" => "default",
507 "defaults" => "core::getPropertyValues",
508 "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."),
509 "check" => "",
510 "migrate" => "",
511 "group" => "visual",
512 "mandatory" => TRUE),
514 array(
515 "name" => "sessionLifetime",
516 "type" => "integer",
517 "default" => 600,
518 "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."),
519 "check" => "gosaProperty::isInteger",
520 "migrate" => "",
521 "group" => "security",
522 "mandatory" => FALSE),
524 array(
525 "name" => "templateCompileDirectory",
526 "type" => "path",
527 "default" => "/var/spool/gosa",
528 "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."),
529 "check" => "gosaProperty::isWriteablePath",
530 "migrate" => "",
531 "group" => "core",
532 "mandatory" => TRUE),
534 array(
535 "name" => "debugLevel",
536 "type" => "integer",
537 "default" => 0,
538 "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"),
539 "
540 DEBUG_TRACE = 1
541 DEBUG_LDAP = 2
542 DEBUG_MYSQL = 4
543 DEBUG_SHELL = 8
544 DEBUG_POST = 16
545 DEBUG_SESSION = 32
546 DEBUG_CONFIG = 64
547 DEBUG_ACL = 128
548 DEBUG_SI = 256"),
549 "check" => "gosaProperty::isInteger",
550 "migrate" => "",
551 "group" => "debug",
552 "mandatory" => FALSE),
554 array(
555 "name" => "sambaHashHook",
556 "type" => "command",
557 "default" => "perl -MCrypt::SmbHash -e \"print join(q[:], ntlmgen \\\$ARGV[0]), $/;\"",
558 "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]), $/;\""),
559 "check" => "gosaProperty::isCommand",
560 "migrate" => "",
561 "group" => "samba",
562 "mandatory" => FALSE),
564 array(
565 "name" => "passwordDefaultHash",
566 "type" => "switch",
567 "default" => "crypt/md5",
568 "defaults" => "core::getPropertyValues",
569 "description" => _("The 'passwordDefaultHash' statement defines the default password hash to choose for new accounts."),
570 "check" => "",
571 "migrate" => "",
572 "group" => "password",
573 "mandatory" => FALSE),
574 array(
575 "name" => "strictPasswordRules",
576 "type" => "bool",
577 "default" => "true",
578 "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'."),
579 "check" => "gosaProperty::isBool",
580 "migrate" => "",
581 "group" => "password",
582 "mandatory" => FALSE),
584 array(
585 "name" => "accountPrimaryAttribute",
586 "type" => "switch",
587 "default" => "cn",
588 "defaults" => "core::getPropertyValues",
589 "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'."),
590 "check" => "",
591 "migrate" => "",
592 "group" => "security",
593 "mandatory" => TRUE),
595 array(
596 "name" => "userRDN",
597 "type" => "rdn",
598 "default" => "ou=people,",
599 "description" => _("The 'userRDN' statement defines the location where new accounts will be created inside of defined departments. The default is 'ou=people'."),
600 "check" => "gosaProperty::isRdn",
601 "migrate" => "migrate_userRDN",
602 "group" => "user",
603 "mandatory" => FALSE),
605 array(
606 "name" => "groupRDN",
607 "type" => "rdn",
608 "default" => "ou=groups,",
609 "description" => _("The 'groupsRDN' statement defines the location where new groups will be created inside of defined departments. The default is 'ou=groups'."),
610 "check" => "gosaProperty::isRdn",
611 "migrate" => "migrate_groupRDN",
612 "group" => "group",
613 "mandatory" => FALSE),
615 array(
616 "name" => "gidNumberBase",
617 "type" => "integer",
618 "default" => "1000",
619 "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."),
620 "check" => "gosaProperty::isInteger",
621 "migrate" => "",
622 "group" => "id",
623 "mandatory" => TRUE),
625 array(
626 "name" => "baseIdHook",
627 "type" => "command",
628 "default" => "",
629 "description" => _("The 'baseIdHook' statement allows to hook into the id generation method (traditional mode), to define the starting range for new generated ids"),
630 "check" => "gosaProperty::isCommand",
631 "migrate" => "",
632 "group" => "id",
633 "mandatory" => FALSE),
635 array(
636 "name" => "gidNumberPoolMin",
637 "type" => "integer",
638 "default" => 10000,
639 "description" => _("The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'."),
640 "check" => "gosaProperty::isInteger",
641 "migrate" => "",
642 "group" => "id",
643 "mandatory" => FALSE),
645 array(
646 "name" => "gidNumberPoolMax",
647 "type" => "integer",
648 "default" => 40000,
649 "description" => _("The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'."),
650 "check" => "gosaProperty::isInteger",
651 "migrate" => "",
652 "group" => "id",
653 "mandatory" => FALSE),
655 array(
656 "name" => "uidNumberPoolMin",
657 "type" => "integer",
658 "default" => 10000,
659 "description" => _("The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'."),
660 "check" => "gosaProperty::isInteger",
661 "migrate" => "",
662 "group" => "id",
663 "mandatory" => FALSE),
665 array(
666 "name" => "uidNumberPoolMax",
667 "type" => "integer",
668 "default" => 40000,
669 "description" => _("The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'."),
670 "check" => "gosaProperty::isInteger",
671 "migrate" => "",
672 "group" => "id",
673 "mandatory" => FALSE),
675 array(
676 "name" => "uidNumberBase",
677 "type" => "integer",
678 "default" => "1000",
679 "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."),
680 "check" => "gosaProperty::isInteger",
681 "migrate" => "",
682 "group" => "id",
683 "mandatory" => FALSE),
685 array(
686 "name" => "gosaRpcServer",
687 "type" => "string",
688 "default" => "",
689 "description" => "The server to use for RPC connections! (http://localhost:8080/rpc), Future GOsa-ng service! If this value is set and not empty GOsa will try to establish a connection!",
690 "check" => "",
691 "migrate" => "",
692 "group" => "rpc",
693 "mandatory" => FALSE),
695 array(
696 "name" => "gosaRpcUser",
697 "type" => "string",
698 "default" => "admin",
699 "description" => "Ther username to use for RPC connections! Future GOsa-ng service!",
700 "check" => "",
701 "migrate" => "",
702 "group" => "rpc",
703 "mandatory" => FALSE),
705 array(
706 "name" => "gosaRpcPassword",
707 "type" => "string",
708 "default" => "tester",
709 "description" => "Ther password to use for RPC connections! Future GOsa-ng service!",
710 "check" => "",
711 "migrate" => "",
712 "group" => "rpc",
713 "mandatory" => FALSE),
715 array(
716 "name" => "gosaSupportURI",
717 "type" => "string",
718 "default" => "",
719 "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"),
720 "check" => "",
721 "migrate" => "",
722 "group" => "gosa-si",
723 "mandatory" => FALSE),
725 array(
726 "name" => "gosaSupportTimeout",
727 "type" => "integer",
728 "default" => 15,
729 "description" => _("The 'gosaSupportTimeout' sets a connection timeout for all gosa-si actions. See 'gosaSupportURI' for details."),
730 "check" => "gosaProperty::isInteger",
731 "migrate" => "",
732 "group" => "gosa-si",
733 "mandatory" => FALSE),
735 array(
736 "name" => "loginAttribute",
737 "type" => "switch",
738 "default" => "uid",
739 "defaults" => "core::getPropertyValues",
740 "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'"),
741 "check" => "",
742 "migrate" => "",
743 "group" => "security",
744 "mandatory" => TRUE),
746 array(
747 "name" => "timezone",
748 "type" => "switch",
749 "default" => "",
750 "defaults" => "core::getPropertyValues",
751 "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."),
752 "check" => "",
753 "migrate" => "",
754 "group" => "core",
755 "mandatory" => FALSE),
757 array(
758 "name" => "honourUnitTags",
759 "type" => "bool",
760 "default" => "false",
761 "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."),
762 "check" => "",
763 "migrate" => "",
764 "group" => "core",
765 "mandatory" => FALSE),
767 array(
768 "name" => "useSaslForKerberos",
769 "type" => "bool",
770 "default" => "false",
771 "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."),
772 "check" => "gosaProperty::isBool",
773 "migrate" => "",
774 "group" => "password",
775 "mandatory" => FALSE),
777 array(
778 "name" => "rfc2307bis",
779 "type" => "bool",
780 "default" => "false",
781 "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"),
782 "check" => "gosaProperty::isBool",
783 "migrate" => "",
784 "group" => "core",
785 "mandatory" => FALSE),
787 array(
788 "name" => "personalTitleInDN",
789 "type" => "bool",
790 "default" => "false",
791 "description" => _("The 'personalTitleInDN' option tells GOsa to include the personal title in user DNs when #accountPrimaryAttribute' is set to \"cn\"."),
792 "check" => "gosaProperty::isBool",
793 "migrate" => "",
794 "group" => "storage location",
795 "mandatory" => FALSE),
797 array(
798 "name" => "nextIdHook",
799 "type" => "command",
800 "default" => "",
801 "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."),
802 "check" => "gosaProperty::isCommand",
803 "migrate" => "",
804 "group" => "id",
805 "mandatory" => FALSE),
807 array(
808 "name" => "idGenerator",
809 "type" => "string",
810 "default" => "{%sn}-{%givenName[2-4]}",
811 "description" => _("The 'idGenerator' statement describes an automatic way to generate new user ids. There are two basic functions supported - which can be combined:
813 a) using attributes
815 You can specify LDAP attributes (currently only sn and givenName) in
816 braces {} and add a percent sign befor it. Optionally you can strip it
817 down to a number of characters, specified in []. I.e.
819 idGenerator=\"{%sn}-{%givenName[2-4]}\"
821 will generate an ID using the full surename, adding a dash, and adding at
822 least the first two characters of givenName. If this ID is used, it'll
823 use up to four characters. If no automatic generation is possible, a
824 input box is shown.
826 b) using automatic id's
828 I.e. specifying
830 idGenerator=\"acct{id:3}\"
832 will generate a three digits id with the next free entry appended to \"acct\".
834 idGenerator=\"acct{id!1}\"
836 will generate a one digit id with the next free entry appended to \"acct\" - if needed.
838 idGenerator=\"ext{id#3}\"
840 will generate a three digits random number appended to \"ext\".
841 "),
842 "check" => "",
843 "migrate" => "",
844 "group" => "core",
845 "mandatory" => FALSE),
847 array(
848 "name" => "strictNamingRules",
849 "type" => "bool",
850 "default" => "true",
851 "description" => _("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'."),
852 "check" => "gosaProperty::isBool",
853 "migrate" => "",
854 "group" => "core",
855 "mandatory" => FALSE),
857 array(
858 "name" => "minId",
859 "type" => "integer",
860 "default" => 40,
861 "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."),
862 "check" => "gosaProperty::isInteger",
863 "migrate" => "",
864 "group" => "id",
865 "mandatory" => FALSE),
867 array(
868 "name" => "mailAttribute",
869 "type" => "switch",
870 "default" => "mail",
871 "defaults" => "core::getPropertyValues",
872 "description" => _("The 'mailAttribute' statement determines which attribute GOsa will use to create accounts. Valid values are 'mail' and 'uid'."),
873 "check" => "",
874 "migrate" => "",
875 "group" => "mail",
876 "mandatory" => FALSE),
878 array(
879 "name" => "gosaSharedPrefix",
880 "type" => "string",
881 "default" => "",
882 "description" => _("This attribute allows to override the prefix used to create shared folders."),
883 "check" => "",
884 "migrate" => "",
885 "group" => "mail",
886 "mandatory" => FALSE),
888 array(
889 "name" => "mailUserCreation",
890 "type" => "string",
891 "default" => "",
892 "description" => _("This attribute allows to override the user account creation syntax, see the 'mailFolderCreation' description for more details.
894 Examples
895 mailUserCreation=\"%prefix%%uid%\" => \"user.foobar\"
896 mailUserCreation=\"my-prefix.%uid%%domain%\" => \"my-prefix.foobar@example.com\"
897 "),
898 "check" => "",
899 "migrate" => "",
900 "group" => "mail",
901 "mandatory" => FALSE),
903 array(
904 "name" => "mailFolderCreation",
905 "type" => "string",
906 "default" => "",
907 "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.
909 To override the methods default account creation syntax, you can set the 'mailFolderCreation' option.
911 Examples
913 mailFolderCreation=\"%prefix%%cn%\" => \"shared.development\"
914 mailFolderCreation=\"my-prefix.%cn%%domain%\" => \"my-prefix.development@example.com\"
916 %prefix% The methods default prefix. (Depends on cyrusUseSlashes=FALSE/TRUE)
917 %cn% The groups/users cn.
918 %uid% The users uid.
919 %mail% The objects mail attribute.
920 %domain% The domain part of the objects mail attribute.
921 %mailpart% The user address part of the mail address.
922 %uattrib% Depends on mailAttribute=\"uid/mail\".
923 "),
924 "check" => "",
925 "migrate" => "",
926 "group" => "mail",
927 "mandatory" => FALSE),
929 array(
930 "name" => "imapTimeout",
931 "type" => "integer",
932 "default" => 10,
933 "description" => _("The 'imapTimeout' statement sets the connection timeout for imap actions."),
934 "check" => "gosaProperty::isInteger",
935 "migrate" => "",
936 "group" => "mail",
937 "mandatory" => FALSE),
939 array(
940 "name" => "mailMethod",
941 "type" => "switch",
942 "default" => "",
943 "defaults" => "core::getPropertyValues",
944 "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."),
945 "check" => "",
946 "migrate" => "",
947 "group" => "mail",
948 "mandatory" => FALSE),
950 array(
951 "name" => "cyrusUseSlashes",
952 "type" => "bool",
953 "default" => "true",
954 "description" => _("The 'cyrusUseSlashes' statement determines if GOsa should use \"foo/bar\" or \"foo.bar\" namespaces in IMAP. Unix style is with slashes."),
955 "check" => "gosaProperty::isBool",
956 "migrate" => "",
957 "group" => "mail",
958 "mandatory" => FALSE),
960 array(
961 "name" => "vacationTemplateDirectory",
962 "type" => "path",
963 "default" => "/etc/gosa/vacation",
964 "description" => _("The 'vacationTemplateDirectory' statement sets the path where GOsa will look for vacation message templates. Default is /etc/gosa/vacation.
966 Example template /etc/gosa/vacation/business.txt:
968 DESC:Away from desk
969 Hi, I'm currently away from my desk. You can contact me on
970 my cell phone via %mobile.
972 Greetings,
973 %givenName %sn
975 "),
976 "check" => "gosaProperty::isWriteablePath",
977 "migrate" => "",
978 "group" => "mail",
979 "mandatory" => FALSE),
981 array(
982 "name" => "ldapTLS",
983 "type" => "bool",
984 "default" => "false",
985 "description" => _("The 'ldapTLS' statement enables or disables TLS operating on LDAP connections."),
986 "check" => "gosaProperty::isBool",
987 "migrate" => "",
988 "group" => "security",
989 "mandatory" => TRUE),
991 array(
992 "name" => "honourIvbbAttributes",
993 "type" => "bool",
994 "default" => "false",
995 "description" => _("The 'honourIvbbAttributes' statement enables the IVBB mode inside of GOsa. You need the ivbb.schema file from used by german authorities."),
996 "check" => "gosaProperty::isBool",
997 "migrate" => "",
998 "group" => "core",
999 "mandatory" => FALSE),
1001 array(
1002 "name" => "sambaIdMapping",
1003 "type" => "bool",
1004 "default" => "false",
1005 "description" => _("The 'sambaIdMapping' statement tells GOsa to maintain sambaIdmapEntry objects. Depending on your setup this can drastically improve the windows login performance."),
1006 "check" => "gosaProperty::isBool",
1007 "migrate" => "",
1008 "group" => "samba",
1009 "mandatory" => FALSE),
1011 array(
1012 "name" => "handleExpiredAccounts",
1013 "type" => "bool",
1014 "default" => "true",
1015 "description" => _("The 'handleExpiredAccounts' statement enables shadow attribute tests during the login to the GOsa web interface and forces password renewal or account lockout."),
1016 "check" => "gosaProperty::isBool",
1017 "migrate" => "",
1018 "group" => "core",
1019 "mandatory" => FALSE),
1021 array(
1022 "name" => "sambaSID",
1023 "type" => "string",
1024 "default" => "",
1025 "description" => _("The 'sambaSID' statement defines a samba SID if not available inside of the LDAP. You can retrieve the current sid by net getlocalsid."),
1026 "check" => "",
1027 "migrate" => "",
1028 "group" => "samba",
1029 "mandatory" => FALSE),
1031 array(
1032 "name" => "sambaRidBase",
1033 "type" => "integer",
1034 "default" => "",
1035 "description" => _("The 'sambaRidBase' statement defines the base id to add to ordinary sid calculations - if not available inside of the LDAP."),
1036 "check" => "gosaProperty::isInteger",
1037 "migrate" => "",
1038 "group" => "samba",
1039 "mandatory" => FALSE),
1041 array(
1042 "name" => "enableSnapshots",
1043 "type" => "bool",
1044 "default" => "false",
1045 "description" => _("The 'enableSnapshots' statement enables a snapshot mechaism in GOsa. This enables you to save certain states of entries and restore them later on."),
1046 "check" => "gosaProperty::isBool",
1047 "migrate" => "",
1048 "group" => "snapshot",
1049 "mandatory" => TRUE),
1051 array(
1052 "name" => "snapshotBase",
1053 "type" => "dn",
1054 "default" => "ou=snapshots,dc=localhost,dc=de",
1055 "description" => _("The 'snapshotBase' statement defines the base where snapshots should be stored inside of the LDAP."),
1056 "check" => "gosaProperty::isDn",
1057 "migrate" => "",
1058 "group" => "snapshot",
1059 "mandatory" => FALSE),
1061 array(
1062 "name" => "snapshotAdminDn",
1063 "type" => "dn",
1064 "default" => "cn=admin,dc=localhost,dc=de",
1065 "description" => _("The 'snapshotAdminDn' variable defines the user which is used to authenticate when connecting to 'snapshotURI'."),
1066 "check" => "gosaProperty::isDn",
1067 "migrate" => "",
1068 "group" => "snapshot",
1069 "mandatory" => FALSE),
1071 array(
1072 "name" => "snapshotAdminPassword",
1073 "type" => "string",
1074 "default" => "secret",
1075 "description" => _("The 'snapshotAdminPassword' variable defines the credentials which are used in combination with 'snapshotAdminDn' and 'snapshotURI' in order to authenticate."),
1076 "check" => "",
1077 "migrate" => "",
1078 "group" => "snapshot",
1079 "mandatory" => FALSE),
1081 array(
1082 "name" => "idAllocationMethod",
1083 "type" => "switch",
1084 "default" => "traditional",
1085 "defaults" => "core::getPropertyValues",
1086 "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."),
1087 "check" => "",
1088 "migrate" => "",
1089 "group" => "id",
1090 "mandatory" => TRUE),
1091 array(
1092 "name" => "snapshotURI",
1093 "type" => "uri",
1094 "default" => "ldap://localhost:389",
1095 "description" => _("The 'snapshotURI' variable defines the LDAP URI for the server which is used to do object snapshots."),
1096 "check" => "",
1097 "migrate" => "",
1098 "group" => "snapshot",
1099 "mandatory" => FALSE)
1100 )));
1101 }
1102 }
1103 ?>