View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - API login with LDAP credentials - ProjeQtOr
 
 

API login with LDAP credentials

More
21 Apr 2022 10:55 - 21 Apr 2022 10:56 #1 by caccia
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
<Directory /var/www/projeqtor/api>
  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

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

  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
</Directory>


 
Last edit: 21 Apr 2022 10:56 by caccia.
The following user(s) said Thank You: babynus, Arkhanje, Flou, Sajid626

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.028 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.