Code

3132b095d0164a14dbc5d3f2186a6a441a1146b0
[gosa.git] / gosa-core / FAQ
1 This is the textual form of the GOsa FAQ. Online information with
2 comments is set up at Wiki: https://oss.gonicus.de/labs/gosa/wiki/documentation
5 Q:  When creating many users for one department, I need to fill 
6     somefields again and again. Is there a shortcut for that?
8 A:  Just create a user template and pre-fill all values you need. You
9     can use dynamic content, too: uid, sn and givenName will be replaced.
10     i.E. an entry '/home/{%uid}' in homeDirectory will be replaced by the
11     real uid of the user you're creating, {%sn[0-4]}.{%givenName}@yourdomain.com
12     creates proper email addresses, etc. Templates include group membership.
14     For more details visit:
15     https://oss.gonicus.de/labs/gosa/wiki/PluginInstallationUserTemplates
19 Q:  I can see passwords in my logs and in my process list while executing 
20     commands, such as postcreate/passwordHook/aso.
22 A:  The best way to execute scripts with sensitive data is to use envrionmental 
23     variables in your scripts, like shown here:
25     An example snippet from the gosa.conf
26     
27     ---
28     <plugin name='User password' class='password'
29         postmodify="NEWPASSWORD=%new_password /usr/bin/sudo /scripts/myScript.sh"
30     ---
31     
32     Another example for the password check hook (The passwordHook is deprecated in GOsa 2.7):
33     ---
34     <location
35         passwordHook="CURRENTPWD=%current_password NEWPWD=%new_password /usr/bin/sudo /scripts/myScript.sh"
36     ---
38     You can then use the variables like this:
39     ---
40     #!/bin/sh
41     echo $CURRENTPWD
42     echo $NEWPWD
43     ---
47 Q:  Can GOsa execute commands 'BEFORE' creating/editing/removing users,departments, etc. 
49 A:  Yes. Edit /etc/gosa/gosa.conf's menu section. 
50     Each plugin may has an entry "preremove", "premodify" and "precreate".  
51     You can use ldap attributes as command line options.
53     i.E. 
54     ---
55     precreate="/usr/bin/sudo /usr/local/sbin/ftp.setperms %uid %givenName"
56     ---
60 Q:  Can GOsa execute commands 'AFTER' creating/editing/removing users,departments, etc. 
62 A:  Yes. Edit /etc/gosa/gosa.conf's menu section. 
63     Each plugin may has an entry "postremove", "postmodify" and "postcreate".  
64     You can use ldap attributes as command line options.
66     i.E. 
67     ---
68     postcreate="/usr/bin/sudo /usr/local/sbin/ftp.setperms %uid %givenName"
69     ---
73 Q:  I'd like to  modify the look of GOsa to fit our CI. How can I create anown theme? 
75 A:  Themes are splitted into two parts. ihtml/ contains templates which
76     generate the ui, html/ contains all parts that must be readable from
77     clients. GOsa first looks for predefined files in the directory indirectly
78     defined via the "theme" parameter in /etc/gosa/gosa.conf. If it can't
79     find them here, it'll use the default one.
81     So start over by copying html/themes/default to html/themes/yourtheme
82     and ihtml/themes/default to ihtml/themes/yourtheme. Change gosa.conf to
83     contain theme="yourtheme" in section main. Here are some files to edit:
85     * login.tpl          -> login screen
86     * framework.tpl    -> page contents
87     * style.css          -> stylesheets used by GOsa
91 Q:  How can I let a person do administrative tasks under a specific department? 
93 A:  GOsa 2.6 implements a flexible but complex ACL management, please have a look at 
94     the following wiki page: https://oss.gonicus.de/labs/gosa/wiki/DocumentationWritingACLs2.6
95     If you have still questions, please use the mailing list or the forum.
99 Q:  What about applications? 
101 A:  GOsa can manage desktop applications in ldap. Create a group and put all users
102     in there, which have common desktop settings. Go to the "Application" tab and
103     add all applications common to this group. Applications can be created from the
104     application plugin.
105     The idea behind this feature is a script running on the terminal-servers/
106     workstation which check for applications on login (or on a regular basis using
107     timestamps). This one will create the corresponding icons on your KDE or GNOME
108     desktop.
112 Q:  What's this terminal stuff? 
114 A:  GOto is - similar to LTSP - a ldap based diskless client system. It is available
115     from our projects page.
119 Q:  I can't select any mailservers. What's wrong? 
121 A:  It seems that a mail server is missing in your configuration.
122     Create a new server, go to the services tab and add a mailserver 
123     service and/or the imap service.
124     For more details, please have a look at the FAQ and 
125     https://oss.gonicus.de/labs/gosa/wiki/PluginInstallationMailMethods. 
129 Q:  Can I specify some kind of password policies? 
131 A:  You can place the keywords "passwordMinLength" and "passwordMinDiffer" in the main
132     section of your gosa.conf. "passwordMinLength" specifies how many characters a
133     password must have to be accepted. "passwordMinDiffer" contains the number of
134     characters that must be different from the previous password.
136     Note that these only affect passwords that are set by the user, not by the admins.
140 Q:  I've to update passwords on external windows PDCs. Can I 
141     add a command to letsynchronize these for me? 
143 A:  There's the possibility to add a hooks in gosa.conf's plugin tags 
144     using the "premodify/postmodify" keywords. The specified command 
145     will be executed with these additional parameters: 
146     * current_password 
147     * new_password 
148     * userPassword
150     ---
151     <plugin acl="users/password:self" class="password"
152      premodify="/scripts/prepareForPasswordChange %current_password %new_password %uid"
153      check="/scripts/checkPasswordHash %userPassword %dn"
154      postmodify="/scripts/changePassword %dn %uid %userPassword %current_password %new_password %userPassword"
155     >
156     ---
158     For further information about pre- and post hooks search for the premodify and postmodify statements.
160     So you can call i.e. smbpasswd to handle your password change on the PDC.
164 Q:  What about templates for vacation messages? 
166 A:  Create a directory to keep a set of vacation messages which are readable by the
167     user that runs your apache. In this example I'll use /etc/gosa/vacation for that.
169     Put your vacation files in there containing a "DESC:some descriptive text" as the
170     first line followed by the normal vacation text. You can use all attributes from
171     the generic tab. I.e.:
173     /etc/gosa/vacation/business.txt 
174     --- 
175      DESC:Away from desk
176      Hi, I'm currently away from my desk. You can contact me on
177      my cell phone via %mobile.
179      
180      Greetings,
181      %givenName %sn
182     ---
183      
184     Place the config option vacationTemplateDirectory="/etc/gosa/vacation" in the location found in
185     gosa.conf and a template box is show in the vacation mail tab.
189 Q:  How can I generate automatic ID's for user templates? 
191 A:  Add an entry describing your id policy in gosa.conf, location section:
194     1) Using attributes
195     You can specify LDAP attributes (currently only sn and givenName) in braces {}
196     and add a percent sign befor it. Optionally you can strip it down to a number
197     of characters, specified in []. I.e.
199     --- 
200     idGenerator="{%sn}-{%givenName[2-4]}"
201     ---
203     will generate an ID using the full surename, adding a dash, and adding at least
204     the first two characters of givenName. If this ID is used, it'll use up to four
205     characters. If no automatic generation is possible, a input box is shown.
207     2) using automatic id's
208     I.e. specifying
210     --- 
211     idGenerator="acct{id:3}"
212     ---
214     will generate a three digits id with the next free entry appended to "acct".
216     --- 
217     idGenerator="ext{id#3}"
218     ---
220     will generate a three digits random number appended to "ext".
225 Q:  I'm migrating from the current LDAP, now GOsa does not allow uid's 
226     and groupwith upper/lower case and spaces. What can I do? 
228 A:  Include the strictNamingRules="no" keyword in your gosa.conf's location section.
229     
230     WARNING: using strictNamingRules="no" will cause problems with cyrus/postfix!!
234 Q:  I'd like to place my users under ou=staff, not under ou=people. Can I changethis? 
236     Yes. You can change the people and group locations by adding the following
237     statements to your location sections:
239     --- 
240     userRDN="ou=staff"
241     groupRDN="ou=crowds"
242     ---
244     After logging in again, people and groups are created in the configured places.
245     As a side note, you can leave these strings blank for flat structures, too.
250 Q:  I really don't want dn's containing the CN for user accounts because I don't
251     want to support anonymous binds for uid resolution. 
252     Is it possible to have dn'scontaining the uid instead? 
254 A:  Yes. Placing the accountPrimaryAttribute="uid" keyword in your gosa.conf's location
255     section will solve your problem.
260 Q:  Hey, I've installed GOsa, but it claims something about "SID and / or RIDBASE
261     are missing in your configuration". What's wrong? 
263 A:  You've configured GOsa to use samba3, but your LDAP has no samba domain object
264     inside. Either log into samba for the first time to let it create that object,
265     or supply the sid and ridbase for your domain in your gosa.conf's location, i.e.:
267     --- 
268     <location name=...>
269         ...
270         sambaRidBase="1000"
271         sambaSID="0-815-4711" \>
272     ---
274     Remember to fill in your real domain sid which is retrievable by the command
275     "net getlocalsid".
279 Q:  We have massive performance problems with using samba as a member server. 
281 A:  This is a known issue. We're working around this by putting
283     --- 
284     <location name=...>
285         ...
286         sambaIdMapping="true"
287         ... \>
288     ---
290     into the configuration. GOsa will write the additional objectClass sambaIdmapEntry
291     to the group and user objects.
295 Q:  I get 'The value specified as GID/UID number is too small' when forcing IDs. Why? 
297 A:  This is an additional security feature, so that no one can fall back to uid 0. The
298     default minimum ID is 100. You can set it to every value you like by specifying
300     --- 
301     <location name=...>
302         ...
303         minId="40"
304         ... \>
305     ---
307     in your configuration. In this example 40 will be the smallest ID you can enter.
311 Q:  Aahhrg. I've updated to a new version and my gosa.conf seems to be broken. 
313 A:  Some parameters may have changed. Please move your gosa.conf away and re-run the setup.
318 Q:  I've saved my windows workstations in other locations like GOsa is doing it
319     for decades. Is there a way to change this? 
321 A:  Yes. Use the sambaMachineAccountRDN parameter in your location section: 
323     --- 
324     <location name=...>
325         ...
326         sambaMachineAccountRDN="ou=machineaccounts"
327         ... \>
328     ---
332 Q:  I'd like to have TLS based LDAP connections from within GOsa. Is this possible? 
334 A:  Yes, add
336     --- 
337     <location ...>
338         ...
339               ldapTLS="true"
340         ... \>
341     ---
343     to the location section of GOsa. This switch affects LDAP connections for a single location only.
347 Q:  Cyrus folder get created in the style user.username. I prefer the unix 
348     hirachystyle user/username. Is it possible to change this? 
350 A:  Yes, add
353     --- 
354     <location
355         cyrusUseSlashes="true"
356     ---
358     to the location or main section of GOsa and the folders are created in unix style.
362 Q:  I've a cyrus installation with customized user and folder prefixes. 
363     How can I tell GOsa to use the prefixes I prefer? 
365 A:  Simply set the following attributes in the location tag of your gosa.conf:  
367     --- 
368     <location 
369         mailUserCreation="myprefix/%mail%"
370         mailFolderCreation="myfolder\\.%cn%@%domain%"
371     ---
374     The dot in the above example is escaped to prevent it from replacing with '/' if 
375     cyrusUseSlashes is set to true.
378     You can use the following replacements:
379     --- 
380     %cn%       - The groups cn.
381     %uid%      - The users uid.
382     %prefix%   - The default prefix used by the mailmethod.
383     %uattrib%  - The configured mailAttribute="" (gosa.conf).
384     %domain%   - The domain part of the given mail address. (user@domain.com = domain.com)
385     %mailpart% - The user part of the mail address. (user@domain.com = user)
386     %mail%     - The complete mail address. 
387     ---
391 Q:  I want to use cyrus for multiple mail domains, but GOsa uses the 'uid' attribute 
392     for account namens, how do I change this to 'mail'? 
394 A:  Just add/modify the following line to/in your gosa.conf:
396     --- 
397     <location 
398         ...
399         mailAttribute="mail"
400     ---
404 Q:  I'd like to do special checks for several plugin parameters. How can I modify
405     GOsa to take care of these checks? 
407 A:  No need to modify anything. Just add a hook the the plugin you'd like to
408     check:
410     --- 
411     check="/your/command/binary"
412     ---
414     This binary will get an ldif to STDIN for analysis and may write an error message
415     to STDOUT. Note, that the supplied ldif may NOT be the original target ldif due
416     to technical reasons.
420 Q:  Is there a way to use ACL independet filtering when using administrative units? 
422 A:  Yes. Set "honourUnitTags" to "true" in your gosa.conf's location section.
426 Q:  How can i active the account expiration code for the gosa interface? 
428 A:  Yes. Just set "handleExpiredAccounts" to "true" in your gosa.conf's main section.
432 Q:  What is the correct connection string for a Kolab server in GOsa? 
434 A:  Try {localhost:143/novalidate-cert}.
438 Q:  Sieve is not working from GOsa - there are authentication problems
439     with this service, IMAP/POP is working. What's wrong? 
441 A:  Verify that the paramater sasl_auto_transition: no is not present in your imap.conf
445 Q:  I have a SIEVE problem - "Can't log into SIEVE server. Server  says //. - 
447 A:  Probably something is wrong with the authentification which is used by timesieved.
448     * Check if you can login with "sieveshell" on this host.
449     * Also check "telnet localhost 2000" - Is there any output about "Plain Login"?
451     Please verify the ldap imap attributes, like goImapSieveServer and goImapSievePort. 
452     These value can be modified using the server->services tab in GOsa 2.6.
454     Here is an older, but maybe helpful solution for Cyrus-Imapd 2.1.5 on SuSE 9.0:
455     * Install the "cyrus-sasl-plain" rpm from the distro-cd (This packet contains "sasl2/libplain" library).
456     * Modify your /etc/imap.conf:
458     --- 
459     sasl_pwcheck_method: saslauthd
460     sasl_mech_list: plain login
461     ---
463     * Modify your /etc/sysconfig/saslauthd:
465     --- 
466      SASLAUTHD_AUTHMECH=pam
467     ---
470 Q:  Slapd does not start after adding or changing schema files to the slapd config. What can I do? 
472 A:  Check the order of how slapd loads the schema files. 
473     Order of schema loading matters, because some schemas depend on other
474     schemas being already loaded. For a working order of the schema files 
475     look here: https://oss.gonicus.de/labs/gosa/wiki/InstallingLdap
479 Q:  Slapd does not start with kolab2.schema included. It claims that thedefinition of 
480     calFBURL is missing. What can I do? 
482 A:  For Kolab to work correctly you have to include the rfc2739.schema
483     in your slapd.conf. Insert it before the kolab2.schema
487 Q:  New implementations of OpenLDAP seem to require {sasl} instead of {kerberos}
488     in password hashes. GOsa writes the wrong string. What can I do? 
490 A:  You can set "useSaslForKerberos" to "true" in your gosa.conf's main section.
494 Q:  Is there a way to add the personalTitle attribute the the users dn? 
496 A:  Just add this line into the location section of your gosa.conf.
499     --- 
500     <location
501     ... 
502     personalTitleInDN="true"
503     ---
507 Q:  I'd like to assign different uid bases for certain user/group objects.How can this be achieved? 
509 A:  Use the 'baseIdHook' in your gosa.conf's location section to specify a script
510     which handles the ID generation externaly. It get's called with the "dn"
511     and the attribute to be ID'd. It should return an integer value.
515 Q:  I'd like to use rfc2307bis compliant groups. Is this possible? 
517 A:  Yes - place the rfc2307bis="true" inside of the location section of
518     your gosa.conf. Remember, that you can't create empty groups in this mode.
522 Q:  GOsa sessions expire too quick. Is there a way to change this? 
524 A:  Yes. Set "sessionLifetime" to the number of seconds of inactivity. 7200
525     (60x60x2) would be for two hours. Place this option inside the main
526     section of your gosa.conf.
530 Q:  Is there a way to let users change passwords without logging into GOsa? 
532 A:  Yes. Browse to "password.php". You can preset a couple of things i.e.:
534     --- 
535     http://your.admin.server/password.php?uid=cajus&method=md5&directory=GONICUS+GmbH
536     ---
540 Q:  GOsa only shows 300 entries at a time. Is this normal? 
542 A:  There's a default sizelimit. You can set the "ldapSizelimit" option in your
543     gosa.conf's  location section to a higher value to get rid of it.
547 Q:  I have problems with my ldap server when I open groups with a 
548     huge amount of members, what can I do? 
550 A:  You can set a nesting limit which ensures that the user names will not be 
551     resolved if the amount of members reaches this limit.
553     --- 
554     <location
555         ...
556         ldapFilterNestingLimit="100"
557     ---
560 Q:  I want to disable the "Is the configuration file up to date?" check when logging in.
561     How can I disable this check? 
563 A:  Just set the configVersion attribute to an empty value:
565     --- 
566     <conf configVersion="" >
567     ---
571 Q:  I've shredded my access control and am not able to do anything from now on. 
572     Is there a way to override the ACL? 
574 A:  Yes. Insert the following statement in the location section of your gosa.conf:
576     --- 
577     ignoreAcl="your user's dn"
578     ---
581 Q:  I can't logon as Administration, what is wrong? 
583 A:  It looks like you are missing an administrativ account. 
584     In newer versions of GOsa you can simply re-run the setup and create 
585     an admin account on the migration page. 
587     Additionally you can set ignoreACL in GOsa 2.6, just search the FAQ.
591 Q:  The Unix's user's shell list is empty (unconfigured) 
593 A:  Just copy or link your /etc/shell in /etc/gosa.
597 Q:  After upgrading GOsa, the setup.php doesn't work or looks broken.  
599 A:  You should delete all files in /var/spool/gosa
601     --- 
602     # cd /var/spool/gosa
603     # rm -rf *
604     ---
608 Q:  After installing GOsa using an existing LDAP tree, my user accounts are not listed. 
610 A:  You need to add the following objectClasses to your accounts:
612     --- 
613     objectClass: person
614     objectClass: organizationalPerson
615     ---
617     The setup will automatically migrate those accounts, see migration step in GOsa setup!
621 Q:  Is it possible to login with the users mail address too?  
623 A:  Yes, just add the following line to your gosa.conf:
625     --- 
626     <location 
627         ...
628         loginAttribute="mail"
629     ---
631     or for both, uid and mail:
633     --- 
634     <location 
635         ...
636         loginAttribute="uid,mail"
637     ---
641 PLEASE VERIFY THOSE
645 Q:  GOsa doesn't seem to follow my referrals. What can I do? 
647 A:  Place the option 'ldapFollowReferrals = "true"' inside your locations definition
648     and you should be fine.
651 Q:  GOsa is not in my native language, can I translate it to my language? 
653     Yes. Just go to the locale directory and copy the messages.po file somewhere
654     else. Edit the copy and put your translations into the msgstr lines. To be
655     included in next GOsa releases, you may want to send it to the GOsa maintainer.
656     Finally you need to create a directory with your language code. (i.e. de for
657     german) containing the LC_MESSAGES directory. Move your messages.po file there
658     and run 'msgfmt messages.po' in that directory. That's it.
660     You may need to restart apache, depending on your setup. On Debian, be sure
661     to have your locale generated (dpkg-reconfigure locales) before.
665 Q:  Can GOsa show some vendor information for given MAC addresses? 
667 A:  Yes. Download http://standards.ieee.org/regauth/oui/oui.txt and place
668     it in /etc/gosa/oui.txt.