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.
Check the xml file returned by your sso connection.
You'll see all available fields returned by your sso.
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.
No, I mean the XML file returned from SSO after login.
You can open browser console / network to check response from SSO
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.
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.
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.
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 ?
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