[INDEX]

Config file

On a normal debian-installastion where libnss-ldap and or libpam-ldap is already set up, lwat should work out of the box. if not, or if you want to tweak you installation, with users home located somewhere else than /home, you might want to create or edit the configuration file that is located under /etc/lliurex-lwat and is called config.php.
There is a tool buildconf.php that will create a nice default for you. It will use any debconf input you have given, and else, try to lookup things as best as it can. You can fetch the result in your browser, or you can use php on the commandline:

php /usr/share/lliurex-lwat/web/buildconf.php > somefile
Then you may edit the file as you please.

Here is a short explenation of the variables used.
Variable Description Default value
$domain This variable is used to to form the mail-address of the users, if mail-address is added to the user objects. example.net
$base this is the "Distinguished Name" (DN) of the LDAP base where all groups, people, machines, etc. are located. dc=example,dc=net
$ldaphost This is the hostname (or ip-address) of the ldap-server ldap
$groupprefix The prefix under which the groups information is stored. Dont duplicate the information in the variable $base ou=Group
$homelocation Enter the path where the personal (home) directories of all users are stored. /home
$useLisGroup Debian edu installations use something called lisGroup, that is a self invented thing. This allow for both memberUid and member to be in the same group object, If useLisGroup is set to false, the variable AuthGroup is used instead to create a groupOfMembers. false
$authprefix The prefix under which the Authority groups is stored. If $useLisGroup is set to true, this one is not used. if $useLisGroup is set to false, then $authprefix must be different from $groupprefix ou=AuthGroup
$hostprefix The prefix under which the Host information is stored. Dont duplicate the information in the variable $base ou=Hosts
$netgroupprefix The prefix under which the Netgroup information is stored. Dont duplicate the information in the variable $base ou=Netgroup
$minPwLength The minimum length for users' passwords. By default, lwat will autogenerate 8 characters long passwords. 5
$minPwUpper Minimum number of uppercase letters passwords: 1
$minPwLower Minimum number of lowercase letters in passwords: 1
$minPwNumber Minimum number of digits (0-9) in passwords: 1
$allowPwSet When setting a new password, lwat normally generates a reasonably safe password. Setting this variable to true, will allow administrators to choose the password themselves. false
$smarty_templ lwat uses smarty for html-templating. By default will the templates be located under /usr/share/lliurex-lwat/templates, but you might create your own templates, and store them somewhere else by setting this variable. /usr/share/lliurex-lwat/templates
$smarty_compile smarty templates needs to be compiled before they are displayed. Here you might set another path (not sure you would like that, but hey, it's an option) /var/spool/lliurex-lwat