ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / User Groupware / User Groupware - Compatibility version
  • Overview
  • How to?
  • Branching the User Groupware on an LDP directory without management of rights
  • Branching the User Groupware on an LDP directory with management of rights
  • Starting the application
  • Installing the application that uses an LDAP directory
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
From version 18, the User Groupware evolves. This help page corresponds to the User Groupware kept for backward compatibility. To get this help page for the new version of the User Groupware, see User Groupware and LDAP.
Overview
The LDAP protocol is increasingly used by the companies. The LDAP protocol is used to query and modify the directory services. For example, Active Directory of Microsoft provides LDAP access to its data.
In a company, an account and a password are assigned to the users by the "IT" manager.
This account and this password can be directly used by the User Groupware of WINDEV and WEBDEV, with ability to define specific rights.
Remark: User Groupware works with Active Directory. It does not work with openLDAP.
How to?

Branching the User Groupware on an LDP directory without management of rights

To branch the User Groupware on an LDAP directory without management of rights:
  1. Configure the User Groupware ("Workshop .. Configure the User Groupware").
  2. On the "General" tab, check the options:
    • Use an LDAP directory to authenticate the users.
    • No management of rights
In this case, the User Groupware will create no data file. A supervisor will not be able to define the rights for the windows and for the pages.
When the application is started, the login window or page prompts the user to authenticate. If the user is saved in the LDAP directory, the application will start; otherwise, it will be closed.

Branching the User Groupware on an LDP directory with management of rights

To branch the User Groupware on an LDAP directory with management of rights:
  1. Configure the User Groupware ("Workshop .. Configure the User Groupware").
  2. On the "General" tab, check "Use an LDAP directory to authenticate the users".
In this case, the User Groupware creates the data files for managing the users and the rights. A supervisor can define the rights for the windows and for the pages.
Case 1: User Groupware database empty. The LDAP database exists
An additional configuration must be performed when implementing the application.
  1. Connect to the application as Supervisor (Login: "Supervisor", Password: "Supervisor").
  2. Choose "Configure the groupware".
  3. Select "Import users from the LDAP directory". A window allows you to import all the users.
    Note: If you are not authenticated on the LDAP server (e.g. 1st time user), you will be prompted for an LDAP user login and password.. The selected LDAP user must have the rights to list the users of LDAP directory.
  4. Click the "Import" button. The import is performed, all the LDAP users are displayed in the list of users.
    Note: It is advisable to give supervisor rights to a specific user and delete the existing default "Supervisor" user.
  5. You have the ability to assign rights to the imported users.
Case 2: User Groupware database already exists. The application connects to an LDAP database
Only the users found in the database of user groupware and in the LDAP database will be able to connect to the application (same logins for the users). The password to use is the LDAP password. The users not found in the LDAP database will not be able to start the application.
The rights can be managed by the users found both in the database of the groupware and in the LDAP database.
Note: Using an LDAP directory with rights management makes it easy to switch from LDAP mode to non-LDAP mode.. Simply check "Use an LDAP directory".

Starting the application

In automatic start mode:
LDAP server characteristics must be entered in the "LDAP" tab of the user Groupware settings window.
To get the name of the user, simply call gpwGetUserInfo:
Info("Bonjour "+ gpwGetUserInfo(gpwInfoLogin))
In manual launch mode:
To use the LDAP directory, an LDAP session must be started with gpwOpenLDAPSession before calling gpwOpen:
gpwOpenLDAPSession("xx.mycompany.com", 389, 3, False)
gpwOpen()
To identify a user without opening the login window, use the following code:
gpwOpenLDAPSession("xx.monentreprise.com", 389, 3, False)
IF gpwLogin("FP", "MotPasse")<>gpwOk THEN
	Error("Utilisateur ou mot de passe incorrect")
	EndProgram()
END
WINDEVWindows

Installing the application that uses an LDAP directory

The parameters of the LDAP directory can be entered by the user when installing the application.
To do this, when creating an application installation using user Groupware (option "Workshop ... Create installation procedure"), check the "Customize groupware file path during installation" option in the "Database parameters" screen.
In this case, a screen specific to the User Groupware will be displayed when the application is installed. This screen allows the person who installs the application to:
  • configure the location of the data files specific to the User Groupware. For more details, see Data files of user groupware.
  • enable the history of connections.
  • enable user authentication via an LDAP directory. In this case, you will have to enter the address of the server, the port number and the LDAP version used.
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help