Code

Made theme selectable
[gosa.git] / gosa-core / include / class_core.inc
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" => '*&nbsp;'._("All"))),
15                     "plProvidedAcls"    => array())
16                );
17     }
18 }
20 class core extends plugin {
22     static function getPropertyValues($class,$name,$value,$type)
23     {
24         $list = array();
25         switch($name){
26             case 'idAllocationMethod':
27                 $list = array('traditional' => _('Traditional'), 'pool' => _('Use samba pool'));
28                 break;
29             case 'passwordDefaultHash':
30                 $tmp = passwordMethod::get_available_methods();
31                 foreach($tmp['name'] as $id => $method){
32                     $desc = $tmp[$id]['name'];
33                     $list[$method] = $desc;
34                 }
35                 break;
36             case 'theme':
37                 $cmd = "cd ../ihtml/themes; find . -name 'img.styles' | sed s/'^[^\/]*\/\([^\/]*\).*'/'\\1'/g";
38                 $res = `$cmd`;
39                 foreach(preg_split("/\n/",$res) as $entry){
40                     $list[$entry] = $entry;
41                 }
42                 break;
43             case 'accountPrimaryAttribute':
44                 $list = array('uid' => 'uid', 'cn' => 'cn');
45                 break;
46             case 'loginAttribute':
47                 $list = array(
48                             'uid' => 'uid',
49                             'mail' => 'mail',
50                             'both' => 'uid & mail');
51                 break;
52             case 'timezone': 
53                 $tmp = timezone::_get_tz_zones();
54                 foreach($tmp['TIMEZONES'] as $name => $offset){
55                     if($offset >= 0){
56                         $list[$name] = $name." ( + ".sprintf("%0.2f",$offset/(60*60))." "._("hours").")";
57                     }else{
58                         $offset = $offset * -1;
59                         $list[$name] = $name." ( - ".sprintf("%0.2f",($offset/(60*60)))." "._("hours").")";
60                     }
61                 }
62                 break;
63             case 'mailAttribute':
64                 $list = array('mail' => 'mail','uid' => 'uid');
65                 break;
66             case 'mailMethod': 
67                 $list = mailMethod::get_methods();
68                 $list[''] = _("None");
69                 break;
70             case 'language':
71                 $tmp = get_languages(TRUE);
72                 $list[""] = _("Automatic");
73                 foreach($tmp as $key => $desc){
74                     $list[$key] = $desc;
75                 }
76                 break;
77             case 'modificationDetectionAttribute': 
78                 $list = array('entryCSN' => 'entryCSN (OpenLdap)','textCSN'=>'textCSN (Sun DS)');
79                 break;
80             default: echo $name." ";$list = array();
81         }
83         if(!isset($list[$value])){
84             $list[$value] = $value." ("._("User value").")";
85         }
87         return($list);
88     }
90     static function plInfo()
91     {
92         return (array(
93                     "plShortName" => _("Core"),
94                     "plDescription" => _("GOsa core plugin"),
95                     "plSelfModify"  => FALSE,
96                     "plDepends"     => array(),
97                     "plPriority"    => 0,
98                     "plSection"     => array("administration"),
99                     "plCategory"    => array("all"),
100                     "plProperties"  => array(
102                         array(
103                             "name"          => "htaccessAuthentication",
104                             "type"          => "bool",
105                             "default"       => "false",
106                             "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."),
107                             "check"         => "gosaProperty::isBool",
108                             "migrate"       => "",
109                             "group"         => "authentification",
110                             "mandatory"     => TRUE),
112                         array(
113                             "name"          => "logging",
114                             "type"          => "bool",
115                             "default"       => "true",
116                             "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'."),
118                             "check"         => "gosaProperty::isBool",
119                             "migrate"       => "",
120                             "group"         => "core",
121                             "mandatory"     => TRUE),
123                         array(
124                                 "name"          => "listSummary",
125                                 "type"          => "bool",
126                                 "default"       => "true",
127                                 "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."),
128                                 "check"         => "gosaProperty::isBool",
129                                 "migrate"       => "",
130                                 "group"         => "visual",
131                                 "mandatory"     => FALSE),
133                         array(
134                                 "name"          => "passwordMinLength",
135                                 "type"          => "integer",
136                                 "default"       => "",
137                                 "description"   => _("The 'passwordMinLength' statement determines whether a newly entered password has to be of a minimum length."),
138                                 "check"         => "gosaProperty::isInteger",
139                                 "migrate"       => "",
140                                 "group"         => "password",
141                                 "mandatory"     => FALSE),
143                         array(
144                                 "name"          => "passwordMinDiffer",
145                                 "type"          => "integer",
146                                 "default"       => "",
147                                 "description"   => _("The 'passwordMinDiffer' statement determines whether a newly entered password has to be checked to have at least n different characters."),
148                                 "check"         => "gosaProperty::isInteger",
149                                 "migrate"       => "",
150                                 "group"         => "password",
151                                 "mandatory"     => FALSE),
153                         array(
154                                 "name"          => "passwordHook",
155                                 "type"          => "command",
156                                 "default"       => "",
157                                 "description"   => 
158                                 _("The 'passwordHook' can specify an external script to handle password settings at some other location besides the LDAP.")."&nbsp;".sprintf(_("It will be called this way: %s"),"/path/to/your/script \"username\" \"oldpassword\" \"newpassword\""),
159                         "check"         => "gosaProperty::isCommand",
160                                 "migrate"       => "",
161                                 "group"         => "password",
162                                 "mandatory"     => FALSE),
164                         array(
165                                 "name"          => "displayErrors",
166                                 "type"          => "bool",
167                                 "default"       => "false",
168                                 "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'),
169                                 "check"         => "gosaProperty::isBool",
170                                 "migrate"       => "",
171                                 "group"         => "debug",
172                                 "mandatory"     => TRUE),
174                         array(
175                                 "name"          => "developmentMode",
176                                 "type"          => "bool",
177                                 "default"       => "false",
178                                 "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!"),
179                                 "check"         => "gosaProperty::isBool",
180                                 "migrate"       => "",
181                                 "group"         => "debug",
182                                 "mandatory"     => TRUE),
185                         array(
186                                 "name"          => "schemaCheck",
187                                 "type"          => "bool",
188                                 "default"       => "true",
189                                 "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.",
190                                 "check"         => "gosaProperty::isBool",
191                                 "migrate"       => "",
192                                 "group"         => "debug",
193                                 "mandatory"     => TRUE),
195                         array(
196                                 "name"          => "copyPaste",
197                                 "type"          => "bool",
198                                 "default"       => "false",
199                                 "description"   => "The 'copyPaste' statement enables copy and paste for LDAP entries managed with GOsa.",
200                                 "check"         => "gosaProperty::isBool",
201                                 "migrate"       => "",
202                                 "group"         => "copyPaste",
203                                 "mandatory"     => TRUE),
205                         array(
206                                 "name"          => "forceGlobals",
207                                 "type"          => "bool",
208                                 "default"       => "false",
209                                 "description"   => "The 'forceGlobals' statement enables PHP security checks to force register_global settings to be switched off.",
210                                 "check"         => "gosaProperty::isBool",
211                                 "migrate"       => "",
212                                 "group"         => "security",
213                                 "mandatory"     => TRUE),
215                         array(
216                                 "name"          => "forceSSL",
217                                 "type"          => "bool",
218                                 "default"       => "false",
219                                 "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://",
220                                 "check"         => "gosaProperty::isBool",
221                                 "migrate"       => "",
222                                 "group"         => "security",
223                                 "mandatory"     => TRUE),
225                         array(
226                                 "name"          => "ldapStats",
227                                 "type"          => "bool",
228                                 "default"       => "false",
229                                 "description"   => _("Logs information about triggered ldap operations, duration, filter, aso. into syslog."),
230                                 "check"         => "gosaProperty::isBool",
231                                 "migrate"       => "",
232                                 "group"         => "debug",
233                                 "mandatory"     => FALSE),
235                         array(
236                                 "name"          => "ldapFollowReferrals",
237                                 "type"          => "bool",
238                                 "default"       => "false",
239                                 "description"   => _("The 'ldapFollowReferrals' statement tells GOsa to follow LDAP referrals."),
240                                 "check"         => "gosaProperty::isBool",
241                                 "migrate"       => "",
242                                 "group"         => "ldap",
243                                 "mandatory"     => TRUE),
245                         array(
246                                 "name"          => "ldapFilterNestingLimit",
247                                 "type"          => "integer",
248                                 "default"       => 200,
249                                 "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."),
250                                 "check"         => "gosaProperty::isInteger",
251                                 "migrate"       => "",
252                                 "group"         => "ldap",
253                                 "mandatory"     => TRUE),
255                         array(
256                                 "name"          => "ldapSizelimit",
257                                 "type"          => "integer",
258                                 "default"       => 200,
259                                 "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."), 
260                                 "check"         => "gosaProperty::isInteger",
261                                 "migrate"       => "",
262                                 "group"         => "core",
263                                 "mandatory"     => TRUE),
265                         array(
266                                 "name"          => "ldapSizeIgnore",
267                                 "type"          => "bool",
268                                 "default"       => "false",
269                                 "description"   => _("Disables sizelimit checks, only the configured amount of results will be shown!"),
270                                 "check"         => "gosaProperty::isBool",
271                                 "migrate"       => "",
272                                 "group"         => "core",
273                                 "mandatory"     => FALSE),
275                         array(
276                                 "name"          => "warnSSL",
277                                 "type"          => "bool",
278                                 "default"       => "true",
279                                 "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.",
280                                 "check"         => "gosaProperty::isBool",
281                                 "migrate"       => "",
282                                 "group"         => "security",
283                                 "mandatory"     => TRUE),
285                         array(
286                                 "name"          => "ppdGzip",
287                                 "type"          => "bool",
288                                 "default"       => "true",
289                                 "description"   => "The 'ppdGzip' variable enables PPD file compression.",
290                                 "check"         => "gosaProperty::isBool",
291                                 "migrate"       => "",
292                                 "group"         => "ppd",
293                                 "mandatory"     => FALSE),
296                         array(
297                                 "name"          => "ignoreAcl",
298                                 "type"          => "dn",
299                                 "default"       => "",
300                                 "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.",
301                                 "check"         => "gosaProperty::isDN",
302                                 "migrate"       => "",
303                                 "group"         => "debug",
304                                 "mandatory"     => FALSE),
307                         array(
308                                 "name"          => "ppdPath",
309                                 "type"          => "path",
310                                 "default"       => "/var/spool/ppd",
311                                 "description"   => "The 'ppdPath' variable defines where to store PPD files for the GOto environment plugins.",
312                                 "check"         => "gosaProperty::isPath",
313                                 "migrate"       => "",
314                                 "group"         => "ppd",
315                                 "mandatory"     => FALSE),
317                         array(
318                                 "name"          => "ldapMaxQueryTime",
319                                 "type"          => "integer",
320                                 "default"       => "",
321                                 "description"   => "The 'ldapMaxQueryTime' statement tells GOsa to stop LDAP actions if there is no answer within the specified number of seconds.",
322                                 "check"         => "gosaProperty::isInteger",
323                                 "migrate"       => "",
324                                 "group"         => "debug",
325                                 "mandatory"     => FALSE),
327                         array(
328                                 "name"          => "storeFilterSettings",
329                                 "type"          => "bool",
330                                 "default"       => "true",
331                                 "description"   => "The 'storeFilterSettings' statement determines whether GOsa should store filter and plugin settings inside of a cookie.",
332                                 "check"         => "gosaProperty::isBool",
333                                 "migrate"       => "",
334                                 "group"         => "core",
335                                 "mandatory"     => FALSE),
337                         array(
338                                 "name"          => "sendCompressedOutput",
339                                 "type"          => "bool",
340                                 "default"       => "true",
341                                 "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.",
342                                 "check"         => "gosaProperty::isBool",
343                                 "migrate"       => "",
344                                 "group"         => "core",
345                                 "mandatory"     => FALSE),
347                         array(
348                                 "name"          => "modificationDetectionAttribute",
349                                 "type"          => "switch",
350                                 "default"       => "entryCSN",
351                                 "defaults"      => "core::getPropertyValues",
352                                 "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.",
353                                 "check"         => "",
354                                 "migrate"       => "",
355                                 "group"         => "core",
356                                 "mandatory"     => TRUE),
358                         array(
359                                 "name"          => "language",
360                                 "type"          => "switch",
361                                 "default"       => "",
362                                 "defaults"      => "core::getPropertyValues",
363                                 "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.",
364                                 "check"         => "",
365                                 "migrate"       => "",
366                                 "group"         => "core",
367                                 "mandatory"     => FALSE),
369                         array(
370                                 "name"          => "theme",
371                                 "type"          => "switch",
372                                 "default"       => "default",
373                                 "defaults"      => "core::getPropertyValues",
374                                 "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.",
375                                 "check"         => "",
376                                 "migrate"       => "",
377                                 "group"         => "visual",
378                                 "mandatory"     => FALSE),
380                         array(
381                                 "name"          => "sessionLifetime",
382                                 "type"          => "integer",
383                                 "default"       => 7200,
384                                 "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.",
385                                 "check"         => "gosaProperty::isInteger",
386                                 "migrate"       => "",
387                                 "group"         => "security",
388                                 "mandatory"     => FALSE),
390                         array(
391                                 "name"          => "templateCompileDirectory",
392                                 "type"          => "path",
393                                 "default"       => "/var/spool/gosa",
394                                 "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.",
395                                 "check"         => "gosaProperty::isWriteablePath",
396                                 "migrate"       => "",
397                                 "group"         => "core",
398                                 "mandatory"     => TRUE),
400                         array(
401                                 "name"          => "debugLevel",
402                                 "type"          => "integer",
403                                 "default"       => 0,
404                                 "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"),
406 DEBUG_TRACE   = 1
407 DEBUG_LDAP    = 2
408 DEBUG_MYSQL   = 4
409 DEBUG_SHELL   = 8
410 DEBUG_POST    = 16
411 DEBUG_SESSION = 32
412 DEBUG_CONFIG  = 64
413 DEBUG_ACL     = 128
414 DEBUG_SI      = 256"),
415                                 "check"         => "gosaProperty::isInteger",
416                                 "migrate"       => "",
417                                 "group"         => "debug",
418                                 "mandatory"     => FALSE),
420                         array(
421                                 "name"          => "sambaHashHook",
422                                 "type"          => "command",
423                                 "default"       => "perl -MCrypt::SmbHash -e \"print join(q[:], ntlmgen \\\$ARGV[0]), $/;\"",
424                                 "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]), $/;\""),
425                                 "check"         => "gosaProperty::isCommand",
426                                 "migrate"       => "",
427                                 "group"         => "samba",
428                                 "mandatory"     => FALSE),
430                         array(
431                                 "name"          => "passwordDefaultHash",
432                                 "type"          => "switch",
433                                 "default"       => "crypt/md5",
434                                 "defaults"      => "core::getPropertyValues",
435                                 "description"   => "The 'passwordDefaultHash' statement defines the default password hash to choose for new accounts.",
436                                 "check"         => "",
437                                 "migrate"       => "",
438                                 "group"         => "password",
439                                 "mandatory"     => FALSE),
440                         array(
441                                 "name"          => "strictPasswordRules",
442                                 "type"          => "bool",
443                                 "default"       => "true",
444                                 "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'."),
445                                 "check"         => "gosaProperty::isBool",
446                                 "migrate"       => "",
447                                 "group"         => "password",
448                                 "mandatory"     => FALSE),
450                         array(
451                                 "name"          => "accountPrimaryAttribute",
452                                 "type"          => "switch",
453                                 "default"       => "cn",
454                                 "defaults"      => "core::getPropertyValues",
455                                 "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'.",
456                                 "check"         => "",
457                                 "migrate"       => "",
458                                 "group"         => "security",
459                                 "mandatory"     => TRUE),
461                         array(
462                                 "name"          => "userRDN",
463                                 "type"          => "rdn",
464                                 "default"       => "ou=people,",
465                                 "description"   => "The 'userRDN' statement defines the location where new accounts will be created inside of defined departments. The default is 'ou=people'.",
466                                 "check"         => "gosaProperty::isRdn",
467                                 "migrate"       => "migrate_userRDN", 
468                                 "group"         => "user",
469                                 "mandatory"     => FALSE),
471                         array(
472                                 "name"          => "groupRDN",
473                                 "type"          => "rdn",
474                                 "default"       => "ou=groups,",
475                                 "description"   => "The 'groupsRDN' statement defines the location where new groups will be created inside of defined departments. The default is 'ou=groups'.",
476                                 "check"         => "gosaProperty::isRdn",
477                                 "migrate"       => "migrate_groupRDN",
478                                 "group"         => "group",
479                                 "mandatory"     => FALSE),
481                         array(
482                                 "name"          => "gidNumberBase",
483                                 "type"          => "integer",
484                                 "default"       => "1000",
485                                 "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.",
486                                 "check"         => "gosaProperty::isInteger",
487                                 "migrate"       => "",
488                                 "group"         => "id",
489                                 "mandatory"     => TRUE),
491                        array(
492                                 "name"          => "baseIdHook",
493                                 "type"          => "command",
494                                 "default"       => "",
495                                 "description"   => _("The 'baseIdHook' statement allows to hook into the id generation method (traditional mode), to define the starting range for new generated ids"), 
496                                 "check"         => "gosaProperty::isCommand",
497                                 "migrate"       => "",
498                                 "group"         => "id",
499                                 "mandatory"     => FALSE),
501                         array(
502                                 "name"          => "gidNumberPoolMin",
503                                 "type"          => "integer",
504                                 "default"       => 10000,
505                                 "description"   => "The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'.",
506                                 "check"         => "gosaProperty::isInteger",
507                                 "migrate"       => "",
508                                 "group"         => "id",
509                                 "mandatory"     => FALSE),
511                         array(
512                                 "name"          => "gidNumberPoolMax",
513                                 "type"          => "integer",
514                                 "default"       => 40000,
515                                 "description"   => "The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'.",
516                                 "check"         => "gosaProperty::isInteger",
517                                 "migrate"       => "",
518                                 "group"         => "id",
519                                 "mandatory"     => FALSE),
521                         array(
522                                 "name"          => "uidNumberPoolMin",
523                                 "type"          => "integer",
524                                 "default"       => 10000,
525                                 "description"   => "The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'.",
526                                 "check"         => "gosaProperty::isInteger",
527                                 "migrate"       => "",
528                                 "group"         => "id",
529                                 "mandatory"     => FALSE),
531                         array(
532                                 "name"          => "uidNumberPoolMax",
533                                 "type"          => "integer",
534                                 "default"       => 40000,
535                                 "description"   => "The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'.",
536                                 "check"         => "gosaProperty::isInteger",
537                                 "migrate"       => "",
538                                 "group"         => "id",
539                                 "mandatory"     => FALSE),
541                         array(
542                                 "name"          => "uidNumberBase",
543                                 "type"          => "integer",
544                                 "default"       => "1000",
545                                 "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.",
546                                 "check"         => "gosaProperty::isInteger",
547                                 "migrate"       => "",
548                                 "group"         => "id",
549                                 "mandatory"     => FALSE),
551                         array(
552                                 "name"          => "gosaSupportURI",
553                                 "type"          => "string",
554                                 "default"       => "",
555                                 "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",
556                                 "check"         => "",
557                                 "migrate"       => "",
558                                 "group"         => "gosa-si",
559                                 "mandatory"     => FALSE),
561                         array(
562                                 "name"          => "gosaSupportTimeout",
563                                 "type"          => "integer",
564                                 "default"       => 15,
565                                 "description"   => "The 'gosaSupportTimeout' sets a connection timeout for all gosa-si actions. See 'gosaSupportURI' for details.",
566                                 "check"         => "gosaProperty::isInteger",
567                                 "migrate"       => "",
568                                 "group"         => "gosa-si",
569                                 "mandatory"     => FALSE),
571                         array(
572                                 "name"          => "loginAttribute",
573                                 "type"          => "switch",
574                                 "default"       => "uid",
575                                 "defaults"      => "core::getPropertyValues",
576                                 "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'",
577                                 "check"         => "",
578                                 "migrate"       => "",
579                                 "group"         => "security",
580                                 "mandatory"     => TRUE),
582                         array(
583                                 "name"          => "timezone",
584                                 "type"          => "switch",
585                                 "default"       => "",
586                                 "defaults"      => "core::getPropertyValues",
587                                 "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.",
588                                 "check"         => "",
589                                 "migrate"       => "",
590                                 "group"         => "core",
591                                 "mandatory"     => FALSE),
593                         array(
594                                 "name"          => "honourUnitTags",
595                                 "type"          => "bool",
596                                 "default"       => "false",
597                                 "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.",
598                                 "check"         => "",
599                                 "migrate"       => "",
600                                 "group"         => "core",
601                                 "mandatory"     => FALSE),
603                         array(
604                                 "name"          => "useSaslForKerberos",
605                                 "type"          => "bool",
606                                 "default"       => "false",
607                                 "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.",
608                                 "check"         => "gosaProperty::isBool",
609                                 "migrate"       => "",
610                                 "group"         => "password",
611                                 "mandatory"     => FALSE),
613                         array(
614                                 "name"          => "rfc2307bis",
615                                 "type"          => "bool",
616                                 "default"       => "false",
617                                 "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",
618                                 "check"         => "gosaProperty::isBool",
619                                 "migrate"       => "",
620                                 "group"         => "core",
621                                 "mandatory"     => FALSE),
623                         array(
624                                 "name"          => "personalTitleInDN",
625                                 "type"          => "bool",
626                                 "default"       => "false",
627                                 "description"   => "The 'personalTitleInDN' option tells GOsa to include the personal title in user DNs when #accountPrimaryAttribute' is set to \"cn\".",
628                                 "check"         => "gosaProperty::isBool",
629                                 "migrate"       => "",
630                                 "group"         => "storage location",
631                                 "mandatory"     => FALSE),
633                         array(
634                                 "name"          => "nextIdHook",
635                                 "type"          => "command",
636                                 "default"       => "",
637                                 "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.",
638                                 "check"         => "gosaProperty::isCommand",
639                                 "migrate"       => "",
640                                 "group"         => "id",
641                                 "mandatory"     => FALSE),
643                         array(
644                                 "name"          => "idGenerator",
645                                 "type"          => "string",
646                                 "default"       => "{%sn}-{%givenName[2-4]}",
647                                 "description"   => "The 'idGenerator' statement describes an automatic way to generate new user ids. There are two basic functions supported - which can be combined: 
649  a) using attributes
651     You can specify LDAP attributes (currently only sn and givenName) in
652     braces {} and add a percent sign befor it. Optionally you can strip it
653     down to a number of characters, specified in []. I.e.
655       idGenerator=\"{%sn}-{%givenName[2-4]}\"
657     will generate an ID using the full surename, adding a dash, and adding at
658     least the first two characters of givenName. If this ID is used, it'll
659     use up to four characters. If no automatic generation is possible, a
660     input box is shown.
662  b) using automatic id's
664     I.e. specifying
666       idGenerator=\"acct{id:3}\"
668     will generate a three digits id with the next free entry appended to \"acct\".
670       idGenerator=\"acct{id!1}\"
672     will generate a one digit id with the next free entry appended to \"acct\" - if needed.
674       idGenerator=\"ext{id#3}\"
676     will generate a three digits random number appended to \"ext\".
677 ",
678                                 "check"         => "",
679                                 "migrate"       => "",
680                                 "group"         => "core",
681                                 "mandatory"     => FALSE),
683                         array(
684                                 "name"          => "strictNamingRules",
685                                 "type"          => "bool",
686                                 "default"       => "true",
687                                 "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'.",
688                                 "check"         => "gosaProperty::isBool",
689                                 "migrate"       => "",
690                                 "group"         => "core",
691                                 "mandatory"     => FALSE),
693                         array(
694                                 "name"          => "minId",
695                                 "type"          => "integer",
696                                 "default"       => 40,
697                                 "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.",
698                                 "check"         => "gosaProperty::isInteger",
699                                 "migrate"       => "",
700                                 "group"         => "id",
701                                 "mandatory"     => FALSE),
703                         array(
704                                 "name"          => "mailAttribute",
705                                 "type"          => "switch",
706                                 "default"       => "mail",
707                                 "defaults"      => "core::getPropertyValues",
708                                 "description"   => "The 'mailAttribute' statement determines which attribute GOsa will use to create accounts. Valid values are 'mail' and 'uid'.",
709                                 "check"         => "",
710                                 "migrate"       => "",
711                                 "group"         => "mail",
712                                 "mandatory"     => FALSE),
714                         array(
715                                 "name"          => "gosaSharedPrefix",
716                                 "type"          => "string",
717                                 "default"       => "",
718                                 "description"   => "This attribute allows to override the prefix used to create shared folders.",
719                                 "check"         => "",
720                                 "migrate"       => "",
721                                 "group"         => "mail",
722                                 "mandatory"     => FALSE),
724                         array(
725                                 "name"          => "mailUserCreation",
726                                 "type"          => "string",
727                                 "default"       => "",
728                                 "description"   => "This attribute allows to override the user account creation syntax, see the 'mailFolderCreation' description for more details.
730 Examples
731  mailUserCreation=\"%prefix%%uid%\"           => \"user.foobar\"
732  mailUserCreation=\"my-prefix.%uid%%domain%\"  => \"my-prefix.foobar@example.com\"
733 ",
734                                 "check"         => "",
735                                 "migrate"       => "",
736                                 "group"         => "mail",
737                                 "mandatory"     => FALSE),
739                         array(
740                                 "name"          => "mailFolderCreation",
741                                 "type"          => "string",
742                                 "default"       => "",
743                                 "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.
745 To override the methods default account creation syntax, you can set the 'mailFolderCreation' option.
747 Examples
749  mailFolderCreation=\"%prefix%%cn%\"              => \"shared.development\"
750  mailFolderCreation=\"my-prefix.%cn%%domain%\"    => \"my-prefix.development@example.com\"
752  %prefix%    The methods default prefix. (Depends on cyrusUseSlashes=FALSE/TRUE)
753  %cn%        The groups/users cn.
754  %uid%       The users uid.
755  %mail%      The objects mail attribute.
756  %domain%    The domain part of the objects mail attribute.
757  %mailpart%  The user address part of the mail address.
758  %uattrib%   Depends on mailAttribute=\"uid/mail\".
759 ",
760                                 "check"         => "",
761                                 "migrate"       => "",
762                                 "group"         => "mail",
763                                 "mandatory"     => FALSE),
765                         array(
766                                 "name"          => "imapTimeout",
767                                 "type"          => "integer",
768                                 "default"       => 10,
769                                 "description"   => "The 'imapTimeout' statement sets the connection timeout for imap actions.",
770                                 "check"         => "gosaProperty::isInteger",
771                                 "migrate"       => "",
772                                 "group"         => "mail",
773                                 "mandatory"     => FALSE),
775                         array(
776                                 "name"          => "mailMethod",
777                                 "type"          => "switch",
778                                 "default"       => "",
779                                 "defaults"      => "core::getPropertyValues",
780                                 "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.",
781                                 "check"         => "",
782                                 "migrate"       => "",
783                                 "group"         => "mail",
784                                 "mandatory"     => FALSE),
786                         array(
787                                 "name"          => "cyrusUseSlashes",
788                                 "type"          => "bool",
789                                 "default"       => "true",
790                                 "description"   => "The 'cyrusUseSlashes' statement determines if GOsa should use \"foo/bar\" or \"foo.bar\" namespaces in IMAP. Unix style is with slashes.",
791                                 "check"         => "gosaProperty::isBool",
792                                 "migrate"       => "",
793                                 "group"         => "mail",
794                                 "mandatory"     => FALSE),
796                         array(
797                                 "name"          => "vacationTemplateDirectory",
798                                 "type"          => "path",
799                                 "default"       => "/etc/gosa/vacation",
800                                 "description"   => "The 'vacationTemplateDirectory' statement sets the path where GOsa will look for vacation message templates. Default is /etc/gosa/vacation. 
802 Example template /etc/gosa/vacation/business.txt:
804    DESC:Away from desk
805    Hi, I'm currently away from my desk. You can contact me on
806    my cell phone via %mobile.
808    Greetings,
809    %givenName %sn
811 ",
812                                 "check"         => "gosaProperty::isWriteablePath",
813                                 "migrate"       => "",
814                                 "group"         => "mail",
815                                 "mandatory"     => FALSE),
817                         array(
818                                 "name"          => "ldapTLS",
819                                 "type"          => "bool",
820                                 "default"       => "false",
821                                 "description"   => "The 'ldapTLS' statement enables or disables TLS operating on LDAP connections.",
822                                 "check"         => "gosaProperty::isBool",
823                                 "migrate"       => "",
824                                 "group"         => "security",
825                                 "mandatory"     => TRUE),
827                         array(
828                                 "name"          => "honourIvbbAttributes",
829                                 "type"          => "bool",
830                                 "default"       => "false",
831                                 "description"   => "The 'honourIvbbAttributes' statement enables the IVBB mode inside of GOsa. You need the ivbb.schema file from used by german authorities.",
832                                 "check"         => "gosaProperty::isBool",
833                                 "migrate"       => "",
834                                 "group"         => "core",
835                                 "mandatory"     => FALSE),
837                         array(
838                                 "name"          => "sambaIdMapping",
839                                 "type"          => "bool",
840                                 "default"       => "false",
841                                 "description"   => "The 'sambaIdMapping' statement tells GOsa to maintain sambaIdmapEntry objects. Depending on your setup this can drastically improve the windows login performance.",
842                                 "check"         => "gosaProperty::isBool",
843                                 "migrate"       => "",
844                                 "group"         => "samba",
845                                 "mandatory"     => FALSE),
847                         array(
848                                 "name"          => "handleExpiredAccounts",
849                                 "type"          => "bool",
850                                 "default"       => "true",
851                                 "description"   => "The 'handleExpiredAccounts' statement enables shadow attribute tests during the login to the GOsa web interface and forces password renewal or account lockout.",
852                                 "check"         => "gosaProperty::isBool",
853                                 "migrate"       => "",
854                                 "group"         => "core",
855                                 "mandatory"     => FALSE),
857                         array(
858                                 "name"          => "sambaSID",
859                                 "type"          => "string",
860                                 "default"       => "",
861                                 "description"   => "The 'sambaSID' statement defines a samba SID if not available inside of the LDAP. You can retrieve the current sid by net getlocalsid.",
862                                 "check"         => "",
863                                 "migrate"       => "",
864                                 "group"         => "samba",
865                                 "mandatory"     => FALSE),
867                         array(
868                                 "name"          => "sambaRidBase",
869                                 "type"          => "integer",
870                                 "default"       => "",
871                                 "description"   => "The 'sambaRidBase' statement defines the base id to add to ordinary sid calculations - if not available inside of the LDAP.",
872                                 "check"         => "gosaProperty::isInteger",
873                                 "migrate"       => "",
874                                 "group"         => "samba",
875                                 "mandatory"     => FALSE),
877                         array(
878                                 "name"          => "enableSnapshots",
879                                 "type"          => "bool",
880                                 "default"       => "false",
881                                 "description"   => "The 'enableSnapshots' statement enables a snapshot mechaism in GOsa. This enables you to save certain states of entries and restore them later on.",
882                                 "check"         => "gosaProperty::isBool",
883                                 "migrate"       => "",
884                                 "group"         => "snapshot",
885                                 "mandatory"     => TRUE),
887                         array(
888                                 "name"          => "snapshotBase",
889                                 "type"          => "dn",
890                                 "default"       => "ou=snapshots,dc=localhost,dc=de",
891                                 "description"   => "The 'snapshotBase' statement defines the base where snapshots should be stored inside of the LDAP.",
892                                 "check"         => "gosaProperty::isDn",
893                                 "migrate"       => "",
894                                 "group"         => "snapshot",
895                                 "mandatory"     => FALSE),
897                         array(
898                                 "name"          => "snapshotAdminDn",
899                                 "type"          => "dn",
900                                 "default"       => "cn=admin,dc=localhost,dc=de",
901                                 "description"   => "The 'snapshotAdminDn' variable defines the user which is used to authenticate when connecting to 'snapshotURI'.",
902                                 "check"         => "gosaProperty::isDn",
903                                 "migrate"       => "",
904                                 "group"         => "snapshot",
905                                 "mandatory"     => FALSE),
907                         array(
908                                 "name"          => "snapshotAdminPassword",
909                                 "type"          => "string",
910                                 "default"       => "secret",
911                                 "description"   => "The 'snapshotAdminPassword' variable defines the credentials which are used in combination with 'snapshotAdminDn' and 'snapshotURI' in order to authenticate.",
912                                 "check"         => "",
913                                 "migrate"       => "",
914                                 "group"         => "snapshot",
915                                 "mandatory"     => FALSE),
917                         array(
918                                 "name"          => "idAllocationMethod",
919                                 "type"          => "switch",
920                                 "default"       => "traditional",
921                                 "defaults"      => "core::getPropertyValues",
922                                 "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.",
923                                 "check"         => "",
924                                 "migrate"       => "",
925                                 "group"         => "id",
926                                 "mandatory"     => TRUE),
927                         array(
928                                 "name"          => "snapshotURI",
929                                 "type"          => "uri",
930                                 "default"       => "ldap://localhost:389",
931                                 "description"   => "The 'snapshotURI' variable defines the LDAP URI for the server which is used to do object snapshots.",
932                                 "check"         => "",
933                                 "migrate"       => "",
934                                 "group"         => "snapshot",
935                                 "mandatory"     => FALSE)
936                             ),
938                         "plProvidedAcls"    => array(
939                                 "accessTo"          => _("System trust"),
940                                 "cn"                => _("Name"),
941                                 "description"       => _("Description"),
942                                 "sudoUser"          => _("Users"),
943                                 "sudoHost"          => _("Host"),
944                                 "sudoCommand"       => _("Command"),
945                                 "sudoRunAs"         => _("Run as user"),
946                                 "trustModel"        => _("Access control list"))
947                             )
948                             );
949     }
951 ?>