Thank you Ashok and Chad. It was LDAP configruation issue. I gave the wrong filter parameter. It is working fine now.<br><br>I have one more question, while configuring the LDAP connector we are forced to specify the &quot;filterParameter&quot;. That is forcing us to get the attributes of a particular user. But is there any way to get the attributes of all the users that are present in LDAP hierarchy?<br>
<br>Thank you,<br>Naresh<br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 2:25 PM, Ashok Kumar <span dir="ltr">&lt;<a href="mailto:ashok.kumar@csueastbay.edu">ashok.kumar@csueastbay.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
What&#39;s the value of USERNAME? I mean USERNAME should have enough privileges to get the value of $requestContext.principalName. Its kind of service account for LDAP. You may try with cn=&quot;Directory Manager&quot; if you have the option.<br>

<div><br>Do you see the value of $requestContext.principalName in logs? Its the name of the user who is supposed to be authenticated.<br><br>I see there is no value coming for uid from LDAP in the logs which is $requestContext.principalName.<br>

<br>Thanks,<br><font color="#888888">-Ashok<br></font></div><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 1:58 PM, Pavan K <span dir="ltr">&lt;<a href="mailto:pavanonnet1986@gmail.com" target="_blank">pavanonnet1986@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Here is my LDAP data connector configruation,<div><br><br>&lt;resolver:DataConnector id=&quot;myLDAP&quot; xsi:type=&quot;dc:LDAPDirectory&quot;<br></div>        ldapURL=&quot;ldap://&lt;IP_ADDRESS&gt;:389&quot; <br>
<div>        baseDN=&quot;ou=public,dc=abc,dc=com&quot; <br>
        principal=&quot;&lt;USER_NAME&gt;&quot;<br>        principalCredential=&quot;&lt;PASSWORD&gt;&quot;&gt;<br>        &lt;dc:FilterTemplate&gt;<br>            &lt;![CDATA[<br>                (uid=$requestContext.principalName)<br>


            ]]&gt;<br>        &lt;/dc:FilterTemplate&gt;<br>    &lt;/resolver:DataConnector&gt;<br><br><br></div>and here is the log<br><br><br>13:43:54.714 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.LdapDataConnector:308] - Search filter: (uid=&lt;USERNAME&gt;)<br>


13:43:54.714 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.LdapDataConnector:363] - LDAP data connector myLDAP - Retrieving attributes from LDAP<br>13:43:54.714 - DEBUG [edu.vt.middleware.ldap.handler.DefaultConnectionHandler:73] - Bind with the following parameters:<br>


13:43:54.714 - DEBUG [edu.vt.middleware.ldap.handler.DefaultConnectionHandler:74] -   authtype = simple<br>13:43:54.714 - DEBUG [edu.vt.middleware.ldap.handler.DefaultConnectionHandler:75] -   dn =&lt;USERNAME&gt;<br>13:43:54.714 - DEBUG [edu.vt.middleware.ldap.handler.DefaultConnectionHandler:82] -   credential = &lt;suppressed&gt;<br>


13:43:54.714 - DEBUG [edu.vt.middleware.ldap.Ldap:193] - Search with the following parameters:<br>13:43:54.714 - DEBUG [edu.vt.middleware.ldap.Ldap:194] -   dn = ou=public,dc=abc,dc=com<br>13:43:54.714 - DEBUG [edu.vt.middleware.ldap.Ldap:195] -   filter = (uid=&lt;USERNAME&gt;)<br>


13:43:54.714 - DEBUG [edu.vt.middleware.ldap.Ldap:196] -   filterArgs = []<br>13:43:54.714 - DEBUG [edu.vt.middleware.ldap.Ldap:197] -   searchControls = javax.naming.directory.SearchControls@1c28517<br>13:43:54.714 - DEBUG [edu.vt.middleware.ldap.Ldap:198] -   handler = [edu.vt.middleware.ldap.handler.FqdnSearchResultHandler@1afe460, edu.vt.middleware.ldap.handler.EntryDnSearchResultHandler@ba8fce, edu.vt.middleware.ldap.handler.BinarySearchResultHandler@3744bc]<br>


13:43:54.730 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:336] - Resolved attribute uid containing 0 values<br>13:43:54.730 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:314] - Resolving attribute mail for principal &lt;USERNAME&gt;<br>


13:43:54.730 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:336] - Resolved attribute mail containing 0 values<br>13:43:54.730 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:314] - Resolving attribute transientId for principal &lt;USERNAME&gt;<div>

<div></div><div><br>
<br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 1:52 PM, Ashok Kumar <span dir="ltr">&lt;<a href="mailto:ashok.kumar@csueastbay.edu" target="_blank">ashok.kumar@csueastbay.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


How is your LDAP Data connector entry looks like in resolver.conf file? <br><br>Thanks,<br><font color="#888888">-Ashok</font><div><div></div><div><br><br><div class="gmail_quote">On Tue, Aug 16, 2011 at 1:38 PM, Pavan K <span dir="ltr">&lt;<a href="mailto:pavanonnet1986@gmail.com" target="_blank">pavanonnet1986@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Thank you Ashok. IN the logs i am seeing the following messages,<br><br>Resolved attribute uid containing 0 values<br>



13:31:29.447 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:314] - Resolving attribute mail for principal pavank<br>
13:31:29.447 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:336] - Resolved attribute mail containing 0 values<br>13:31:29.447 - DEBUG [edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ShibbolethAttributeResolver:314] - Resolving attribute transientId for principal pavank<br>




