This chapter deals with connecting LDAP-compatible servers to Veyon. Below we will just use the generic term LDAP and thereby mean all LDAP-compatible products and technologies such as OpenLDAP, Samba or Active Directory. LDAP integration enables you to use most of the information about users, user groups, computers and rooms from existing environments, instead of manually reshaping them through the Veyon configuration. On the one hand LDAP users and user groups may serve as data base for Computer access control and on the other hand the Veyon Master can load rooms and computers to be displayed directly from the directory service.
The configuration of LDAP integration can be done on configuration page LDAP in Veyon Configurator. The page is divided into several subpages for Basic settings, Environment settings, Advanced settings and Integration tests.
The basic settings affect all basic parameters for accessing an LDAP server. They are mandatory for a properly working LDAP integration.
- LDAP server and port
- Enter the address of the LDAP server (name or IP address) here. If a different port than the default LDAP port 389 is used, the port parameter has to be adjusted accordingly.
- Anonymous Bind / Bind credentials
- Depending on the environment and configuration of the LDAP server, LDAP queries can be performed either as an anonymous user or only with proper user name and password. If the server access requires a user name and password, the option Bind credentials has to be activated and the credentials have to be entered into the following input fields. Otherwise the default option Anonymous Bind can be used.
- Bind DN
- The Bind DN is the user name needed for a login at the server in order to process LDAP operations. However, the required format vastly depends on the LDAP server and its configuration. Possible formats include
- Bind Password
- In connection with the Bind DN the respective password has to be entered.
You can use the Test button to verify, whether server access is working with the supplied set of parameters.
Veyon exclusively perform reading LDAP operations. For security reasons it may be a good option to create a read-only user, for example “Veyon-LDAP-RO”. Access to relevant attributes can be further restricted for this user.
Veyon can establish an encrypted connection with the LDAP server. For this purpose, settings are available in the section :guilabel:`Connection security.
- Encryption protocol
You can choose between the encryption protocols None, TLS and SSL. The use of the modern TLS protocol is recommended.
- TLS certificate verification
This setting determines how the certificate of the LDAP server is to be checked when the encrypted connection is established. The default setting System defaults attempts to verify the certificate against the root certificates installed system-wide, depending on the operating system. The Windows certificate store is not taken into account here, so that a separate CA certificate file may have to be stored. The Never setting does not verify the server certificate at all, but this allows man-in-the-middle attacks and should therefore only be used in exceptional cases. The User-defined CA certificate file setting ensures that the certificate check is performed on the basis of a specified CA certificate file.
Default: System defaults
- User-defined CA certificate file
- If you use your own certification authority (CA), it may be necessary to store their certificate in a PEM file format so that Veyon can check the certificate of the LDAP server.
An essential foundation which holds all objects that are to be used, is defined through the Base DN. This foundation usually is taken from the DNS or AD domain (see also RFC 2247).
In case a fixed Base DN is used, the default option Fixed Base DN has to be activated and the Base DN has to be entered in the input field. You can use the Test button to verify, whether the settings are correct and new entries can be found.
If a generic Veyon configuration is to be used for example at several sites with different Base DNs, Veyon can be configured such that the Base DN is always dynamically queried using the LDAP naming contexts. Therefore the equally named option has to be activated and the naming context attribute must be changed. You can use the Test button to verify, whether a Base DN can be found.
After importing a generic Veyon configuration without a fixed Base DN it is also possible to find the Base DN through the Command line interface and write it to the local configuration.
After the basic settings have been configured and tested, the environment settings can be processed. These settings define which trees hold objects and how particular object attributes are named. Using these parameters, Veyon can query the information needed from the LDAP directory.
Object Trees are organizational and structural units, in which specific types of objects (users, groups, computers) reside. The corresponding CNs (Common Names) or OUs (Organizational Units) must be entered in the respective input field, if no Base DN is used. Next to each input field there is a button to check the corresponding object tree.
- User Tree
- Enter the LDAP tree (without Base DN) the users (user objects) reside in. Typical examples are
- Group Tree
- Enter the LDAP tree (without Base DN) the groups (group objects) reside in. Typical examples are
- Computer Tree
- Enter the LDAP tree (without Base DN) the computers (computer objects) reside in. Typical examples are
- Computer Group Tree
- If the computer groups are located in different tree than the regular (user-)groups or in a subtree, the respective LDAP tree can be entered here. Otherwise the group tree is also used to query computer groups and filter them with a specific object filter if necessary.
- Perform recursive search operations in object trees
You can use this option to control whether objects shall be queried recursively. In this case the search is not only performed in the determined tree but also in all possible subtrees.
If objects of a single type reside in various object trees (e.g. users in
CN=Teachers and also in
CN=Students), the parameter for the respective object tree can be left empty and the option Perform recursive search operations in object trees can be activated. In this case a recursive search through the complete LDAP directory starting from the Base DN is performed. However, you should by all means set the object filter for the respective object type.
In order for Veyon to retrieve the required information from the queried objects, the names of some object attributes have to be configured, as they may vary broadly depending on the specific environment and LDAP server. Next to each input field there is a button that can be used to check each attribute name.
- User Login attribute
- This attribute must contain the login name of a user. It is used to determine the LDAP user object belonging to a specific user. In an OpenLDAP environment often the attribute name
uidis used to this end, whereas Active Directory frequently uses
- Group Member attribute
- Members of a group are listed in group objects through this attribute. It is used to determine the groups a particular user is a member of. Depending on the configuration they attribute also also used
for mapping computers and rooms. In an OpenLDAP environment often the attribute name
memberis used to this end, whereas Active Directory frequently uses
- Computer Name attribute
- This attribute takes the DNS name of the computer. It is used to determine the LDAP computer object belonging to a specific computer name (host name). In an OpenLDAP environment often the attribute name
nameis used to this end, whereas Active Directory frequently uses
- Computer names are saves as fully qualified domain names.
This option determines whether the fully qualified domain name (FQDN) is used for the mapping of computer names to LDAP computer objects. If the computer names are saved without the domain part in the LDAP directory, this option has to be disabled.
- Computer MAC address attribute
- Additionally to the computer name the MAC addresses of computers are stored in the LDAP directory in some environments, for example, if the DHCP server is also accessing the LDAP directory. If the Veyon function Wake-on-LAN shall be used, the respective attribute name has to be entered here, since the MAC address is required for this function. Typical examples are
A standard Active Directory does not have an attribute for storing MAC addresses. You’ll need to populate MAC addresses manually in an existing unused attribute such as
wwwHomepage or extend the AD scheme. Additionally you can grant computers group write access to
SELF and let them store the MAC address of the first physical LAN adapter by using a PowerShell startup script.
- Computer room attribute
- If the LDAP scheme for computer objects needs a special attribute for the mapping to a room, this attribute name can be entered here. You can use the Test button to verify, whether the members of a computer room can be correctly queried using the configured attribute. In the advanced settings, you can configure in section Computer rooms that the computer room attribute is used.
- Computer room name attribute
- If computer groups or computer contains are used as rooms, instead of the Common Names of these groups or objects, the value of a specific attribute for the displayed room name can be used. For example, if computer groups have an attribute
description, you can store a meaningful room declaration in this place.
With the advanced settings the LDAP integration and usage of information from the LDAP directory can be tailored to fit individual needs.
Optional object filters¶
By using LDAP filters the LDAP objects used by Veyon can be limited, e.g., if computer objects such as printers should not be displayed in Veyon Master. Next to each input field there is a button to check the respective attribute name.
- Filter for users
- You can define an LDAP filter for users here, e.g.
- Filter for user groups
- You can define an LDAP filter for user groups here, e.g.
- Filter for computers
- You can define an LDAP filter for computers here, e.g.
- Filter for computer groups
- You can define an LDAP filter for computer groups here, e.g.
(cn=Room*). If computer groups are used as rooms, you can limit the rooms to be displayed with this method.
- Filter for computer container
- You can define an LDAP filter for computer groups here, e.g.
(objectClass=organizationalUnit). If container/OUs are used as rooms, you can limit the rooms to be displayed with this method.
Identification of group members¶
The content of the group membership attributes varies across different LDAP implementations. Whilst in Active Directory the distinguished name (DN) of an object is stored in a member attribute, OpenLDAP usually stores the login name of a user (
uid or similar) or the computer name. In order for Veyon to use the correct value for querying a user’s groups or computers, the correct setting has to be chosen.
- Distinguished name (Samba/AD)
- This option has to be chosen, if the distinguished name (DN) of an object is stored in a member attribute of the group. Usually Samba and AD server use this scheme.
- Configured attribute for user login or computer name (OpenLDAP)
- This option has to be chosen , if the user login name or computer name is stored in a member attribute of a group. Usually OpenLDAP server use this scheme.
Veyon provides several methods to map computer rooms to an LDAP directory. In the most simple case there is one computer group for every computer room which all computers of a room are a member of. If computers reside in containers or Organizational Units (OUs), these superior objects can be used as rooms. In both cases do not entail an update of the LDAP scheme. As a third possibility the room name can be stored as special attribute in each computer object.
- Computer groups
You can use this option to define, that computer rooms are mapping using computer groups. All computer groups will be displayed as rooms in Veyon Master. In each room all computers that are members of the specific group are displayed. In case not all LDAP groups shall be displayed as rooms, you must either configure a dedicated computer group tree or restrict the computer groups by using a computer group filter.
- Computer container or OUs
This settings defines that the containers/OUs in which the computer objects reside are used as computer rooms. Containers are objects that are superior to computer objects in the LDAP tree. In case not all containers shall be displayed as rooms, a respective computer container filter can be defined.
- Common attribute
If the LDAP scheme expects a special attribute for the mapping of computer objects to a room, this option can be activated and the attribute name can be entered. You can use the Test button to check, whether the members of a computer room can be queried correctly with the configured attribute.
By using integration tests the LDAP integration as a whole can be tested. The buttons allow for various tests to be performed. All tests should be run successfully and return valid results before the LDAP connection is used in production.
Using LDAP backends¶
After successful configuration of the LDAP integration, the LDAP backend can be activated. Both Network object directory as well as the user groups backend for the Computer access control have to changed. Only after the network object directory has been changed to LDAP the room and computer information from the LDAP directory are used in Veyon Master.
After the backend has been changed for the computer access control, all previously configured access rules should under all circumstances be checked, since group and room information change and in most cases access rules will no longer be valid or not be processed correctly.
Command line interface¶
There are several LDAP specific opertions provided through the Command line interface of Veyon. All operations are provided through the
ldap module. All list of all supported commands is printed on entering
veyon-ctl ldap help, whilst command specific help texts can be shown via
veyon-ctl ldap help <Command>.
This command can be used to automatically determine the used Base DN and permanently write it to the configuration. An LDAP server URL and optionally a naming context attribute have to be supplied as parameters:
veyon-ctl ldap autoconfigurebasedn ldap://192.168.1.2/ namingContexts
veyon-ctl ldap autoconfigurebasedn ldap://Administrator:MYPASSWORD@192.168.1.2:389/
Special characters such as
: – especially in the password - can be specified by using URL percent-encoding.
This command allows querying LDAP objects (
users) and is designed mainly for debugging purposes. However, the function can also be used for developing scripts that may be helpful for system integration.
veyon-ctl ldap query users
veyon-ctl ldap query computers