K***@csp-sw.de
2006-08-04 13:34:27 UTC
Hi,
i´ve got to set up a Apache MyFaces 1.1 Webapplication on a WebSphere 5.1. My problem is to configure the JAAS-Login. The application has a custom LoginModule wich handles User-Authentication self by hibernate. It works fine on Tomcat´s and JBoss.
I´ve installed the application with the Websphere AdminConsole (it works fine) and configured JAAS Applications Login with the correct realm-name and LoginModules of my application.
Now if i want to log in, my own Login-Form only accepts the windows-user login but not uses my custom LoginModule/realm.
code-fragment form web.xml:
<security-constraint>
<display-name>MyUser</display-name>
<web-resource-collection>
<web-resource-name>MyLogin</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>MyUser</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>MyLogin</realm-name>
<form-login-config>
<form-login-page>/login.jsf</form-login-page>
<form-error-page>/error.jsf</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>MyUser</role-name>
</security-role>
an from server.xml configuration of tomcat:
<Realm className="org.apache.catalina.realm.JAASRealm"
appName="MyLogin"
userClassNames="MyLogin.UserNamePrincipal"
roleClassNames="MyLogin.RolePrincipal"
debug="99"
useContextClassLoader="true" />
jaas.config:
MyLogin {
MyLogin.auth.module.MyLoginModule requisite;
};
How could i configure this realm-assignment in WebSphere 5.1 (AdministratorConsole or config-file)?
Pls help me, i´m searching for a solution for a long time
kiliang.
i´ve got to set up a Apache MyFaces 1.1 Webapplication on a WebSphere 5.1. My problem is to configure the JAAS-Login. The application has a custom LoginModule wich handles User-Authentication self by hibernate. It works fine on Tomcat´s and JBoss.
I´ve installed the application with the Websphere AdminConsole (it works fine) and configured JAAS Applications Login with the correct realm-name and LoginModules of my application.
Now if i want to log in, my own Login-Form only accepts the windows-user login but not uses my custom LoginModule/realm.
code-fragment form web.xml:
<security-constraint>
<display-name>MyUser</display-name>
<web-resource-collection>
<web-resource-name>MyLogin</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>MyUser</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>MyLogin</realm-name>
<form-login-config>
<form-login-page>/login.jsf</form-login-page>
<form-error-page>/error.jsf</form-error-page>
</form-login-config>
</login-config>
<security-role>
<role-name>MyUser</role-name>
</security-role>
an from server.xml configuration of tomcat:
<Realm className="org.apache.catalina.realm.JAASRealm"
appName="MyLogin"
userClassNames="MyLogin.UserNamePrincipal"
roleClassNames="MyLogin.RolePrincipal"
debug="99"
useContextClassLoader="true" />
jaas.config:
MyLogin {
MyLogin.auth.module.MyLoginModule requisite;
};
How could i configure this realm-assignment in WebSphere 5.1 (AdministratorConsole or config-file)?
Pls help me, i´m searching for a solution for a long time
kiliang.