<br>I did not understand why it is not getting the value from LDAP. Is there configuration i am missing?<br><br>Thank you,<br><font color="#888888">Pavan</font><div><div></div><div><br><br><div class="gmail_quote">
On Tue, Aug 16, 2011 at 1:05 PM, Ashok Kumar <span dir="ltr">&lt;<a href="mailto:ashok.kumar@csueastbay.edu" target="_blank">ashok.kumar@csueastbay.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I think if you see the IdP access logs, it will tell you what attribute has been resolved and what are filtered. You may need to set the log level to debug to see all this.<br>




<br>Thanks,<br>-Ashok<br><br><br><div class="gmail_quote"><div><div></div><div>
On Tue, Aug 16, 2011 at 12:42 PM, Pavan K <span dir="ltr">&lt;<a href="mailto:pavanonnet1986@gmail.com" target="_blank">pavanonnet1986@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">




<div><div></div><div>
Hi All,<br><br>I am new to Shibboleth identity provider. I have installed and configured the Shibboleth identity provider by following the instructions given in shibboleth home page. I configured LDAP data connector to retrieve some attributes. And when i test the attribute resolver by using &quot;AACLI&quot; tool i am getting &quot;No attribute statement&quot; all the time. I did not find any logs related to attribute retrieval in the log files.<br>






<br>My configuration details as follows,<br><br><b>&quot;handler.xml&quot;</b><br><br>&lt;ph:LoginHandler xsi:type=&quot;ph:UsernamePassword&quot; <br>                  jaasConfigurationLocation=&quot;file://IDP_HOME/conf/login.config&quot;&gt;<br>






        &lt;ph:AuthenticationMethod&gt;urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport&lt;/ph:AuthenticationMethod&gt;<br>    &lt;/ph:LoginHandler&gt; <br><br><b>&quot;login.config&quot;</b><br><br>edu.vt.middleware.ldap.jaas.LdapLoginModule required<br>






      ldapUrl=&quot;LDAP_URL&quot;<br>      baseDn=&quot;ou=public,dc=abc,dc=com&quot;<br>      tls=&quot;true&quot;<br>      userFilter=&quot;uid={0}&quot;<br>   ;<br><br><b>&quot;attribute-filter.xml&quot;<br><br></b>&lt;afp:AttributeFilterPolicy&gt;<br>






        &lt;afp:PolicyRequirementRule xsi:type=&quot;basic:ANY&quot; /&gt;<br><br>        &lt;afp:AttributeRule attributeID=&quot;mail&quot;&gt;<br>            &lt;afp:PermitValueRule xsi:type=&quot;basic:ANY&quot; /&gt;<br>






        &lt;/afp:AttributeRule&gt;<br>    &lt;/afp:AttributeFilterPolicy&gt;<br><br><b>&quot;attribute-resolver.xml&quot;<br><br><br></b> &lt;resolver:AttributeDefinition xsi:type=&quot;ad:Simple&quot; id=&quot;mail&quot; sourceAttributeID=&quot;mail&quot;&gt;<br>






        &lt;resolver:Dependency ref=&quot;myLDAP&quot; /&gt;<br>    &lt;resolver:AttributeEncoder xsi:type=&quot;SAML2String&quot;<br>    xmlns=&quot;urn:mace:shibboleth:2.0:attribute:encoder&quot;<br>            name=&quot;urn:oid:0.9.2342.19200300.100.1.1&quot; friendlyName=&quot;mail&quot; /&gt; <br>






    &lt;/resolver:AttributeDefinition&gt;<br><br>&lt;resolver:DataConnector id=&quot;myLDAP&quot; xsi:type=&quot;dc:LDAPDirectory&quot;<br>        ldapURL=&quot;LDAP_URL&quot; <br>        baseDN=&quot;ou=public,dc=abc,dc=com&quot; <br>






        principal=&quot;USER_NAME&quot;<br>        principalCredential=&quot;PASSWORD&quot;&gt;<br>        &lt;dc:FilterTemplate&gt;<br>            &lt;![CDATA[<br>                (uid=$requestContext.principalName)<br>            ]]&gt;<br>






        &lt;/dc:FilterTemplate&gt;<br>    &lt;/resolver:DataConnector&gt;<b><br><br><br><br></b>Even when i comment the statements in &quot;login.config&quot; file, i am not getting any errors in the log file and still getting &quot;No Aattribute Statement&quot; message. Following is the command i am using from &quot;IDP_HOME&quot;<b><br>






<br>aacli.bat --configDir=../conf --principal=&lt;USER_NAME&gt;<br><br></b>Could anyone please help me get this working? Am i missing something in the configruation? <br><br>Thank you in advance.<br><font color="#888888"><br>





-- Pavan<br>
</font><br></div></div>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br></blockquote></div><font color="#888888"><br><br clear="all"><br>-- <br>




<br><br><br><br><br><br>
</font><br>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br></blockquote></div><br>
</div></div><br>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br></blockquote></div><br><br clear="all"><br>-- <br><br><br><br>
</div></div><br>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br></blockquote></div><br>
</div></div><br>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net" target="_blank">users-unsubscribe@shibboleth.net</a><br></blockquote></div><br><br clear="all"><br><br>
</div></div><br>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br></blockquote></div><br>