Nope - that is typically for performing authorization queries. If it is throwing an authentication error, it means that the AuthenticationToken username/password are incorrect, or if not that, perhaps you've forgotten to configure some required JNDI environment settings for your LDAP server (e.g. does it require SSL? is an Authentication Mechanism required?, etc).
HTH, Les On Mon, May 16, 2011 at 4:25 PM, mitnpatel <[email protected]> wrote: > Thank you for your reply Les. > > I debug as yous said and it is throwing LDAP authentication error. > So do I need to set systemUserName and systemPassword as follows ? > > <bean id="contextFactory" > class="org.apache.shiro.realm.ldap.JndiLdapContextFactory"> > <property name="url" value="ldap://ladapserver:389" /> > <property name="systemPassword" value="userName" /> > <property name="systemUsername" value="password" /> > </bean> > > -- > View this message in context: > http://shiro-user.582556.n2.nabble.com/Unable-to-authenticate-using-JndiLdapRealm-tp6369464p6370987.html > Sent from the Shiro User mailing list archive at Nabble.com.
