You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Sam Ewing <ja...@yahoo.com> on 2003/01/09 21:42:13 UTC

Bug with JAASRealm/NT Domain?


I am using JAASRealm with the NT Login module. My
Realm configuration from
server.xml (tomcat 4.1.18) is:


<Realm className="org.apache.catalina.realm.JAASRealm"
debug="99"    
roleClassNames="com.sun.security.auth.NTDomainPrincipal"
 
userClassNames="com.sun.security.auth.NTUserPrincipal"
/>

I then modified the web.xml for the admin and manager
applications, changing it to my NT domain name and
restarted Tomcat.

On browsing to the admin and manager application, I
merely get an empty web page and no error... the log
files also dont have any error indication. Am I
missing something, or is this a bug? I tried posting
some JAAS Realm questions on tomcat-user... but guess
there arent a lot of users using JAASRealms.

TIA

/s

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Bug with JAASRealm/NT Domain?

Posted by Sam Ewing <ja...@yahoo.com>.
I tried debugging the JAASRealm. This is where things
go wrong- 

 public Principal authenticate(String username, String
credentials) {

 ...
 loginContext = new LoginContext
 (appName, new JAASCallbackHandler(this, username,
                                                 
credentials))
...

  The JAACallbackHandler object gets built, but the
method never returns from the LoginContext connector-
not even an exception.

 Help!

/s

--- Sam Ewing <ja...@yahoo.com> wrote:
> Even added a jaas.conf in my user.dir with  the
> following entry...
> 
> Tomcat {
>    com.sun.security.auth.module.NTLoginModule
> required;
> };
> 
> 
> --- Sam Ewing <ja...@yahoo.com> wrote:
> > 
> > 
> > I am using JAASRealm with the NT Login module. My
> > Realm configuration from
> > server.xml (tomcat 4.1.18) is:
> > 
> > 
> > <Realm
> > className="org.apache.catalina.realm.JAASRealm"
> > debug="99"    
> >
>
roleClassNames="com.sun.security.auth.NTDomainPrincipal"
> >  
> >
>
userClassNames="com.sun.security.auth.NTUserPrincipal"
> > />
> > 
> > I then modified the web.xml for the admin and
> > manager
> > applications, changing it to my NT domain name and
> > restarted Tomcat.
> > 
> > On browsing to the admin and manager application,
> I
> > merely get an empty web page and no error... the
> log
> > files also dont have any error indication. Am I
> > missing something, or is this a bug? I tried
> posting
> > some JAAS Realm questions on tomcat-user... but
> > guess
> > there arent a lot of users using JAASRealms.
> > 
> > TIA
> > 
> > /s
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up
> > now.
> > http://mailplus.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:  
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Bug with JAASRealm/NT Domain?

Posted by Sam Ewing <ja...@yahoo.com>.
Even added a jaas.conf in my user.dir with  the
following entry...

Tomcat {
   com.sun.security.auth.module.NTLoginModule
required;
};


--- Sam Ewing <ja...@yahoo.com> wrote:
> 
> 
> I am using JAASRealm with the NT Login module. My
> Realm configuration from
> server.xml (tomcat 4.1.18) is:
> 
> 
> <Realm
> className="org.apache.catalina.realm.JAASRealm"
> debug="99"    
>
roleClassNames="com.sun.security.auth.NTDomainPrincipal"
>  
>
userClassNames="com.sun.security.auth.NTUserPrincipal"
> />
> 
> I then modified the web.xml for the admin and
> manager
> applications, changing it to my NT domain name and
> restarted Tomcat.
> 
> On browsing to the admin and manager application, I
> merely get an empty web page and no error... the log
> files also dont have any error indication. Am I
> missing something, or is this a bug? I tried posting
> some JAAS Realm questions on tomcat-user... but
> guess
> there arent a lot of users using JAASRealms.
> 
> TIA
> 
> /s
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>