26
Views
4
Comments
LDAP - Enterprise Manager user synchronization
Question
The attached oml is a sample on how to update Enterprise Manager with user information obtained from an LDAP directory.

It's compatible with Enterprise Manager 2.1.1

There's one EM Backoffice screen to define LDAP connection data and start a new synchronization process, and another screen to check the log of executed processes.

Synchronization processes read all LDAP user data based on a root directory and search criteria and updates EM with it. If the user does not exist in EM, it is created based on LDAP info with IsActive property set to false. User matching is done trough Username.
Updated properties are:
- Username
- Name
- Mail
- Phone
- Fax
- Mobile
- CreationDate
- CreatedBy
- UpdatedAt
- UpdatedBy
- Code

Users removed from LDAP directory are set to inactive in EM after each synchronization process. This doesn't affect users created directly in EM.

Pre-requisites:

- OutSystems Platform 4.0
- LDAP extension

If using Microsoft Active Directory you may want to check UserAccountControl property to validate if user is active. See https://support.microsoft.com/kb/305144 for details (in Portuguese).


Regards,

Tiago Gafeira.
UserMasterLDAPSync.oml
UserImage.jpg
LSpinola
Hi,

I download the UserMasterLDAPSync and use it.

It's great, I only have one suggestion to make: the attribute in Entity LDAP_CONNECTION ( as well in database table) is in plain text, anybody can see the password!
Thanks,
Maria de Lurdes Spínola
2016-04-21 20-09-55
J.
 
MVP
I want to test this with the latest version, but it uses an action called "Login_WithCookie" among some others.

But they don't exist anymore?
2024-06-03 04-49-03
João Fernandes
Hi,

I am using the LDAPSync to get users from Active Directory, and i need to get in determinated situation to select only users from one group in AD, how can i do that?
Thanks
Regards

João Fernandes
2017-10-02 14-22-21
Paulo Tavares
Staff
Hi all.

I've attached the 4.2 version of Tiago's eSpace, since the existing version can no longer be upgraded by Service Studio 5.x .

Regards,

Paulo Tavares
UserMasterLDAPSync_4_2.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.