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 $tmp = mailMethod::get_methods();
176 $list =array();
177 foreach($tmp as $name => $value){
178 $name = preg_replace('/^mailMethod/','', $name);
179 $list[$name] = $value;
180 }
181 $list[''] = _("None");
182 break;
183 case 'language':
184 $tmp = get_languages(TRUE);
185 $list[""] = _("Automatic");
186 foreach($tmp as $key => $desc){
187 $list[$key] = $desc;
188 }
189 break;
190 case 'modificationDetectionAttribute':
191 $list = array('entryCSN' => 'entryCSN (OpenLdap)','textCSN'=>'textCSN (Sun DS)');
192 break;
193 default: echo $name." ";$list = array();
194 }
196 if(!isset($list[$value])){
197 $list[$value] = $value." ("._("User value").")";
198 }
200 return($list);
201 }
203 static function plInfo()
204 {
205 return (array(
206 "plShortName" => _("Core"),
207 "plDescription" => _("GOsa core plugin"),
208 "plSelfModify" => FALSE,
209 "plDepends" => array(),
210 "plPriority" => 0,
211 "plSection" => array("administration"),
213 "plRequirements"=> array(
214 'ldapSchema' => array(
215 'gosaObject' => '>=2.7',
216 'gosaAccount' => '>=2.7',
217 'gosaLockEntry' => '>=2.7',
218 'gosaDepartment' => '>=2.7',
219 'gosaCacheEntry' => '>=2.7',
220 'gosaProperties' => '>=2.7',
221 'gosaConfig' => '>=2.7'
222 ),
223 'onFailureDisablePlugin' => array(get_class())
224 ),
228 "plCategory" => array("all"),
229 "plProperties" => array(
231 array(
232 "name" => "htaccessAuthentication",
233 "type" => "bool",
234 "default" => "false",
235 "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."),
236 "check" => "gosaProperty::isBool",
237 "migrate" => "",
238 "group" => "authentification",
239 "mandatory" => TRUE),
241 array(
242 "name" => "statsDatabaseEnabled",
243 "type" => "bool",
244 "default" => "false",
245 "description" => _("Enables/Disables GOSa usage statistics moduls."),
246 "check" => "gosaProperty::isBool",
247 "migrate" => "",
248 "group" => "core",
249 "mandatory" => TRUE),
251 array(
252 "name" => "statsDatabaseFile",
253 "type" => "file",
254 "default" => "/var/spool/gosa/stats",
255 "description" => _("The database file for GOSa usage statistics."),
256 "check" => "gosaProperty::isWriteableFile",
257 "migrate" => "",
258 "group" => "core",
259 "mandatory" => TRUE),
261 array(
262 "name" => "logging",
263 "type" => "bool",
264 "default" => "true",
265 "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'."),
267 "check" => "gosaProperty::isBool",
268 "migrate" => "",
269 "group" => "core",
270 "mandatory" => TRUE),
272 array(
273 "name" => "listSummary",
274 "type" => "bool",
275 "default" => "true",
276 "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."),
277 "check" => "gosaProperty::isBool",
278 "migrate" => "",
279 "group" => "visual",
280 "mandatory" => FALSE),
282 array(
283 "name" => "passwordMinLength",
284 "type" => "integer",
285 "default" => "",
286 "description" => _("The 'passwordMinLength' statement determines whether a newly entered password has to be of a minimum length."),
287 "check" => "gosaProperty::isInteger",
288 "migrate" => "",
289 "group" => "password",
290 "mandatory" => FALSE),
292 array(
293 "name" => "passwordMinDiffer",
294 "type" => "integer",
295 "default" => "",
296 "description" => _("The 'passwordMinDiffer' statement determines whether a newly entered password has to be checked to have at least n different characters."),
297 "check" => "gosaProperty::isInteger",
298 "migrate" => "",
299 "group" => "password",
300 "mandatory" => FALSE),
302 array(
303 "name" => "passwordHook",
304 "type" => "command",
305 "default" => "",
306 "description" =>
307 _("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\""),
308 "check" => "gosaProperty::isCommand",
309 "migrate" => "",
310 "group" => "password",
311 "mandatory" => FALSE),
313 array(
314 "name" => "passwordProposalHook",
315 "type" => "command",
316 "default" => "",
317 "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",
318 "check" => "gosaProperty::isCommand",
319 "migrate" => "",
320 "group" => "password",
321 "mandatory" => FALSE),
323 array(
324 "name" => "displayErrors",
325 "type" => "bool",
326 "default" => "false",
327 "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'),
328 "check" => "gosaProperty::isBool",
329 "migrate" => "",
330 "group" => "debug",
331 "mandatory" => TRUE),
333 array(
334 "name" => "developmentMode",
335 "type" => "bool",
336 "default" => "false",
337 "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!"),
338 "check" => "gosaProperty::isBool",
339 "migrate" => "",
340 "group" => "debug",
341 "mandatory" => TRUE),
344 array(
345 "name" => "schemaCheck",
346 "type" => "bool",
347 "default" => "true",
348 "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."),
349 "check" => "gosaProperty::isBool",
350 "migrate" => "",
351 "group" => "debug",
352 "mandatory" => TRUE),
354 array(
355 "name" => "copyPaste",
356 "type" => "bool",
357 "default" => "false",
358 "description" => _("The 'copyPaste' statement enables copy and paste for LDAP entries managed with GOsa."),
359 "check" => "gosaProperty::isBool",
360 "migrate" => "",
361 "group" => "copyPaste",
362 "mandatory" => TRUE),
364 array(
365 "name" => "forceGlobals",
366 "type" => "noLdap",
367 "default" => "false",
368 "description" => _("The 'forceGlobals' statement enables PHP security checks to force register_global settings to be switched off."),
369 "check" => "gosaProperty::isBool",
370 "migrate" => "",
371 "group" => "security",
372 "mandatory" => TRUE),
374 array(
375 "name" => "forceSSL",
376 "type" => "noLdap",
377 "default" => "false",
378 "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://"),
379 "check" => "gosaProperty::isBool",
380 "migrate" => "",
381 "group" => "security",
382 "mandatory" => TRUE),
384 array(
385 "name" => "ldapStats",
386 "type" => "bool",
387 "default" => "false",
388 "description" => _("Logs information about triggered ldap operations, duration, filter, aso. into syslog."),
389 "check" => "gosaProperty::isBool",
390 "migrate" => "",
391 "group" => "debug",
392 "mandatory" => FALSE),
394 array(
395 "name" => "ldapFollowReferrals",
396 "type" => "bool",
397 "default" => "false",
398 "description" => _("The 'ldapFollowReferrals' statement tells GOsa to follow LDAP referrals."),
399 "check" => "gosaProperty::isBool",
400 "migrate" => "",
401 "group" => "ldap",
402 "mandatory" => TRUE),
404 array(
405 "name" => "ldapFilterNestingLimit",
406 "type" => "integer",
407 "default" => 200,
408 "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."),
409 "check" => "gosaProperty::isInteger",
410 "migrate" => "",
411 "group" => "ldap",
412 "mandatory" => TRUE),
414 array(
415 "name" => "ldapSizelimit",
416 "type" => "integer",
417 "default" => 200,
418 "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."),
419 "check" => "gosaProperty::isInteger",
420 "migrate" => "",
421 "group" => "core",
422 "mandatory" => TRUE),
424 array(
425 "name" => "ldapSizeIgnore",
426 "type" => "bool",
427 "default" => "false",
428 "description" => _("Disables sizelimit checks, only the configured amount of results will be shown!"),
429 "check" => "gosaProperty::isBool",
430 "migrate" => "",
431 "group" => "core",
432 "mandatory" => FALSE),
434 array(
435 "name" => "warnSSL",
436 "type" => "noLdap",
437 "default" => "true",
438 "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."),
439 "check" => "gosaProperty::isBool",
440 "migrate" => "",
441 "group" => "security",
442 "mandatory" => TRUE),
444 array(
445 "name" => "ppdGzip",
446 "type" => "bool",
447 "default" => "true",
448 "description" => _("The 'ppdGzip' variable enables PPD file compression."),
449 "check" => "gosaProperty::isBool",
450 "migrate" => "",
451 "group" => "ppd",
452 "mandatory" => FALSE),
455 array(
456 "name" => "ignoreAcl",
457 "type" => "dn",
458 "default" => "",
459 "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."),
460 "check" => "gosaProperty::isDN",
461 "migrate" => "",
462 "group" => "debug",
463 "mandatory" => FALSE),
466 array(
467 "name" => "ppdPath",
468 "type" => "path",
469 "default" => "/var/spool/ppd",
470 "description" => _("The 'ppdPath' variable defines where to store PPD files for the GOto environment plugins."),
471 "check" => "gosaProperty::isPath",
472 "migrate" => "",
473 "group" => "ppd",
474 "mandatory" => FALSE),
476 array(
477 "name" => "ldapMaxQueryTime",
478 "type" => "integer",
479 "default" => "",
480 "description" => _("The 'ldapMaxQueryTime' statement tells GOsa to stop LDAP actions if there is no answer within the specified number of seconds."),
481 "check" => "gosaProperty::isInteger",
482 "migrate" => "",
483 "group" => "debug",
484 "mandatory" => FALSE),
486 array(
487 "name" => "storeFilterSettings",
488 "type" => "bool",
489 "default" => "true",
490 "description" => _("The 'storeFilterSettings' statement determines whether GOsa should store filter and plugin settings inside of a cookie."),
491 "check" => "gosaProperty::isBool",
492 "migrate" => "",
493 "group" => "core",
494 "mandatory" => FALSE),
496 array(
497 "name" => "sendCompressedOutput",
498 "type" => "bool",
499 "default" => "true",
500 "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."),
501 "check" => "gosaProperty::isBool",
502 "migrate" => "",
503 "group" => "core",
504 "mandatory" => FALSE),
506 array(
507 "name" => "modificationDetectionAttribute",
508 "type" => "switch",
509 "default" => "entryCSN",
510 "defaults" => "core::getPropertyValues",
511 "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."),
512 "check" => "",
513 "migrate" => "",
514 "group" => "core",
515 "mandatory" => TRUE),
517 array(
518 "name" => "language",
519 "type" => "switch",
520 "default" => "",
521 "defaults" => "core::getPropertyValues",
522 "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."),
523 "check" => "",
524 "migrate" => "",
525 "group" => "core",
526 "mandatory" => FALSE),
528 array(
529 "name" => "theme",
530 "type" => "switch",
531 "default" => "default",
532 "defaults" => "core::getPropertyValues",
533 "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."),
534 "check" => "",
535 "migrate" => "",
536 "group" => "visual",
537 "mandatory" => TRUE),
539 array(
540 "name" => "sessionLifetime",
541 "type" => "integer",
542 "default" => 600,
543 "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."),
544 "check" => "gosaProperty::isInteger",
545 "migrate" => "",
546 "group" => "security",
547 "mandatory" => FALSE),
549 array(
550 "name" => "templateCompileDirectory",
551 "type" => "path",
552 "default" => "/var/spool/gosa",
553 "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."),
554 "check" => "gosaProperty::isWriteablePath",
555 "migrate" => "",
556 "group" => "core",
557 "mandatory" => TRUE),
559 array(
560 "name" => "debugLevel",
561 "type" => "integer",
562 "default" => 0,
563 "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"),
564 "
565 DEBUG_TRACE = 1
566 DEBUG_LDAP = 2
567 DEBUG_MYSQL = 4
568 DEBUG_SHELL = 8
569 DEBUG_POST = 16
570 DEBUG_SESSION = 32
571 DEBUG_CONFIG = 64
572 DEBUG_ACL = 128
573 DEBUG_SI = 256"),
574 "check" => "gosaProperty::isInteger",
575 "migrate" => "",
576 "group" => "debug",
577 "mandatory" => FALSE),
579 array(
580 "name" => "sambaHashHook",
581 "type" => "command",
582 "default" => "perl -MCrypt::SmbHash -e \"print join(q[:], ntlmgen \\\$ARGV[0]), $/;\"",
583 "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]), $/;\""),
584 "check" => "gosaProperty::isCommand",
585 "migrate" => "",
586 "group" => "samba",
587 "mandatory" => FALSE),
589 array(
590 "name" => "passwordDefaultHash",
591 "type" => "switch",
592 "default" => "crypt/md5",
593 "defaults" => "core::getPropertyValues",
594 "description" => _("The 'passwordDefaultHash' statement defines the default password hash to choose for new accounts."),
595 "check" => "",
596 "migrate" => "",
597 "group" => "password",
598 "mandatory" => FALSE),
599 array(
600 "name" => "strictPasswordRules",
601 "type" => "bool",
602 "default" => "true",
603 "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'."),
604 "check" => "gosaProperty::isBool",
605 "migrate" => "",
606 "group" => "password",
607 "mandatory" => FALSE),
609 array(
610 "name" => "accountPrimaryAttribute",
611 "type" => "switch",
612 "default" => "cn",
613 "defaults" => "core::getPropertyValues",
614 "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'."),
615 "check" => "",
616 "migrate" => "",
617 "group" => "security",
618 "mandatory" => TRUE),
620 array(
621 "name" => "userRDN",
622 "type" => "rdn",
623 "default" => "ou=people,",
624 "description" => _("The 'userRDN' statement defines the location where new accounts will be created inside of defined departments. The default is 'ou=people'."),
625 "check" => "gosaProperty::isRdn",
626 "migrate" => "migrate_userRDN",
627 "group" => "user",
628 "mandatory" => FALSE),
630 array(
631 "name" => "groupRDN",
632 "type" => "rdn",
633 "default" => "ou=groups,",
634 "description" => _("The 'groupsRDN' statement defines the location where new groups will be created inside of defined departments. The default is 'ou=groups'."),
635 "check" => "gosaProperty::isRdn",
636 "migrate" => "migrate_groupRDN",
637 "group" => "group",
638 "mandatory" => FALSE),
640 array(
641 "name" => "gidNumberBase",
642 "type" => "integer",
643 "default" => "1000",
644 "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."),
645 "check" => "gosaProperty::isInteger",
646 "migrate" => "",
647 "group" => "id",
648 "mandatory" => TRUE),
650 array(
651 "name" => "baseIdHook",
652 "type" => "command",
653 "default" => "",
654 "description" => _("The 'baseIdHook' statement allows to hook into the id generation method (traditional mode), to define the starting range for new generated ids"),
655 "check" => "gosaProperty::isCommand",
656 "migrate" => "",
657 "group" => "id",
658 "mandatory" => FALSE),
660 array(
661 "name" => "gidNumberPoolMin",
662 "type" => "integer",
663 "default" => 10000,
664 "description" => _("The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'."),
665 "check" => "gosaProperty::isInteger",
666 "migrate" => "",
667 "group" => "id",
668 "mandatory" => FALSE),
670 array(
671 "name" => "gidNumberPoolMax",
672 "type" => "integer",
673 "default" => 40000,
674 "description" => _("The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'."),
675 "check" => "gosaProperty::isInteger",
676 "migrate" => "",
677 "group" => "id",
678 "mandatory" => FALSE),
680 array(
681 "name" => "uidNumberPoolMin",
682 "type" => "integer",
683 "default" => 10000,
684 "description" => _("The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'."),
685 "check" => "gosaProperty::isInteger",
686 "migrate" => "",
687 "group" => "id",
688 "mandatory" => FALSE),
690 array(
691 "name" => "uidNumberPoolMax",
692 "type" => "integer",
693 "default" => 40000,
694 "description" => _("The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'."),
695 "check" => "gosaProperty::isInteger",
696 "migrate" => "",
697 "group" => "id",
698 "mandatory" => FALSE),
700 array(
701 "name" => "uidNumberBase",
702 "type" => "integer",
703 "default" => "1000",
704 "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."),
705 "check" => "gosaProperty::isInteger",
706 "migrate" => "",
707 "group" => "id",
708 "mandatory" => FALSE),
710 array(
711 "name" => "gosaRpcServer",
712 "type" => "string",
713 "default" => "",
714 "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!",
715 "check" => "",
716 "migrate" => "",
717 "group" => "rpc",
718 "mandatory" => FALSE),
720 array(
721 "name" => "gosaRpcUser",
722 "type" => "string",
723 "default" => "admin",
724 "description" => "Ther username to use for RPC connections! Future GOsa-ng service!",
725 "check" => "",
726 "migrate" => "",
727 "group" => "rpc",
728 "mandatory" => FALSE),
730 array(
731 "name" => "gosaRpcPassword",
732 "type" => "string",
733 "default" => "tester",
734 "description" => "Ther password to use for RPC connections! Future GOsa-ng service!",
735 "check" => "",
736 "migrate" => "",
737 "group" => "rpc",
738 "mandatory" => FALSE),
740 array(
741 "name" => "gosaSupportURI",
742 "type" => "string",
743 "default" => "",
744 "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"),
745 "check" => "",
746 "migrate" => "",
747 "group" => "gosa-si",
748 "mandatory" => FALSE),
750 array(
751 "name" => "gosaSupportTimeout",
752 "type" => "integer",
753 "default" => 15,
754 "description" => _("The 'gosaSupportTimeout' sets a connection timeout for all gosa-si actions. See 'gosaSupportURI' for details."),
755 "check" => "gosaProperty::isInteger",
756 "migrate" => "",
757 "group" => "gosa-si",
758 "mandatory" => FALSE),
760 array(
761 "name" => "loginAttribute",
762 "type" => "switch",
763 "default" => "uid",
764 "defaults" => "core::getPropertyValues",
765 "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'"),
766 "check" => "",
767 "migrate" => "",
768 "group" => "security",
769 "mandatory" => TRUE),
771 array(
772 "name" => "timezone",
773 "type" => "switch",
774 "default" => "",
775 "defaults" => "core::getPropertyValues",
776 "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."),
777 "check" => "",
778 "migrate" => "",
779 "group" => "core",
780 "mandatory" => FALSE),
782 array(
783 "name" => "honourUnitTags",
784 "type" => "bool",
785 "default" => "false",
786 "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."),
787 "check" => "",
788 "migrate" => "",
789 "group" => "core",
790 "mandatory" => FALSE),
792 array(
793 "name" => "useSaslForKerberos",
794 "type" => "bool",
795 "default" => "false",
796 "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."),
797 "check" => "gosaProperty::isBool",
798 "migrate" => "",
799 "group" => "password",
800 "mandatory" => FALSE),
802 array(
803 "name" => "rfc2307bis",
804 "type" => "bool",
805 "default" => "false",
806 "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"),
807 "check" => "gosaProperty::isBool",
808 "migrate" => "",
809 "group" => "core",
810 "mandatory" => FALSE),
812 array(
813 "name" => "personalTitleInDN",
814 "type" => "bool",
815 "default" => "false",
816 "description" => _("The 'personalTitleInDN' option tells GOsa to include the personal title in user DNs when #accountPrimaryAttribute' is set to \"cn\"."),
817 "check" => "gosaProperty::isBool",
818 "migrate" => "",
819 "group" => "storage location",
820 "mandatory" => FALSE),
822 array(
823 "name" => "nextIdHook",
824 "type" => "command",
825 "default" => "",
826 "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."),
827 "check" => "gosaProperty::isCommand",
828 "migrate" => "",
829 "group" => "id",
830 "mandatory" => FALSE),
832 array(
833 "name" => "idGenerator",
834 "type" => "string",
835 "default" => "{%sn}-{%givenName[2-4]}",
836 "description" => _("The 'idGenerator' statement describes an automatic way to generate new user ids. There are two basic functions supported - which can be combined:
838 a) using attributes
840 You can specify LDAP attributes (currently only sn and givenName) in
841 braces {} and add a percent sign befor it. Optionally you can strip it
842 down to a number of characters, specified in []. I.e.
844 idGenerator=\"{%sn}-{%givenName[2-4]}\"
846 will generate an ID using the full surename, adding a dash, and adding at
847 least the first two characters of givenName. If this ID is used, it'll
848 use up to four characters. If no automatic generation is possible, a
849 input box is shown.
851 b) using automatic id's
853 I.e. specifying
855 idGenerator=\"acct{id:3}\"
857 will generate a three digits id with the next free entry appended to \"acct\".
859 idGenerator=\"acct{id!1}\"
861 will generate a one digit id with the next free entry appended to \"acct\" - if needed.
863 idGenerator=\"ext{id#3}\"
865 will generate a three digits random number appended to \"ext\".
866 "),
867 "check" => "",
868 "migrate" => "",
869 "group" => "core",
870 "mandatory" => FALSE),
872 array(
873 "name" => "strictNamingRules",
874 "type" => "bool",
875 "default" => "true",
876 "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'."),
877 "check" => "gosaProperty::isBool",
878 "migrate" => "",
879 "group" => "core",
880 "mandatory" => FALSE),
882 array(
883 "name" => "minId",
884 "type" => "integer",
885 "default" => 40,
886 "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."),
887 "check" => "gosaProperty::isInteger",
888 "migrate" => "",
889 "group" => "id",
890 "mandatory" => FALSE),
892 array(
893 "name" => "mailAttribute",
894 "type" => "switch",
895 "default" => "mail",
896 "defaults" => "core::getPropertyValues",
897 "description" => _("The 'mailAttribute' statement determines which attribute GOsa will use to create accounts. Valid values are 'mail' and 'uid'."),
898 "check" => "",
899 "migrate" => "",
900 "group" => "mail",
901 "mandatory" => FALSE),
903 array(
904 "name" => "gosaSharedPrefix",
905 "type" => "string",
906 "default" => "",
907 "description" => _("This attribute allows to override the prefix used to create shared folders."),
908 "check" => "",
909 "migrate" => "",
910 "group" => "mail",
911 "mandatory" => FALSE),
913 array(
914 "name" => "mailUserCreation",
915 "type" => "string",
916 "default" => "",
917 "description" => _("This attribute allows to override the user account creation syntax, see the 'mailFolderCreation' description for more details.
919 Examples
920 mailUserCreation=\"%prefix%%uid%\" => \"user.foobar\"
921 mailUserCreation=\"my-prefix.%uid%%domain%\" => \"my-prefix.foobar@example.com\"
922 "),
923 "check" => "",
924 "migrate" => "",
925 "group" => "mail",
926 "mandatory" => FALSE),
928 array(
929 "name" => "mailFolderCreation",
930 "type" => "string",
931 "default" => "",
932 "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.
934 To override the methods default account creation syntax, you can set the 'mailFolderCreation' option.
936 Examples
938 mailFolderCreation=\"%prefix%%cn%\" => \"shared.development\"
939 mailFolderCreation=\"my-prefix.%cn%%domain%\" => \"my-prefix.development@example.com\"
941 %prefix% The methods default prefix. (Depends on cyrusUseSlashes=FALSE/TRUE)
942 %cn% The groups/users cn.
943 %uid% The users uid.
944 %mail% The objects mail attribute.
945 %domain% The domain part of the objects mail attribute.
946 %mailpart% The user address part of the mail address.
947 %uattrib% Depends on mailAttribute=\"uid/mail\".
948 "),
949 "check" => "",
950 "migrate" => "",
951 "group" => "mail",
952 "mandatory" => FALSE),
954 array(
955 "name" => "imapTimeout",
956 "type" => "integer",
957 "default" => 10,
958 "description" => _("The 'imapTimeout' statement sets the connection timeout for imap actions."),
959 "check" => "gosaProperty::isInteger",
960 "migrate" => "",
961 "group" => "mail",
962 "mandatory" => FALSE),
964 array(
965 "name" => "mailMethod",
966 "type" => "switch",
967 "default" => "",
968 "defaults" => "core::getPropertyValues",
969 "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."),
970 "check" => "",
971 "migrate" => "",
972 "group" => "mail",
973 "mandatory" => FALSE),
975 array(
976 "name" => "cyrusUseSlashes",
977 "type" => "bool",
978 "default" => "true",
979 "description" => _("The 'cyrusUseSlashes' statement determines if GOsa should use \"foo/bar\" or \"foo.bar\" namespaces in IMAP. Unix style is with slashes."),
980 "check" => "gosaProperty::isBool",
981 "migrate" => "",
982 "group" => "mail",
983 "mandatory" => FALSE),
985 array(
986 "name" => "vacationTemplateDirectory",
987 "type" => "path",
988 "default" => "/etc/gosa/vacation",
989 "description" => _("The 'vacationTemplateDirectory' statement sets the path where GOsa will look for vacation message templates. Default is /etc/gosa/vacation.
991 Example template /etc/gosa/vacation/business.txt:
993 DESC:Away from desk
994 Hi, I'm currently away from my desk. You can contact me on
995 my cell phone via %mobile.
997 Greetings,
998 %givenName %sn
1000 "),
1001 "check" => "gosaProperty::isWriteablePath",
1002 "migrate" => "",
1003 "group" => "mail",
1004 "mandatory" => FALSE),
1006 array(
1007 "name" => "ldapTLS",
1008 "type" => "bool",
1009 "default" => "false",
1010 "description" => _("The 'ldapTLS' statement enables or disables TLS operating on LDAP connections."),
1011 "check" => "gosaProperty::isBool",
1012 "migrate" => "",
1013 "group" => "security",
1014 "mandatory" => TRUE),
1016 array(
1017 "name" => "honourIvbbAttributes",
1018 "type" => "bool",
1019 "default" => "false",
1020 "description" => _("The 'honourIvbbAttributes' statement enables the IVBB mode inside of GOsa. You need the ivbb.schema file from used by german authorities."),
1021 "check" => "gosaProperty::isBool",
1022 "migrate" => "",
1023 "group" => "core",
1024 "mandatory" => FALSE),
1026 array(
1027 "name" => "sambaIdMapping",
1028 "type" => "bool",
1029 "default" => "false",
1030 "description" => _("The 'sambaIdMapping' statement tells GOsa to maintain sambaIdmapEntry objects. Depending on your setup this can drastically improve the windows login performance."),
1031 "check" => "gosaProperty::isBool",
1032 "migrate" => "",
1033 "group" => "samba",
1034 "mandatory" => FALSE),
1036 array(
1037 "name" => "handleExpiredAccounts",
1038 "type" => "bool",
1039 "default" => "true",
1040 "description" => _("The 'handleExpiredAccounts' statement enables shadow attribute tests during the login to the GOsa web interface and forces password renewal or account lockout."),
1041 "check" => "gosaProperty::isBool",
1042 "migrate" => "",
1043 "group" => "core",
1044 "mandatory" => FALSE),
1046 array(
1047 "name" => "sambaSID",
1048 "type" => "string",
1049 "default" => "",
1050 "description" => _("The 'sambaSID' statement defines a samba SID if not available inside of the LDAP. You can retrieve the current sid by net getlocalsid."),
1051 "check" => "",
1052 "migrate" => "",
1053 "group" => "samba",
1054 "mandatory" => FALSE),
1056 array(
1057 "name" => "sambaRidBase",
1058 "type" => "integer",
1059 "default" => "",
1060 "description" => _("The 'sambaRidBase' statement defines the base id to add to ordinary sid calculations - if not available inside of the LDAP."),
1061 "check" => "gosaProperty::isInteger",
1062 "migrate" => "",
1063 "group" => "samba",
1064 "mandatory" => FALSE),
1066 array(
1067 "name" => "enableSnapshots",
1068 "type" => "bool",
1069 "default" => "false",
1070 "description" => _("The 'enableSnapshots' statement enables a snapshot mechaism in GOsa. This enables you to save certain states of entries and restore them later on."),
1071 "check" => "gosaProperty::isBool",
1072 "migrate" => "",
1073 "group" => "snapshot",
1074 "mandatory" => TRUE),
1076 array(
1077 "name" => "snapshotBase",
1078 "type" => "dn",
1079 "default" => "ou=snapshots,dc=localhost,dc=de",
1080 "description" => _("The 'snapshotBase' statement defines the base where snapshots should be stored inside of the LDAP."),
1081 "check" => "gosaProperty::isDn",
1082 "migrate" => "",
1083 "group" => "snapshot",
1084 "mandatory" => FALSE),
1086 array(
1087 "name" => "snapshotAdminDn",
1088 "type" => "dn",
1089 "default" => "cn=admin,dc=localhost,dc=de",
1090 "description" => _("The 'snapshotAdminDn' variable defines the user which is used to authenticate when connecting to 'snapshotURI'."),
1091 "check" => "gosaProperty::isDn",
1092 "migrate" => "",
1093 "group" => "snapshot",
1094 "mandatory" => FALSE),
1096 array(
1097 "name" => "snapshotAdminPassword",
1098 "type" => "string",
1099 "default" => "secret",
1100 "description" => _("The 'snapshotAdminPassword' variable defines the credentials which are used in combination with 'snapshotAdminDn' and 'snapshotURI' in order to authenticate."),
1101 "check" => "",
1102 "migrate" => "",
1103 "group" => "snapshot",
1104 "mandatory" => FALSE),
1106 array(
1107 "name" => "idAllocationMethod",
1108 "type" => "switch",
1109 "default" => "traditional",
1110 "defaults" => "core::getPropertyValues",
1111 "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."),
1112 "check" => "",
1113 "migrate" => "",
1114 "group" => "id",
1115 "mandatory" => TRUE),
1116 array(
1117 "name" => "snapshotURI",
1118 "type" => "uri",
1119 "default" => "ldap://localhost:389",
1120 "description" => _("The 'snapshotURI' variable defines the LDAP URI for the server which is used to do object snapshots."),
1121 "check" => "",
1122 "migrate" => "",
1123 "group" => "snapshot",
1124 "mandatory" => FALSE)
1125 )));
1126 }
1127 }
1128 ?>