Authorization using LDAP Synchronization Module with Option Only authenticate user
We don’t want to import LDAP user into Mendix Application, so that I chose ‘Only authenticate users based on their pre-supplied credentials ’. when use LDAP account to login Mendix App, Since user isn’t in Mendix user table, user = Core.getUser(context, enteredUsername); will get a null. login fails. Is it mandatory that import user into Mendix in advance?
Long time ago that I did this. But from memory no. You only have to make sure that the Mendix user account name is the same as the accountname in the LDAP environment. Otherwise the user can not be found. So it might be easier to only sync this field and skip the create users actions.