Tomcat Experts:

       I deployed my web application TOPS in to our DEV web server.     I start 
the web server 9.0.13,  and enter the application URL,, the login screen show 
up.

       I entered the LoginID/Password and click the "Login" button,   the log 
on the catalina.out is:

23-Jul-2019 16:59:49.752 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Calling 
hasUserDataPermission()
23-Jul-2019 16:59:49.752 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.realm.RealmBase.hasUserDataPermission   User data 
constraint already satisfied
23-Jul-2019 16:59:49.752 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Calling 
accessControl()
23-Jul-2019 16:59:49.752 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.realm.RealmBase.hasResourcePermission   Checking roles null
23-Jul-2019 16:59:49.752 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.realm.RealmBase.hasResourcePermission Passing all access
23-Jul-2019 16:59:49.752 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Successfully passed 
all security const


      The LoginID and Password text box were cleared, and I have to enter 
LoginID/Password again, and then click "Login" button,   now it allow me to go 
to the application main home page. The log on the catalina.out is:

23-Jul-2019 17:14:31.130 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Calling 
hasUserDataPermission()
23-Jul-2019 17:14:31.131 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.realm.RealmBase.hasUserDataPermission   User data 
constraint already satisfied
23-Jul-2019 17:14:31.131 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Calling 
accessControl()
23-Jul-2019 17:14:31.131 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.realm.RealmBase.hasResourcePermission   Checking roles 
GenericPrincipal[topsadmin(CN=ADMINTOPS,OU=National Application 
Groups,OU=Groups Role-Based,DC=devsub,DC=dev,DC=dce, DC=gov, ADMINTOPS,)]
23-Jul-2019 17:14:31.131 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.realm.RealmBase.hasResourcePermission Passing all access
23-Jul-2019 17:14:31.131 FINE [https-jsse-nio-9443-exec-8] 
org.apache.catalina.authenticator.AuthenticatorBase.invoke  Successfully passed 
all security constraints


The login-config in web.xml:

        <login-config>
                <auth-method>FORM</auth-method>
                <realm-name>SecureRealm</realm-name>
                <form-login-config>
                        <form-login-page>/F_login.jsp</form-login-page>
                        <form-error-page>/notAuthenticated.jsp</form-error-page>
                </form-login-config>
        </login-config>





       So the question is:    why the first time I click the "Login" button  it 
didn't get any roles for the login user (It suppose to connect to LDAP for 
authentication),  and I have to login one more time to get it?


Thanks
Gary

Reply via email to