Required privileges | |
---|---|
Some configuration settings are only available if you have administrator privileges. With user privileges, display settings can be configured, as well as filters, and the GPG key. Users may also change their own password. Filters have owners. If there is no owner, the filter applies to all users. Only with administrator privileges it is possible to create or modify filters for which the owner does not match the current login user. |
With the Configure button in the upper left panel,
you get access to the interactive configuration (stored in
$HOME/beltanerc
The following functions are provided
Administrator privilege required.
Your login name.
Your login password. If this is blank, the stored password will be kept (rather than set to blank). If exactly 32 chars, the input is assumed to be an MD5 hash already, otherwise the MD5 hash will be computed and stored.
(seconds) terminate session after this much seconds without user activity.
(TRUE/FALSE) yule is configured to strip the domain part from client names.
NOTE | |
---|---|
Beltane will need the FQDN of clients in the client database (or the IP number, if clients are known to yule by IP number only). In particular, Beltane will not function properly if you have only the hostname in the client database, and yule is configured to strip the domain. See Section 3.2, “The Clients panel” for more information on the client database. |
(TRUE/FALSE) If set to TRUE, beltane will request a comment for each baseline database update. The comment will be stored in the SQL database.
(TRUE/FALSE) If set to TRUE, and you are using browser-based http authentication over a SSL connection, and your http login name matches a username defined in the beltane configuration, you will automatically get logged in as this user.
(hostname) If this is not empty, and not set to "none", beltane will not use the userlist defined in the configuration, but will contact the LDAP server on that host to authenticate the user. See Section 5, “Using LDAP for login” for details.
(ldap dn) This is the base DN that beltane will use to authenticate users on the LDAP server. If the base DN contains the format specifier '%s' (e.g. ou=users,ou=%s,dc=example,dc=com), then the '%s' will be replaced by the realm. In order of precedence: first, the realm specified with the username (e.g. user@marketing), second, the default realm configured. See Section 5, “Using LDAP for login” for details.
The default string to insert in place of a '%s' in the base DN. See Section 5, “Using LDAP for login” for details.
(boolean) Whether to form the DN of a user by 'uid=username,base_dn' or by 'cn=username,base_dn'. The default is to use 'uid' (true).
The attribute that holds information about the privilege of a Beltane user. See Section 5, “Using LDAP for login” for details.
The (string) value of the privilege attribute that denotes users with admin privilege. See Section 5, “Using LDAP for login” for details.
The (string) value of the privilege attribute that denotes users with user privilege. See Section 5, “Using LDAP for login” for details.
The (string) value of the privilege attribute that denotes users with guest privilege. See Section 5, “Using LDAP for login” for details.
Administrator privilege required.
The path to yules data directory
(e.g. /var/lib/yule
).
This is the directory where client file signature databases and
client configuration files reside.
The path to yules pid file
(e.g. /var/run/yule.pid
).
The path to yules HTML status file
(e.g. /var/lib/yule/yule.html
). This
is a file written by the server providing basic status
information for the server itself and for the clients known
to the server.
The path to the beltane_cp helper application.
The path to the beltane_update helper application.
The path to the beltane_log helper application.
The path to the beltane_sign helper application (used for signing file databases).
The path to the yulectl application. This is included in the samhain/yule distribution. It provides a command-line interface to connect to the Unix domain socket of yule and submit commands for clients. The server will pass such commands to a client when the client connects for the next time (e.g. for delivering a timestamp message).
The path to the file where the list of files is stored that were updated with the last non-bulk update. This can be used as file list for the bulk update, i.e. you can use one host as template and select updates manually, and then carry over this selection to other hosts.
Administrator privilege required.
The database type. Possible values are PostgreSQL, MySQL, Oracle, and ODBC (not tested). Oracle and ODBC are only supported with samhain version 1.8.0 and above.
The name of the table in the SQL database (default: log).
The host where the SQL server runs (for UNIX socket: localhost if MySQL, blank if PostgreSQL).
The name of the SQL database (default: samhain).
The name of the SQL user.
The password of the SQL user.
Per-user configurable (no administrator privilege required).
(integer) add this number of seconds to ctime, and mtime when displaying details for modified files. Allows you to fix offsets between these items (which have to be in UT for beltane to work correctly) and log_time.
If this parameter is empty (as in empty string), and your PHP version is at least 5.2.0, Beltane will try to determine the correct offset automatically. If your PHP version is too old, an empty string will be treated as integer zero.
Always use the displayed times for constraints in the 'Bulk Update' function, because Beltane will automatically apply the reverse offset to them.
(integer) display at most this number of messages. The default value of '0' will display at most 1200 messages (but this is not a hardcoded maximum — you can set a higher limit).
(integer) time in seconds between window refresh for the message and client panel.
(TRUE/FALSE) also view messages from the server itself.
(TRUE/FALSE) sort clients alphanumerically in the 'Clients' panel.
(TRUE/FALSE) whether the message panel should be above (default), or to the right of the clients panel. If you change this option, it will only take effect after hitting Refresh, or the browsers reload button.
(TRUE/FALSE) whether the user that approved an update, and the comment for that update, should be displayed in the search results for a database search.
The height (in pixels) of the top panel containing menu and buttons. If you change this option, it will only take effect after hitting Refresh, or the browsers reload button.
The height (in pixels) of the message panel containing the list of messages. If you change this option, it will only take effect after hitting Refresh, or the browsers reload button.
The width (in pixels) of the client panel containing the list of clients. If you change this option, it will only take effect after hitting Refresh, or the browsers reload button.
Administrator privilege required for filters not owned by current login user.
Here you will see the list of already defined filters, as well as a single blank entry for the next filter to be defined. To delete a filter, simply delete its 'Pattern' field and submit.
Note | |
---|---|
As of version 2.4.7, a filter may comprise an optional second pattern as well as an optional time interval. These are ANDed, i.e. all conditions need to match in order for the filter to match. |
The 'owner' of a filter is the login user for which this filter applies. If this field is empty, the filter is used for all users. Otherwise, the filter is only applied if the given name matches the login user.
NOTE | |
---|---|
Users without administrative privilege may only see filters that apply to all users (no owner) and to themselves. They may only create and/or modify filters that are 'owned' by themselves (only). |
(TRUE/FALSE) automatically confirm filtered messages, i.e. change their status from NEW to ACK_AUTO (acknowleged) in the database. If you don't use this option, the number of messages returned by a database query, but then filtered out, will increase with time, and eventually cause bad performance.
The pattern to match. This may be a simple string or a Perl-style regular expression. Log records matching the pattern will get suppressed. Please note that PCRE regular expressions must be enclosed by matching delimiters (e.g. /pattern/ or #pattern#).
On Linux, see man perlre for details on Perl regular expressions. You may also have a look at the PHP manual for an overview of Perl-Compatible Regular Expressions (PCRE): http://php.net/manual/en/pcre.pattern.php
Whether the pattern should be interpreted as string (fast) or regular expression (slow).
The field, to which the filter should be applied. If this field matches the pattern, the message will not be shown, and eventually automatically confirmed, depending on the 'ACK filtered'setting for this filter.
NOTE | |
---|---|
The 'Log record tag' contains an MD5 checksum computed by yule over an arbitrary set of user-defined database fields. Basically, this should allow you to easily filter any rows in the database you like. E.g. on startup, clients will report the checksum of the configuration file, or the fingerprint of the PGP key used for signing. You could e.g. let yule include these fields in the 'Log record tag' ('log_hash' in the database), and filter ot all startup messages with 'good' config file checksums/PGP fingerprints. |
These fields serve to define a date or time interval, such that the filter is only applied to messages logged during that interval. If only a time (HH:MM:SS) without a date is specified, then it will apply every day. If only times without date are given and "Time Upper" is lower than "Time Lower", it is interpreted as wrap around midnight.
Per-user configurable (no administrator privilege required).
The key ID for the signing key. Gpg understands the 8-digit hexadecimal ID as well as some other ways to specify the key.
The directory where the keyrings are located (usually
/some/user/.gnupg
).
Here you will see the list of already defined users, as well as a single blank entry for the next user to be defined. To remove a user from the system, simply delete its 'User name' field and submit. Note that this does not affect currently logged-in users.
Fill in to create a new user. Erase User name to remove a user. Leave Update privilege to FALSE, if you don't want the user to perform any database update actions. See also Section 4.8, “Additional users”.
An optional comma-separated list of groups the user belongs to. If you leave this blank, the user belongs to no group, and can view all clients. If you enter a (list of) group(s), the user can view all clients pertaining to these groups. See also Section 6, “Defining groups for hosts and users”.
Fill in when you create a new user.
(ADMIN/USER/GUEST) Leave Privilege level to GUEST, if you don't want the user to perform any database update actions. See also Section 4.8, “Additional users”.
Initially, there is excatly one user, and this user has administrative permissions. It is not possible to delete this user (but it can be renamed).
An arbitrary number of additional users can be defined, which can have one of three different privilege levels: administrative users, normal users, and guests.
Administrative users have permission to update the configuration of Beltane.
Normal users may not alter global configuration settings, or create or modify other users, but can use Beltane to browse messages and update baseline databases.
Guest users may use Beltane to browse messages, but cannot perform any actions that may alter any data.
Users can be members of one or several group(s). For each user, there is a field User group(s), where you can enter a comma-separated list of groups. If you leave this field blank, the user can view all clients. If you enter a group (or list thereof), the user can only view clients pertaining to this group(s).
In the configuration menu, you will always find one empty pair of User name, User password input boxes. Fill them in to create a new user.
For existing users, the user ID is shown, as well as a pair of User name, User password input boxes. Only the user name is shown. If you want to remove a user, just erase the user name and submit.