Code

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