Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

API login with LDAP...
 
Notifications
Clear all

API login with LDAP credentials

1 Posts
1 Users
0 Reactions
2,769 Views
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 
[#8220]

Hi,

For anyone who would like to use LDAP authentication with the Projeqtor API, we've found the following configuration works nicely on an Apache server.
In case it can help 🙂

In the configuration for your virtual host, add the following information to automatically use the LDAP authentication mechanism for users of your Projeqtor application.

 
# API ACCESS

  Options Indexes MultiViews FollowSymLinks
  AllowOverride None
  Order deny,allow
  Deny from all
  Allow from 127.0.0.1 1.2.3.4 # if you want to restrict the API access only to specific IP addresses

  
     RewriteEngine On
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule ^(.*)$ index.php?uri=$1
  

  AuthBasicProvider ldap
  AuthType Basic
  AuthName "Login using LDAP"
  AuthLDAPURL "ldaps://ldap-server/DC=mycompany,DC=com?sAMAccountName?sub?(objectClass=person)"  # if using SAMAccountName to store user name in LDAP
  AuthLDAPBindDN "LDAP-generic-user-name"
  AuthLDAPBindPassword "LDAP-generic-user-password"
  Require valid-user

 


 
Posted : 21 Apr 2022 12H55
Share:

Scroll to Top