Code

Added schema requrements
[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("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"),
104                     "plRequirements"=> array(
105                         'ldapSchema' => array(
106                             'gosaObject' => '>=2.7',
107                             'gosaLockEntry' => '>=2.7',
108                             'gosaCacheEntry' => '>=2.7',
109                             'gosaConfig' => '>=2.7',
110                             'gosaProperties' => '>=2.7'
111                             )
112                         ),
114                     "plProperties"  => array(
116                         array(
117                             "name"          => "htaccessAuthentication",
118                             "type"          => "bool",
119                             "default"       => "false",
120                             "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."),
121                             "check"         => "gosaProperty::isBool",
122                             "migrate"       => "",
123                             "group"         => "authentification",
124                             "mandatory"     => TRUE),
126                         array(
127                             "name"          => "logging",
128                             "type"          => "bool",
129                             "default"       => "true",
130                             "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'."),
132                             "check"         => "gosaProperty::isBool",
133                             "migrate"       => "",
134                             "group"         => "core",
135                             "mandatory"     => TRUE),
137                         array(
138                                 "name"          => "listSummary",
139                                 "type"          => "bool",
140                                 "default"       => "true",
141                                 "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."),
142                                 "check"         => "gosaProperty::isBool",
143                                 "migrate"       => "",
144                                 "group"         => "visual",
145                                 "mandatory"     => FALSE),
147                         array(
148                                 "name"          => "passwordMinLength",
149                                 "type"          => "integer",
150                                 "default"       => "",
151                                 "description"   => _("The 'passwordMinLength' statement determines whether a newly entered password has to be of a minimum length."),
152                                 "check"         => "gosaProperty::isInteger",
153                                 "migrate"       => "",
154                                 "group"         => "password",
155                                 "mandatory"     => FALSE),
157                         array(
158                                 "name"          => "passwordMinDiffer",
159                                 "type"          => "integer",
160                                 "default"       => "",
161                                 "description"   => _("The 'passwordMinDiffer' statement determines whether a newly entered password has to be checked to have at least n different characters."),
162                                 "check"         => "gosaProperty::isInteger",
163                                 "migrate"       => "",
164                                 "group"         => "password",
165                                 "mandatory"     => FALSE),
167                         array(
168                                 "name"          => "passwordHook",
169                                 "type"          => "command",
170                                 "default"       => "",
171                                 "description"   => 
172                                 _("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\""),
173                         "check"         => "gosaProperty::isCommand",
174                                 "migrate"       => "",
175                                 "group"         => "password",
176                                 "mandatory"     => FALSE),
178                         array(
179                                 "name"          => "displayErrors",
180                                 "type"          => "bool",
181                                 "default"       => "false",
182                                 "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'),
183                                 "check"         => "gosaProperty::isBool",
184                                 "migrate"       => "",
185                                 "group"         => "debug",
186                                 "mandatory"     => TRUE),
188                         array(
189                                 "name"          => "developmentMode",
190                                 "type"          => "bool",
191                                 "default"       => "false",
192                                 "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!"),
193                                 "check"         => "gosaProperty::isBool",
194                                 "migrate"       => "",
195                                 "group"         => "debug",
196                                 "mandatory"     => TRUE),
199                         array(
200                                 "name"          => "schemaCheck",
201                                 "type"          => "bool",
202                                 "default"       => "true",
203                                 "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."),
204                                 "check"         => "gosaProperty::isBool",
205                                 "migrate"       => "",
206                                 "group"         => "debug",
207                                 "mandatory"     => TRUE),
209                         array(
210                                 "name"          => "copyPaste",
211                                 "type"          => "bool",
212                                 "default"       => "false",
213                                 "description"   => _("The 'copyPaste' statement enables copy and paste for LDAP entries managed with GOsa."),
214                                 "check"         => "gosaProperty::isBool",
215                                 "migrate"       => "",
216                                 "group"         => "copyPaste",
217                                 "mandatory"     => TRUE),
219                         array(
220                                 "name"          => "forceGlobals",
221                                 "type"          => "bool",
222                                 "default"       => "false",
223                                 "description"   => _("The 'forceGlobals' statement enables PHP security checks to force register_global settings to be switched off."),
224                                 "check"         => "gosaProperty::isBool",
225                                 "migrate"       => "",
226                                 "group"         => "security",
227                                 "mandatory"     => TRUE),
229                         array(
230                                 "name"          => "forceSSL",
231                                 "type"          => "bool",
232                                 "default"       => "false",
233                                 "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://"),
234                                 "check"         => "gosaProperty::isBool",
235                                 "migrate"       => "",
236                                 "group"         => "security",
237                                 "mandatory"     => TRUE),
239                         array(
240                                 "name"          => "ldapStats",
241                                 "type"          => "bool",
242                                 "default"       => "false",
243                                 "description"   => _("Logs information about triggered ldap operations, duration, filter, aso. into syslog."),
244                                 "check"         => "gosaProperty::isBool",
245                                 "migrate"       => "",
246                                 "group"         => "debug",
247                                 "mandatory"     => FALSE),
249                         array(
250                                 "name"          => "ldapFollowReferrals",
251                                 "type"          => "bool",
252                                 "default"       => "false",
253                                 "description"   => _("The 'ldapFollowReferrals' statement tells GOsa to follow LDAP referrals."),
254                                 "check"         => "gosaProperty::isBool",
255                                 "migrate"       => "",
256                                 "group"         => "ldap",
257                                 "mandatory"     => TRUE),
259                         array(
260                                 "name"          => "ldapFilterNestingLimit",
261                                 "type"          => "integer",
262                                 "default"       => 200,
263                                 "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."),
264                                 "check"         => "gosaProperty::isInteger",
265                                 "migrate"       => "",
266                                 "group"         => "ldap",
267                                 "mandatory"     => TRUE),
269                         array(
270                                 "name"          => "ldapSizelimit",
271                                 "type"          => "integer",
272                                 "default"       => 200,
273                                 "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."), 
274                                 "check"         => "gosaProperty::isInteger",
275                                 "migrate"       => "",
276                                 "group"         => "core",
277                                 "mandatory"     => TRUE),
279                         array(
280                                 "name"          => "ldapSizeIgnore",
281                                 "type"          => "bool",
282                                 "default"       => "false",
283                                 "description"   => _("Disables sizelimit checks, only the configured amount of results will be shown!"),
284                                 "check"         => "gosaProperty::isBool",
285                                 "migrate"       => "",
286                                 "group"         => "core",
287                                 "mandatory"     => FALSE),
289                         array(
290                                 "name"          => "warnSSL",
291                                 "type"          => "bool",
292                                 "default"       => "true",
293                                 "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."),
294                                 "check"         => "gosaProperty::isBool",
295                                 "migrate"       => "",
296                                 "group"         => "security",
297                                 "mandatory"     => TRUE),
299                         array(
300                                 "name"          => "ppdGzip",
301                                 "type"          => "bool",
302                                 "default"       => "true",
303                                 "description"   => _("The 'ppdGzip' variable enables PPD file compression."),
304                                 "check"         => "gosaProperty::isBool",
305                                 "migrate"       => "",
306                                 "group"         => "ppd",
307                                 "mandatory"     => FALSE),
310                         array(
311                                 "name"          => "ignoreAcl",
312                                 "type"          => "dn",
313                                 "default"       => "",
314                                 "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."),
315                                 "check"         => "gosaProperty::isDN",
316                                 "migrate"       => "",
317                                 "group"         => "debug",
318                                 "mandatory"     => FALSE),
321                         array(
322                                 "name"          => "ppdPath",
323                                 "type"          => "path",
324                                 "default"       => "/var/spool/ppd",
325                                 "description"   => _("The 'ppdPath' variable defines where to store PPD files for the GOto environment plugins."),
326                                 "check"         => "gosaProperty::isPath",
327                                 "migrate"       => "",
328                                 "group"         => "ppd",
329                                 "mandatory"     => FALSE),
331                         array(
332                                 "name"          => "ldapMaxQueryTime",
333                                 "type"          => "integer",
334                                 "default"       => "",
335                                 "description"   => _("The 'ldapMaxQueryTime' statement tells GOsa to stop LDAP actions if there is no answer within the specified number of seconds."),
336                                 "check"         => "gosaProperty::isInteger",
337                                 "migrate"       => "",
338                                 "group"         => "debug",
339                                 "mandatory"     => FALSE),
341                         array(
342                                 "name"          => "storeFilterSettings",
343                                 "type"          => "bool",
344                                 "default"       => "true",
345                                 "description"   => _("The 'storeFilterSettings' statement determines whether GOsa should store filter and plugin settings inside of a cookie."),
346                                 "check"         => "gosaProperty::isBool",
347                                 "migrate"       => "",
348                                 "group"         => "core",
349                                 "mandatory"     => FALSE),
351                         array(
352                                 "name"          => "sendCompressedOutput",
353                                 "type"          => "bool",
354                                 "default"       => "true",
355                                 "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."),
356                                 "check"         => "gosaProperty::isBool",
357                                 "migrate"       => "",
358                                 "group"         => "core",
359                                 "mandatory"     => FALSE),
361                         array(
362                                 "name"          => "modificationDetectionAttribute",
363                                 "type"          => "switch",
364                                 "default"       => "entryCSN",
365                                 "defaults"      => "core::getPropertyValues",
366                                 "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."),
367                                 "check"         => "",
368                                 "migrate"       => "",
369                                 "group"         => "core",
370                                 "mandatory"     => TRUE),
372                         array(
373                                 "name"          => "language",
374                                 "type"          => "switch",
375                                 "default"       => "",
376                                 "defaults"      => "core::getPropertyValues",
377                                 "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."),
378                                 "check"         => "",
379                                 "migrate"       => "",
380                                 "group"         => "core",
381                                 "mandatory"     => FALSE),
383                         array(
384                                 "name"          => "theme",
385                                 "type"          => "switch",
386                                 "default"       => "default",
387                                 "defaults"      => "core::getPropertyValues",
388                                 "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."),
389                                 "check"         => "",
390                                 "migrate"       => "",
391                                 "group"         => "visual",
392                                 "mandatory"     => TRUE),
394                         array(
395                                 "name"          => "sessionLifetime",
396                                 "type"          => "integer",
397                                 "default"       => 600,
398                                 "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."),
399                                 "check"         => "gosaProperty::isInteger",
400                                 "migrate"       => "",
401                                 "group"         => "security",
402                                 "mandatory"     => FALSE),
404                         array(
405                                 "name"          => "templateCompileDirectory",
406                                 "type"          => "path",
407                                 "default"       => "/var/spool/gosa",
408                                 "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."),
409                                 "check"         => "gosaProperty::isWriteablePath",
410                                 "migrate"       => "",
411                                 "group"         => "core",
412                                 "mandatory"     => TRUE),
414                         array(
415                                 "name"          => "debugLevel",
416                                 "type"          => "integer",
417                                 "default"       => 0,
418                                 "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"),
420 DEBUG_TRACE   = 1
421 DEBUG_LDAP    = 2
422 DEBUG_MYSQL   = 4
423 DEBUG_SHELL   = 8
424 DEBUG_POST    = 16
425 DEBUG_SESSION = 32
426 DEBUG_CONFIG  = 64
427 DEBUG_ACL     = 128
428 DEBUG_SI      = 256"),
429                                 "check"         => "gosaProperty::isInteger",
430                                 "migrate"       => "",
431                                 "group"         => "debug",
432                                 "mandatory"     => FALSE),
434                         array(
435                                 "name"          => "sambaHashHook",
436                                 "type"          => "command",
437                                 "default"       => "perl -MCrypt::SmbHash -e \"print join(q[:], ntlmgen \\\$ARGV[0]), $/;\"",
438                                 "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]), $/;\""),
439                                 "check"         => "gosaProperty::isCommand",
440                                 "migrate"       => "",
441                                 "group"         => "samba",
442                                 "mandatory"     => FALSE),
444                         array(
445                                 "name"          => "passwordDefaultHash",
446                                 "type"          => "switch",
447                                 "default"       => "crypt/md5",
448                                 "defaults"      => "core::getPropertyValues",
449                                 "description"   => _("The 'passwordDefaultHash' statement defines the default password hash to choose for new accounts."),
450                                 "check"         => "",
451                                 "migrate"       => "",
452                                 "group"         => "password",
453                                 "mandatory"     => FALSE),
454                         array(
455                                 "name"          => "strictPasswordRules",
456                                 "type"          => "bool",
457                                 "default"       => "true",
458                                 "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'."),
459                                 "check"         => "gosaProperty::isBool",
460                                 "migrate"       => "",
461                                 "group"         => "password",
462                                 "mandatory"     => FALSE),
464                         array(
465                                 "name"          => "accountPrimaryAttribute",
466                                 "type"          => "switch",
467                                 "default"       => "cn",
468                                 "defaults"      => "core::getPropertyValues",
469                                 "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'."),
470                                 "check"         => "",
471                                 "migrate"       => "",
472                                 "group"         => "security",
473                                 "mandatory"     => TRUE),
475                         array(
476                                 "name"          => "userRDN",
477                                 "type"          => "rdn",
478                                 "default"       => "ou=people,",
479                                 "description"   => _("The 'userRDN' statement defines the location where new accounts will be created inside of defined departments. The default is 'ou=people'."),
480                                 "check"         => "gosaProperty::isRdn",
481                                 "migrate"       => "migrate_userRDN", 
482                                 "group"         => "user",
483                                 "mandatory"     => FALSE),
485                         array(
486                                 "name"          => "groupRDN",
487                                 "type"          => "rdn",
488                                 "default"       => "ou=groups,",
489                                 "description"   => _("The 'groupsRDN' statement defines the location where new groups will be created inside of defined departments. The default is 'ou=groups'."),
490                                 "check"         => "gosaProperty::isRdn",
491                                 "migrate"       => "migrate_groupRDN",
492                                 "group"         => "group",
493                                 "mandatory"     => FALSE),
495                         array(
496                                 "name"          => "gidNumberBase",
497                                 "type"          => "integer",
498                                 "default"       => "1000",
499                                 "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."),
500                                 "check"         => "gosaProperty::isInteger",
501                                 "migrate"       => "",
502                                 "group"         => "id",
503                                 "mandatory"     => TRUE),
505                        array(
506                                 "name"          => "baseIdHook",
507                                 "type"          => "command",
508                                 "default"       => "",
509                                 "description"   => _("The 'baseIdHook' statement allows to hook into the id generation method (traditional mode), to define the starting range for new generated ids"), 
510                                 "check"         => "gosaProperty::isCommand",
511                                 "migrate"       => "",
512                                 "group"         => "id",
513                                 "mandatory"     => FALSE),
515                         array(
516                                 "name"          => "gidNumberPoolMin",
517                                 "type"          => "integer",
518                                 "default"       => 10000,
519                                 "description"   => _("The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'."),
520                                 "check"         => "gosaProperty::isInteger",
521                                 "migrate"       => "",
522                                 "group"         => "id",
523                                 "mandatory"     => FALSE),
525                         array(
526                                 "name"          => "gidNumberPoolMax",
527                                 "type"          => "integer",
528                                 "default"       => 40000,
529                                 "description"   => _("The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'."),
530                                 "check"         => "gosaProperty::isInteger",
531                                 "migrate"       => "",
532                                 "group"         => "id",
533                                 "mandatory"     => FALSE),
535                         array(
536                                 "name"          => "uidNumberPoolMin",
537                                 "type"          => "integer",
538                                 "default"       => 10000,
539                                 "description"   => _("The 'uidNumberPoolMin/gidNumberPoolMin' statement defines the lowest assignable user/group id for use with the 'idAllocationMethod = pool'."),
540                                 "check"         => "gosaProperty::isInteger",
541                                 "migrate"       => "",
542                                 "group"         => "id",
543                                 "mandatory"     => FALSE),
545                         array(
546                                 "name"          => "uidNumberPoolMax",
547                                 "type"          => "integer",
548                                 "default"       => 40000,
549                                 "description"   => _("The 'uidNumberPoolMax/gidNumberPoolMax' statement defines the highest assignable user/group id for use with the 'idAllocationMethod = pool'."),
550                                 "check"         => "gosaProperty::isInteger",
551                                 "migrate"       => "",
552                                 "group"         => "id",
553                                 "mandatory"     => FALSE),
555                         array(
556                                 "name"          => "uidNumberBase",
557                                 "type"          => "integer",
558                                 "default"       => "1000",
559                                 "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."),
560                                 "check"         => "gosaProperty::isInteger",
561                                 "migrate"       => "",
562                                 "group"         => "id",
563                                 "mandatory"     => FALSE),
565                         array(
566                                 "name"          => "gosaSupportURI",
567                                 "type"          => "string",
568                                 "default"       => "",
569                                 "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"),
570                                 "check"         => "",
571                                 "migrate"       => "",
572                                 "group"         => "gosa-si",
573                                 "mandatory"     => FALSE),
575                         array(
576                                 "name"          => "gosaSupportTimeout",
577                                 "type"          => "integer",
578                                 "default"       => 15,
579                                 "description"   => _("The 'gosaSupportTimeout' sets a connection timeout for all gosa-si actions. See 'gosaSupportURI' for details."),
580                                 "check"         => "gosaProperty::isInteger",
581                                 "migrate"       => "",
582                                 "group"         => "gosa-si",
583                                 "mandatory"     => FALSE),
585                         array(
586                                 "name"          => "loginAttribute",
587                                 "type"          => "switch",
588                                 "default"       => "uid",
589                                 "defaults"      => "core::getPropertyValues",
590                                 "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'"),
591                                 "check"         => "",
592                                 "migrate"       => "",
593                                 "group"         => "security",
594                                 "mandatory"     => TRUE),
596                         array(
597                                 "name"          => "timezone",
598                                 "type"          => "switch",
599                                 "default"       => "",
600                                 "defaults"      => "core::getPropertyValues",
601                                 "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."),
602                                 "check"         => "",
603                                 "migrate"       => "",
604                                 "group"         => "core",
605                                 "mandatory"     => FALSE),
607                         array(
608                                 "name"          => "honourUnitTags",
609                                 "type"          => "bool",
610                                 "default"       => "false",
611                                 "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."),
612                                 "check"         => "",
613                                 "migrate"       => "",
614                                 "group"         => "core",
615                                 "mandatory"     => FALSE),
617                         array(
618                                 "name"          => "useSaslForKerberos",
619                                 "type"          => "bool",
620                                 "default"       => "false",
621                                 "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."),
622                                 "check"         => "gosaProperty::isBool",
623                                 "migrate"       => "",
624                                 "group"         => "password",
625                                 "mandatory"     => FALSE),
627                         array(
628                                 "name"          => "rfc2307bis",
629                                 "type"          => "bool",
630                                 "default"       => "false",
631                                 "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"),
632                                 "check"         => "gosaProperty::isBool",
633                                 "migrate"       => "",
634                                 "group"         => "core",
635                                 "mandatory"     => FALSE),
637                         array(
638                                 "name"          => "personalTitleInDN",
639                                 "type"          => "bool",
640                                 "default"       => "false",
641                                 "description"   => _("The 'personalTitleInDN' option tells GOsa to include the personal title in user DNs when #accountPrimaryAttribute' is set to \"cn\"."),
642                                 "check"         => "gosaProperty::isBool",
643                                 "migrate"       => "",
644                                 "group"         => "storage location",
645                                 "mandatory"     => FALSE),
647                         array(
648                                 "name"          => "nextIdHook",
649                                 "type"          => "command",
650                                 "default"       => "",
651                                 "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."),
652                                 "check"         => "gosaProperty::isCommand",
653                                 "migrate"       => "",
654                                 "group"         => "id",
655                                 "mandatory"     => FALSE),
657                         array(
658                                 "name"          => "idGenerator",
659                                 "type"          => "string",
660                                 "default"       => "{%sn}-{%givenName[2-4]}",
661                                 "description"   => _("The 'idGenerator' statement describes an automatic way to generate new user ids. There are two basic functions supported - which can be combined: 
663  a) using attributes
665     You can specify LDAP attributes (currently only sn and givenName) in
666     braces {} and add a percent sign befor it. Optionally you can strip it
667     down to a number of characters, specified in []. I.e.
669       idGenerator=\"{%sn}-{%givenName[2-4]}\"
671     will generate an ID using the full surename, adding a dash, and adding at
672     least the first two characters of givenName. If this ID is used, it'll
673     use up to four characters. If no automatic generation is possible, a
674     input box is shown.
676  b) using automatic id's
678     I.e. specifying
680       idGenerator=\"acct{id:3}\"
682     will generate a three digits id with the next free entry appended to \"acct\".
684       idGenerator=\"acct{id!1}\"
686     will generate a one digit id with the next free entry appended to \"acct\" - if needed.
688       idGenerator=\"ext{id#3}\"
690     will generate a three digits random number appended to \"ext\".
691 "),
692                                 "check"         => "",
693                                 "migrate"       => "",
694                                 "group"         => "core",
695                                 "mandatory"     => FALSE),
697                         array(
698                                 "name"          => "strictNamingRules",
699                                 "type"          => "bool",
700                                 "default"       => "true",
701                                 "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'."),
702                                 "check"         => "gosaProperty::isBool",
703                                 "migrate"       => "",
704                                 "group"         => "core",
705                                 "mandatory"     => FALSE),
707                         array(
708                                 "name"          => "minId",
709                                 "type"          => "integer",
710                                 "default"       => 40,
711                                 "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."),
712                                 "check"         => "gosaProperty::isInteger",
713                                 "migrate"       => "",
714                                 "group"         => "id",
715                                 "mandatory"     => FALSE),
717                         array(
718                                 "name"          => "mailAttribute",
719                                 "type"          => "switch",
720                                 "default"       => "mail",
721                                 "defaults"      => "core::getPropertyValues",
722                                 "description"   => _("The 'mailAttribute' statement determines which attribute GOsa will use to create accounts. Valid values are 'mail' and 'uid'."),
723                                 "check"         => "",
724                                 "migrate"       => "",
725                                 "group"         => "mail",
726                                 "mandatory"     => FALSE),
728                         array(
729                                 "name"          => "gosaSharedPrefix",
730                                 "type"          => "string",
731                                 "default"       => "",
732                                 "description"   => _("This attribute allows to override the prefix used to create shared folders."),
733                                 "check"         => "",
734                                 "migrate"       => "",
735                                 "group"         => "mail",
736                                 "mandatory"     => FALSE),
738                         array(
739                                 "name"          => "mailUserCreation",
740                                 "type"          => "string",
741                                 "default"       => "",
742                                 "description"   => _("This attribute allows to override the user account creation syntax, see the 'mailFolderCreation' description for more details.
744 Examples
745  mailUserCreation=\"%prefix%%uid%\"           => \"user.foobar\"
746  mailUserCreation=\"my-prefix.%uid%%domain%\"  => \"my-prefix.foobar@example.com\"
747 "),
748                                 "check"         => "",
749                                 "migrate"       => "",
750                                 "group"         => "mail",
751                                 "mandatory"     => FALSE),
753                         array(
754                                 "name"          => "mailFolderCreation",
755                                 "type"          => "string",
756                                 "default"       => "",
757                                 "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.
759 To override the methods default account creation syntax, you can set the 'mailFolderCreation' option.
761 Examples
763  mailFolderCreation=\"%prefix%%cn%\"              => \"shared.development\"
764  mailFolderCreation=\"my-prefix.%cn%%domain%\"    => \"my-prefix.development@example.com\"
766  %prefix%    The methods default prefix. (Depends on cyrusUseSlashes=FALSE/TRUE)
767  %cn%        The groups/users cn.
768  %uid%       The users uid.
769  %mail%      The objects mail attribute.
770  %domain%    The domain part of the objects mail attribute.
771  %mailpart%  The user address part of the mail address.
772  %uattrib%   Depends on mailAttribute=\"uid/mail\".
773 "),
774                                 "check"         => "",
775                                 "migrate"       => "",
776                                 "group"         => "mail",
777                                 "mandatory"     => FALSE),
779                         array(
780                                 "name"          => "imapTimeout",
781                                 "type"          => "integer",
782                                 "default"       => 10,
783                                 "description"   => _("The 'imapTimeout' statement sets the connection timeout for imap actions."),
784                                 "check"         => "gosaProperty::isInteger",
785                                 "migrate"       => "",
786                                 "group"         => "mail",
787                                 "mandatory"     => FALSE),
789                         array(
790                                 "name"          => "mailMethod",
791                                 "type"          => "switch",
792                                 "default"       => "",
793                                 "defaults"      => "core::getPropertyValues",
794                                 "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."),
795                                 "check"         => "",
796                                 "migrate"       => "",
797                                 "group"         => "mail",
798                                 "mandatory"     => FALSE),
800                         array(
801                                 "name"          => "cyrusUseSlashes",
802                                 "type"          => "bool",
803                                 "default"       => "true",
804                                 "description"   => _("The 'cyrusUseSlashes' statement determines if GOsa should use \"foo/bar\" or \"foo.bar\" namespaces in IMAP. Unix style is with slashes."),
805                                 "check"         => "gosaProperty::isBool",
806                                 "migrate"       => "",
807                                 "group"         => "mail",
808                                 "mandatory"     => FALSE),
810                         array(
811                                 "name"          => "vacationTemplateDirectory",
812                                 "type"          => "path",
813                                 "default"       => "/etc/gosa/vacation",
814                                 "description"   => _("The 'vacationTemplateDirectory' statement sets the path where GOsa will look for vacation message templates. Default is /etc/gosa/vacation. 
816 Example template /etc/gosa/vacation/business.txt:
818    DESC:Away from desk
819    Hi, I'm currently away from my desk. You can contact me on
820    my cell phone via %mobile.
822    Greetings,
823    %givenName %sn
825 "),
826                                 "check"         => "gosaProperty::isWriteablePath",
827                                 "migrate"       => "",
828                                 "group"         => "mail",
829                                 "mandatory"     => FALSE),
831                         array(
832                                 "name"          => "ldapTLS",
833                                 "type"          => "bool",
834                                 "default"       => "false",
835                                 "description"   => _("The 'ldapTLS' statement enables or disables TLS operating on LDAP connections."),
836                                 "check"         => "gosaProperty::isBool",
837                                 "migrate"       => "",
838                                 "group"         => "security",
839                                 "mandatory"     => TRUE),
841                         array(
842                                 "name"          => "honourIvbbAttributes",
843                                 "type"          => "bool",
844                                 "default"       => "false",
845                                 "description"   => _("The 'honourIvbbAttributes' statement enables the IVBB mode inside of GOsa. You need the ivbb.schema file from used by german authorities."),
846                                 "check"         => "gosaProperty::isBool",
847                                 "migrate"       => "",
848                                 "group"         => "core",
849                                 "mandatory"     => FALSE),
851                         array(
852                                 "name"          => "sambaIdMapping",
853                                 "type"          => "bool",
854                                 "default"       => "false",
855                                 "description"   => _("The 'sambaIdMapping' statement tells GOsa to maintain sambaIdmapEntry objects. Depending on your setup this can drastically improve the windows login performance."),
856                                 "check"         => "gosaProperty::isBool",
857                                 "migrate"       => "",
858                                 "group"         => "samba",
859                                 "mandatory"     => FALSE),
861                         array(
862                                 "name"          => "handleExpiredAccounts",
863                                 "type"          => "bool",
864                                 "default"       => "true",
865                                 "description"   => _("The 'handleExpiredAccounts' statement enables shadow attribute tests during the login to the GOsa web interface and forces password renewal or account lockout."),
866                                 "check"         => "gosaProperty::isBool",
867                                 "migrate"       => "",
868                                 "group"         => "core",
869                                 "mandatory"     => FALSE),
871                         array(
872                                 "name"          => "sambaSID",
873                                 "type"          => "string",
874                                 "default"       => "",
875                                 "description"   => _("The 'sambaSID' statement defines a samba SID if not available inside of the LDAP. You can retrieve the current sid by net getlocalsid."),
876                                 "check"         => "",
877                                 "migrate"       => "",
878                                 "group"         => "samba",
879                                 "mandatory"     => FALSE),
881                         array(
882                                 "name"          => "sambaRidBase",
883                                 "type"          => "integer",
884                                 "default"       => "",
885                                 "description"   => _("The 'sambaRidBase' statement defines the base id to add to ordinary sid calculations - if not available inside of the LDAP."),
886                                 "check"         => "gosaProperty::isInteger",
887                                 "migrate"       => "",
888                                 "group"         => "samba",
889                                 "mandatory"     => FALSE),
891                         array(
892                                 "name"          => "enableSnapshots",
893                                 "type"          => "bool",
894                                 "default"       => "false",
895                                 "description"   => _("The 'enableSnapshots' statement enables a snapshot mechaism in GOsa. This enables you to save certain states of entries and restore them later on."),
896                                 "check"         => "gosaProperty::isBool",
897                                 "migrate"       => "",
898                                 "group"         => "snapshot",
899                                 "mandatory"     => TRUE),
901                         array(
902                                 "name"          => "snapshotBase",
903                                 "type"          => "dn",
904                                 "default"       => "ou=snapshots,dc=localhost,dc=de",
905                                 "description"   => _("The 'snapshotBase' statement defines the base where snapshots should be stored inside of the LDAP."),
906                                 "check"         => "gosaProperty::isDn",
907                                 "migrate"       => "",
908                                 "group"         => "snapshot",
909                                 "mandatory"     => FALSE),
911                         array(
912                                 "name"          => "snapshotAdminDn",
913                                 "type"          => "dn",
914                                 "default"       => "cn=admin,dc=localhost,dc=de",
915                                 "description"   => _("The 'snapshotAdminDn' variable defines the user which is used to authenticate when connecting to 'snapshotURI'."),
916                                 "check"         => "gosaProperty::isDn",
917                                 "migrate"       => "",
918                                 "group"         => "snapshot",
919                                 "mandatory"     => FALSE),
921                         array(
922                                 "name"          => "snapshotAdminPassword",
923                                 "type"          => "string",
924                                 "default"       => "secret",
925                                 "description"   => _("The 'snapshotAdminPassword' variable defines the credentials which are used in combination with 'snapshotAdminDn' and 'snapshotURI' in order to authenticate."),
926                                 "check"         => "",
927                                 "migrate"       => "",
928                                 "group"         => "snapshot",
929                                 "mandatory"     => FALSE),
931                         array(
932                                 "name"          => "idAllocationMethod",
933                                 "type"          => "switch",
934                                 "default"       => "traditional",
935                                 "defaults"      => "core::getPropertyValues",
936                                 "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."),
937                                 "check"         => "",
938                                 "migrate"       => "",
939                                 "group"         => "id",
940                                 "mandatory"     => TRUE),
941                         array(
942                                 "name"          => "snapshotURI",
943                                 "type"          => "uri",
944                                 "default"       => "ldap://localhost:389",
945                                 "description"   => _("The 'snapshotURI' variable defines the LDAP URI for the server which is used to do object snapshots."),
946                                 "check"         => "",
947                                 "migrate"       => "",
948                                 "group"         => "snapshot",
949                                 "mandatory"     => FALSE)
950                             )));
951     }
953 ?>