What should happen when you have 2 DataConnectors and 1 fails
Dan Malone
dmalone at calpoly.edu
Fri Oct 26 16:47:02 EDT 2018
Here's the scenario.
We have 2 LDAPDirectory DataConnectors, one pointing to our LDAP directory for all attributes except groups and the second pointing to Active Directory just to get groups (config snippet below). Groups is new to our configuration, so we only have one service that the group attribute is released to. Authentication is only against our LDAP directory.
We had an issue yesterday where the Active Directory DC we were connected to was rebooted unexpectedly. This resulted in the following error:
2018-10-25 09:11:39,925 - ERROR [net.shibboleth.idp.profile.impl.ResolveAttributes:299] - Profile Action ResolveAttributes: Error resolving attributes
net.shibboleth.idp.attribute.resolver.ResolutionException: Data Connector 'myAD': Unable to execute LDAP search
...
And users were receiving odd errors from all SAML and CAS integrated services and did not successfully authenticate to these services. None of these services in question have the group attribute released.
My assumption based on these results is that attribute resolution is occurring for *all* attributes every time, not just for the needed attributes.
Is this the expected behavior?
Is there a way to configure our AD DataConnector to fail more gracefully?
e.g. unable to connect or unable to search is equivalent to no attributes returned.
From attribute-resolver.xml:
<resolver:DataConnector id="myLDAP" xsi:type="dc:LDAPDirectory"
ldapURL="@idp.ent.ldap.url@" baseDN="@idp.ent.ldap.baseDN@"
principal="@idp.ent.ldap.principal@"
principalCredential="@idp.ent.ldap.credential@">
<dc:FilterTemplate>
<![CDATA[
(|(mail=$requestContext.principalName)(mail=$requestContext.principalName at calpoly.edu))
]]>
</dc:FilterTemplate>
</resolver:DataConnector>
<resolver:DataConnector id="myAD" xsi:type="dc:LDAPDirectory"
ldapURL="@idp.ent.ad.url@" baseDN="@idp.ent.ad.baseDN@"
principal="@idp.ent.ad.principal@"
principalCredential="@idp.ent.ad.credential@">
<dc:FilterTemplate>
<![CDATA[
(|(sAMAccountName=$requestContext.principalName)(userPrincipalName=$requestContext.principalName))
]]>
</dc:FilterTemplate>
</resolver:DataConnector>
Thanks,
Dan
--
Dan Malone
Lead Identity Management Architect
Information Technology Services
California Polytechnic State University
San Luis Obispo, California
Direct 805-756-6326
dmalone at calpoly.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20181026/9e6d0ce8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4207 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://shibboleth.net/pipermail/users/attachments/20181026/9e6d0ce8/attachment.p7s>
More information about the users
mailing list