Code

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