Code

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