View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - [SOLVED] Login error for user - ProjeQtOr
 
 

[SOLVED] Login error for user

More
23 Sep 2015 21:06 #1 by treddy_karra
Hello,
I have an issue with LDAP configuration. I can't login with LDAP User. Please check the log and Global Parameters

Here's the log
===== TRACE ===== Login error for user

Global Parameters

connection with LDAP user: Yes
LDAP base dn : DC=MYDOMAIN,DC=com
LDAP host : My Domain Server IP Address
LDAP port : 389
LDAP version : 3
LDAP user : CN=FirstName LastName ,CN=Users,DC=My Domain,DC=com
LDAP password : Admin user password
LDAP user filter : userPrincipalName=%USERNAME% (tried with uid and sAMAccountName filters as well)
default profile for Ldap users : Project Members
message on creation new user from Ldap : Email

Thanks
Thirumal
Attachments:

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

More
23 Sep 2015 21:54 #2 by babynus
Replied by babynus on topic Login error for user
You mau be facing identified issue :
www.projeqtor.org/en/kunena-2/5-ask-ques...em-ldap-search#10905
(fix is proposed in the post)

Babynus
Administrator of ProjeQtOr web site

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

More
23 Sep 2015 22:36 #3 by treddy_karra
Replied by treddy_karra on topic Login error for user
Quick fix (as a workaround) is to change line 2665 in /model/persistence/SqlElement.php from
if (getSessionUser()->id) {
to
if (1) {

I saw almost all the posts regarding LDAP issues and tried all the proposed solutions including this one but none of them worked for me.

I am not sure what else to check and posted the log here.

Thanks
Thirumal

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

More
24 Sep 2015 18:32 - 24 Sep 2015 18:36 #4 by babynus
Replied by babynus on topic Login error for user
It seems your search filter is not correct : does not retrieve a user or returns several users

You can add debugLog() lines or traceLog() lines in /model/User->autheticate)( methode to chech used filter and exact issue.
Something like this (line 939)
$result_user = ldap_get_entries($ldapCnx, $result);
			if ($result_user['count'] == 0) {
			  traceLog("authenticate - Filter error : ldap_search returned no result for filter $filter_r)" );
			  $this->unsuccessfullLogin();
				return "login";
			}
		  if ($result_user['count'] > 1) {
		    traceLog("authenticate - Filter error : ldap_search returned more than one result for filter $filter_r)" );
		    $this->unsuccessfullLogin();
        return "login";
      }
			$first_user = $result_user[0];
			$ldap_user_dn = $first_user['dn'];
      if (strtolower($ldap_user_dn)==strtolower($paramLdap_search_user)) {
      	traceLog("authenticate - Filter error : filter retrieved admin user (LDAP user in global parameters)" );
      	$this->unsuccessfullLogin();
      	return "login";
      }

Babynus
Administrator of ProjeQtOr web site
Last edit: 24 Sep 2015 18:36 by babynus.
The following user(s) said Thank You: treddy_karra

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

More
25 Sep 2015 21:13 #5 by treddy_karra
Replied by treddy_karra on topic Login error for user
it worked with sAMAccountName again

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

Moderators: babynusprotion
Time to create page: 0.037 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.