<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'> Hi,<BR> <BR>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,<BR> <BR><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><resolver:DataConnector id="myLDAP"
xsi:type="dc:LDAPDirectory"<o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;">
</span>ldapURL=<a href="ldap://xxx.com:xxxx">ldap://xxx.com:xxxx</a><o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;">
</span>baseDN="xxxxxxxxxxxx"<o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;">
</span>principal="cn=admin,xxxxxxxx"<o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;">
</span>principalCredential="xxxxx"><o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;">
</span><resolver:Dependency ref="customAttribute1" /><o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;">
</span><dc:FilterTemplate><o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;"> </span><![CDATA[<o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;">
</span>(employeeNumber=${customAttribute1})<o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;"> </span>]]><o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;">
</span></dc:FilterTemplate><o:p></o:p></p><font face="Times New Roman">
</font><BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="mso-spacerun: yes;">
</span></resolver:DataConnector></p><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p><p class="MsoNormal" style="margin: 0cm 0cm 0pt;">However when I see the debug it has evaluated with a additional '[' ']' in the value for the employeeNumber, and LDAP search fails.</p><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p><p class="MsoNormal" style="margin: 0cm 0cm 0pt;">What is the reason for the additional brackets in the value, how to get rid of that?</p><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </p><p class="MsoNormal" style="margin: 0cm 0cm 0pt;">above I want above block to be evaluated for both ECP and WEB profiles</p> <BR><font face="Times New Roman">
<BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font face="Calibri">13:14:38.991 - DEBUG [edu.vt.middleware.ldap.Ldap:194]
-<span style="mso-spacerun: yes;"> </span>dn = dc=vu,dc=edu,dc=au<o:p></o:p></font></p>
<BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font face="Calibri">13:14:38.992 - DEBUG [edu.vt.middleware.ldap.Ldap:195]
-<span style="mso-spacerun: yes;"> </span>filter = (employeeNumber=[34563])<o:p></o:p></font></p>
<BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font face="Calibri">13:14:38.992 - DEBUG [edu.vt.middleware.ldap.Ldap:196]
-<span style="mso-spacerun: yes;"> </span>filterArgs = []<o:p></o:p></font></p>
<BR><p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font face="Calibri">13:14:38.993 - DEBUG [edu.vt.middleware.ldap.Ldap:197]
-<span style="mso-spacerun: yes;"> </span>searchControls =
javax.naming.directory.SearchControls@8aa682f<o:p></o:p></font></p>
<BR></font> <BR> <BR><script type="jsv/1506^"></script>
<script type="jsv/1086_"></script>
<script type="jsv/1507^"></script>
<script type="jsv#1508^"></script>
<script type="jsv/1508^"></script>
<BR> </div></body>
</html>