Forum

SAML connection att...
 
Notifications
Retirer tout

SAML connection attribute problem (11.4.2)

9 Posts
2 Utilisateurs
0 Reactions
2,076 Vu
(@virgile)
Posts: 7
Active Member
Début du sujet
 
[#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.


 
Posté : 29/11/2024 2:01 pm
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 11/12/2024 4:26 pm
(@virgile)
Posts: 7
Active Member
Début du sujet
 

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.


 
Posté : 18/12/2024 4:08 pm
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 20/12/2024 9:56 pm
(@virgile)
Posts: 7
Active Member
Début du sujet
 

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.


 
Posté : 04/02/2025 5:47 pm
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 08/02/2025 2:28 pm
(@virgile)
Posts: 7
Active Member
Début du sujet
 

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.


 
Posté : 10/02/2025 3:35 pm
(@babynus)
Posts: 14952
Membre 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 ?


 
Posté : 18/02/2025 11:59 am
(@virgile)
Posts: 7
Active Member
Début du sujet
 

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


 
Posté : 18/02/2025 5:37 pm
Share:
Retour en haut