You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by emaayan <el...@gmail.com> on 2010/05/01 20:25:18 UTC

Re: how can i connect to windows Active Directory with shiro?

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.

Re: how can i connect to windows Active Directory with shiro?

Posted by emaayan <el...@gmail.com>.
currentluy not using anything i thought i configured it by code.

On Sun, May 2, 2010 at 1:43 AM, Les Hazlewood-2 [via Shiro User] <
ml-node+4991547-2046309472-201252@n2.nabble.com<ml...@n2.nabble.com>
> wrote:

> 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 <[hidden email]<http://user/SendEmail.jtp?type=node&node=4991547&i=0>>
> 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.
> >
>
>
> ------------------------------
>  View message @
> http://shiro-user.582556.n2.nabble.com/how-can-i-connect-to-windows-Active-Directory-with-shiro-tp4979896p4991547.html
> To unsubscribe from Re: how can i connect to windows Active Directory with
> shiro?, click here<http://shiro-user.582556.n2.nabble.com/subscriptions/Unsubscribe.jtp?code=ZWxoLm1haWxnYXRlQGdtYWlsLmNvbXw0OTkwODQyfDExNTkyMDcyOA==>.
>
>
>

-- 
View this message in context: http://shiro-user.582556.n2.nabble.com/how-can-i-connect-to-windows-Active-Directory-with-shiro-tp4979896p4992327.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: how can i connect to windows Active Directory with shiro?

Posted by Les Hazlewood <lh...@apache.org>.
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 <el...@gmail.com> 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.
>