Hi,
I am authenticating against ActiveDirectory. For testing, I hard coded the
systemUserName in configuration like this:
<bean id="adRealm"
class="org.apache.shiro.realm.activedirectory.ActiveDirectoryRealm">
                <property name=&quot;url&quot; 
value=&quot;ldap://&lt;myldaphost>:389" />
                <property name=&quot;searchBase&quot; value=&quot;&lt;some DC
parameters&quot;/>
                <property name=&quot;systemUsername&quot; 
value=&quot;&lt;e-mail id>"/>
</bean>

this code is working fine but its hardcoded with e-mail id of user..shiro is
authenticating this user but I am not able to find any way to pass
systemUserName property from my login form. 

Do we have some kind of a placeholder like we have in jndiLdapRealm?

Please let me know. Thanks in advance

Rajat



--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/How-to-pass-username-from-login-form-to-ActiveDirectoryRealm-tp7579187.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to