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.

Problems with setti...
 
Notifications
Clear all

Problems with setting up SAML2

2 Posts
1 Users
0 Reactions
1,470 Views
(@arope99)
Posts: 2
New Member
Topic starter
 
[#8724]

Hi,I'm trying to setup Projeqtor to authenticate using SAML2 through our organisation ADFS server.

LDAP is currently setup as follows with the following attributes: 

I can confirm that Projeqtor is talking to the ADFS server as shown below. SAML-Tracer results outlines NameID is being sent post ADFS authentication.

However, Projeqtor application does nor receive the "Name ID" attributes, and only received email and name attributes as shown below: 

Projeqtor SAML2 is currently configured as below: 

Looking at the Projeqtor log, it shows that Name ID is undefined (or not received): 
 

Can anyone let me know what is the problem here?

Below is the xml generated by Projeqtor:

urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified

ProjeQtOr
Projeqtor@........

The only issues I can see here is that the NameIDFormat is SAML 1.1 (urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified). Hence Projeqtor is expecting a different format that what the server is sending which is SAML 2.0 (urn:oasis:names:tc:SAML:2.0) as shown in the 2nd picture above.

Can anyone clarify this?

Thanks in advance.


 
Posted : 31 Jan 2023 11H19
(@arope99)
Posts: 2
New Member
Topic starter
 

Hi all,

Had played around the Projeqtor SSO authentication today, and found out that Projeqtor did received the "Name ID" but it was not stored in the authentication attributes array. Instead it has it's own variable storage.

In the file projeqtor/sso/projeqtor/index.php, attributes is stored as below:

$_SESSION['samlUserdata'] = $auth->getAttributes();

While Name ID is stored below: 

$_SESSION['samlNameId'] = $auth->getNameId();

However, when creating new user in tool/projeqtor.php, the code is looking for Name ID in attributes array. Hence the error.     

if (isset($authAttr[SSO::getAttributeName('uid')]) and isset($authAttr[SSO::getAttributeName('uid')][0]))
{       
   $login = $authAttr[SSO::getAttributeName('uid')][0];     
}
else
{       
   traceLog("Cannot retreive field ".SSO::getAttributeName('uid')." in samlUserData");       
   traceLog($authAttr);       
   $login=null;     
}

And also in the file projeqtor/model/SSO.php, it is also looking for Name ID from the attributes.   
 
$loginAttr=SSO::getAttributeName('uid');     
$mailAttr=SSO::getAttributeName('mail');     
$fullNameAttr=SSO::getAttributeName('commonName');     
$user->name=$authAttr[$loginAttr][0];

Can any of the developer comment about this? I think I need to modify the codes so the it will not get the Name ID from attributes. 

Is there any work around to this other than modifying the codes? Fyi, I'm using V10.1.

Thank you.


 
Posted : 01 Feb 2023 13H28
Share:

Scroll to Top