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.

SAML connection att...
 
Notifications
Clear all

SAML connection attribute problem (11.4.2)

9 Posts
2 Users
0 Reactions
2,109 Views
(@virgile)
Posts: 7
Active Member
Topic starter
 
[#9641]

Hello,

We would like to set up a SAML connection with our ADFS. The connection parameters to our adfs are correct and the projeqtor adfs has been added. We want the connection to be made with the sAMAccountName attribute, but we're getting an “Undefined array key ‘sAMAccountName’ in SSO.php at line 106” error. No matter what the attribute name, it tells us “Undefined array key ‘XXXX’ in SSO.php at line 106”.

What attribute do we need to set for this to work?

Thank you in advance.

Best regards,
Virgile.


 
Posted : 29 Nov 2024 14H01
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Check the xml file returned by your sso connection.
You'll see all available fields returned by your sso.


 
Posted : 11 Dec 2024 16H26
(@virgile)
Posts: 7
Active Member
Topic starter
 

Hello,

The xml you mention is the xml we get like this: https://adfs.com/FederationMetadata/2007-06/FederationMetadata.xml ?

I tried with the name :
http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname

with its FriendlyName:
Windows account name

but still with the same problem.

Best regards,
Virgile.


 
Posted : 18 Dec 2024 16H08
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

No, I mean the XML file returned from SSO after login.
You can open browser console / network to check response from SSO


 
Posted : 20 Dec 2024 21H56
(@virgile)
Posts: 7
Active Member
Topic starter
 

Hello,

I get the following error when I try to connect using SAML:

ERROR: Undefined array key “NameID”
in SSO.php
at line 106

It doesn't matter which attribute is set on projeqtor, it tells me it's not defined.

I've looked at the XML sent by our ADFS and the NameID is indeed present:

ABCD1VUSER

Do you have an idea?

Best regards,
Virgile.


 
Posted : 04 Feb 2025 17H47
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Hi,

Add one debug line after line ~267 in tool/projeqtor.php

$authAttr = $_SESSION['samlUserdata'];
debugLog($authAttr);

Then set debug Mode in Adminsitration.
Finaly try and connect
You'll get a trace of all available fields.


 
Posted : 08 Feb 2025 14H28
(@virgile)
Posts: 7
Active Member
Topic starter
 

Hello,

I've just tested your procedure but I'm still getting the same problem:

ERROR : Undefined array key "NameID"
in SSO.php
at line 106

However, I'm in debug mode and I've added the following line to the tool/projeqtor.php file.


 
Posted : 10 Feb 2025 15H35
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

You defined 'NameID' in global parameters and this des not exsit.
Remove this configuration.

No Log in your log file générated by new line ?


 
Posted : 18 Feb 2025 11H59
(@virgile)
Posts: 7
Active Member
Topic starter
 

Hello,

Here is the log line related to the addition of debugLog($authAttr);

2025-02-18 15:34:13.474 ----- DEBUG ----- Array[0]

I have the impression that it doesn't receive any information from my ADFS.

Best regards,
Virgile


 
Posted : 18 Feb 2025 17H37
Share:

Scroll to Top