LDAP authentication to private server

4 views (last 30 days)
Jean Jacquet
Jean Jacquet on 19 Sep 2022
Commented: Jean Jacquet on 29 Sep 2022
I wanted to validate users using LDAP authentication from private server.
Is it possible idirectly from my Matlab application ?
Does i need some special module ?
Have you an example of application ?
Thank you

Answers (1)

Kapil Gupta
Kapil Gupta on 22 Sep 2022
Edited: Kapil Gupta on 22 Sep 2022
I understand you are trying to validate users using LDAP authentication.
Authentication is supported in the standalone MATLAB Web App Server. You can read more about the complete process in detail at:
In case you face any issues while using LDAP authentication in MATLAB web app server, given below are a few steps that can be used to debug issues with the authentication :
  1. Ensure that MATLAB Web App Server certs/keys are PEM encoded.
  2. OpenSSL and MATLAB Web App Server require the "BEGIN CERTIFICATE" and "END CERTIFICATE" to be on separate lines in the certificate used for SSL. Similarly, for the private key, ensure that "BEGIN PRIVATE KEY" and "END PRIVATE KEY" are on separate lines.
  3. The MATLAB Web App Server uses SSL/STARTTLS to secure communication with the LDAP server (SSL on Windows and STARTTLS on Linux and macOS). Make sure the LDAP server is configured to allow SSL/STARTTLS connection over the specified (or default) LDAP port. StartTLS is part of LDAP protocol . Make sure that the non-standardized LDAP ('LDAP over SSL') protocol is not being used instead. (https://en.wikipedia.org/wiki/Lightweight_Directory_Access_Protocol).
  4. Check if the following environment variable is present: "LDAPTLS_CACERT"
  5. Make sure that the webapps_authn.json file has the correct port number being used by the server.
  6. Make sure that the authentication files are named correctly: "webapps_authn.json" and "webapps_app_roles.json" for role-based access or "webapps_acc_ctl.json" for policy-based access, and they are in the correct directory: config/webapps_private
  7. Make sure that the "userFilter" and "baseDN" fields in webapps_authn.json select a unique user based on their username from the LDAP server.
  8. Make sure that the "searcherDN" and "searcherPassword" fields in webapps_authn.json are filled out if needed (in particular, the FreeIPA identity management system requires these fields to check for group membership).
You can also have a look at this MATLAB Answer which discusses a similar query:
  1 Comment
Jean Jacquet
Jean Jacquet on 29 Sep 2022
I don't want to use MATLAB Web App Server. I just want to authenticate user on a private Active directory using LDAP and then execute MATLAB application witch is already on local workstation.
Is it possible to do that ?

Sign in to comment.

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!