|
Attribute |
Format |
|
NAMEID_EMAIL_ADDRESS |
urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress |
|
NAMEID_X509_SUBJECT_NAME |
urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName |
|
NAMEID_WINDOWS_DOMAIN_QUALIFIED_NAME |
urn:oasis:names:tc:SAML:1.1:nameid-format:WindowsDomainQualifiedName |
|
NAMEID_KERBEROS |
urn:oasis:names:tc:SAML:2.0:nameid-format:kerberos |
|
NAMEID_ENTITY |
urn:oasis:names:tc:SAML:2.0:nameid-format:entity |
|
NAMEID_TRANSIENT |
urn:oasis:names:tc:SAML:2.0:nameid-format:transient |
|
NAMEID_PERSISTENT |
urn:oasis:names:tc:SAML:2.0:nameid-format:persistent |
'NameIDFormat' => 'urn:oasis:names:tc:SAML:2.0:nameid-format:transient',
I also figured out how to add static attributes w/ the following in the file saml20-sp-remote.php on my IDP.
'authproc' => array(
// Add STATIC Attributes here...
60 => array(
'class' => 'core:AttributeAdd',
'groups' => array('users', 'members'),
'domain' => array('DREXEL'),
),
--
You received this message because you are subscribed to the Google Groups "simpleSAMLphp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simplesamlph...@googlegroups.com.
To post to this group, send email to simple...@googlegroups.com.
Visit this group at http://groups.google.com/group/simplesamlphp.
For more options, visit https://groups.google.com/groups/opt_out.
50 => array(
'existing' => 'replace','class' => 'attributecollector:AttributeCollector','uidfield' => '$attributes["eduPersonPrincipalName"]','collector' => array(
'class' => 'attributecollector:SQLCollector','dsn' => 'mysql:host=localhost;dbname=test_DB','username' => 'DB_user','password' => 'user_passwd','query' => 'SELECT * from users where uid=:uidfield','get_all_query' => 'SELECT * from users where uid=:uidfield',
),
),
<saml:AttributeStatement>
<saml:Attribute Name="eduPersonPrincipalName"
NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity"
>
<saml:AttributeValue xsi:type="xs:string">userid</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="domain"
NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity"
>
<saml:AttributeValue xsi:type="xs:string">DOMAIN</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="emailAddress"
NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity"
>
<saml:AttributeValue xsi:type="xs:string">use...@hostname.net</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>When you return to attributecollector, I think you want 'uidfield' => 'eduPersonPrincipalName' as you want the attribute which contains the value you want to search on - not have the value substitute directly which will then be an empty attribute.
<saml:AttributeStatement>
<saml:Attribute Name="eduPersonPrincipalName"
NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
<saml:AttributeValue xsi:type="xs:string">rah322</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="emailAddress"
NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity"><saml:AttributeValue xsi:type="xs:string">rah...@domain.com</saml:AttributeValue> </saml:Attribute> <saml:Attribute Name="Full Name" NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
<saml:AttributeValue xsi:type="xs:string">Rafael Hinojosa</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="In Housing"
NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
<saml:AttributeValue xsi:type="xs:string">1</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>If the user successfully authenticates but is NOT found in the DB it will return the following :
<saml:AttributeStatement>
<saml:Attribute Name="eduPersonPrincipalName"
NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
<saml:AttributeValue xsi:type="xs:string">wireless2</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="emailAddress"
NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
<saml:AttributeValue xsi:type="xs:string">wire...@domain.com</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute Name="In Housing"
NameFormat="urn:oasis:names:tc:SAML:2.0:nameid-format:entity">
<saml:AttributeValue xsi:type="xs:string">0</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>Thanks again for responding & solving my issue altogether. You've been a tremendous help. Now I have to look at this crazy RADIUS box & see if I can make it return more info.
Thanks,
--Raf