On Tue, Mar 31, 2009 at 2:37 AM, Maciej Pigulski <[email protected]>wrote:
> > I had problems with getting to Subjects session to store the authorization > info - SecurityUtils.getSubject() was returning a null value. I guess the > issue is that this object does not exist in this stage, but I couldn't get > any other idea how to get into the Session object. That is extremely odd. There should _always_ be a Subject for any thread's execution. If one does not exist at the time getSubject() is called, it should have been created automatically. Are you running in a webapp or a standalone application? Regards, Les I was testing it in a standalone application running outside any containter (snippet of this class is in my first post in this thread). My target application is a web application. Take notice that I'm trying to SecurityUtils.getSubject() inside overriding class that extends ActiveDirectoryRealm in queryForAuthenticationInfo(...) method. Then it returns null. Regards, Maciej -- View this message in context: http://n2.nabble.com/Reading-user-roles-from-Active-Directory-tp2503002p2562906.html Sent from the JSecurity User mailing list archive at Nabble.com.
