Just defining the Realm in the [main] section of your INI config is enough - it will automatically be detected and applied to the SecurityManager instance. Are you using INI or another mechanism? (Spring?)
i.e. [main] activeDirectoryRealm = org.apache.shiro.realm.activedirectory.ActiveDirectoryRealm # because ActiveDirectoryRealm subclasses AbstractLdapRealm, # you have access to those properties too: #activeDirectoryRealm.systemUsername = foo #activeDirectoryRealm.systemPassword = bar # ... HTH, Les On Sat, May 1, 2010 at 11:25 AM, emaayan <[email protected]> wrote: > > well, i allready know that, but i need more, code samples more docs, would be > nice.. > -- > View this message in context: > http://shiro-user.582556.n2.nabble.com/how-can-i-connect-to-windows-Active-Directory-with-shiro-tp4979896p4990842.html > Sent from the Shiro User mailing list archive at Nabble.com. >
