Runtime expression

lalith jayaweera j_lalith at hotmail.com
Thu Jul 23 04:15:04 EDT 2015


 Hi,
 
In attribute-resolver.xml, I have defined a BasicAttribute  (customAttribute1) based on the values of the principal with the intention of using in the LDAP block as below,
 



<resolver:DataConnector id="myLDAP"
xsi:type="dc:LDAPDirectory"


       
ldapURL=ldap://xxx.com:xxxx


       
baseDN="xxxxxxxxxxxx"


       
principal="cn=admin,xxxxxxxx"


       
principalCredential="xxxxx">


       
<resolver:Dependency ref="customAttribute1" />


     
<dc:FilterTemplate>


     <![CDATA[


       
(employeeNumber=${customAttribute1})


            ]]>


       
</dc:FilterTemplate>


   
</resolver:DataConnector>  However when I see the debug it has evaluated with a additional '[' ']' in the value for the employeeNumber, and LDAP search fails. What is the reason for the additional brackets in the value, how to get rid of that? above I want above block to be evaluated for both ECP and WEB profiles 





13:14:38.991 - DEBUG [edu.vt.middleware.ldap.Ldap:194]
-   dn = dc=vu,dc=edu,dc=au


13:14:38.992 - DEBUG [edu.vt.middleware.ldap.Ldap:195]
-   filter = (employeeNumber=[34563])


13:14:38.992 - DEBUG [edu.vt.middleware.ldap.Ldap:196]
-   filterArgs = []


13:14:38.993 - DEBUG [edu.vt.middleware.ldap.Ldap:197]
-   searchControls =
javax.naming.directory.SearchControls at 8aa682f


 
 

                  



                  




 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150723/7c127f3d/attachment-0001.html>


More information about the users mailing list