SataConnector - Prevent Look-Ups is Value is Null

Joshua Brodie josbrodie at gmail.com
Mon Jan 12 19:22:52 EST 2015


Hi Everyone:

Coming back to Shibboleth after a 12m project hiatus elsewhere - my mind is
a bit raw and picking things up again.

I have the following DataConnector in the 'attribute-resolver.xml' - to
pick up employee status upon user entering username/password - the data
connector performs the DB lookup irrespective if the user has an employee
number or not (a NULL look-up) - this understandably drives our DBA up the
wall. Is there a way to prevent the DB look-up if employee number is null?

<resolver:DataConnector ....>
<resolver:Dependency ref="employee" />
<ContainerManagedConnection resourceName="java:comp/env/jdbc/CWLDB"  />
~
select STATUS from TABLE where EMPLID='$employeeKeywordValue.get(0)'
~
</resolver:DataConnector>

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20150112/882ea24a/attachment-0001.html 


More information about the users mailing list