Hi All,
I'm trying to use mysql database at IDP for authentication.
Here is my data connector element from attribute-resolver.xml
<resolver:DataConnector id="mySIS" xsi:type="RelationalDatabase"
xmlns="urn:mace:shibboleth:2.0:resolver:dc">
<ApplicationManagedConnection jdbcDriver="com.mysql.jdbc.Driver"
jdbcURL="jdbc:mysql://localhost:3306/userDB" jdbcUserName="root"
jdbcPassword="root" />
<QueryTemplate>
<![CDATA[
SELECT * FROM user WHERE usr_login =
'$requestContext.principalName'
]]>
</QueryTemplate>
<Column columnName="usr_login" attributeID="uid" />
<Column columnName="first_name" attributeID="displayname" />
</resolver:DataConnector>
I'm getting following error by using above configuration
----------------- Errot logs-------------
javax.security.auth.login.LoginException: No LoginModules configured for
ShibUserPassAuth
at
javax.security.auth.login.LoginContext.init(LoginContext.java:256)
[na:1.6.0_16]
at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
[na:1.6.0_16]
at
edu.internet2.middleware.shibboleth.idp.authn.provider.UsernamePasswordLoginServlet.authenticateUser(UsernamePasswordLoginServlet.java:163)
[shibboleth-identityprovider-2.1.5.jar:na]
at
edu.internet2.middleware.shibboleth.idp.authn.provider.UsernamePasswordLoginServlet.service(UsernamePasswordLoginServlet.java:106)
[shibboleth-identityprovider-2.1.5.jar:na]
--------------------------------------------------
I read on docs that shibboleth use JAAS for authentication and above error
says 'ShibUserPassAuth' login module not found. I tried to configure it in
$IDP_HOME/conf/login.config file, but it does not seem that login.config
file is picked by jvm for JAAS authentication.
Just to add some more information: I tried LDAP authentication with same IDP
and was getting same error when defining 'ShibUserPassAuth' with LDAP
configuration in login.config file. But I got it working by defining an
application policy element with name 'ShibUserPassAuth' in my
$JBOSS_HOME/server/default/conf/login-config.xml file.
Somehow it's picking up the 'ShibUserPassAuth' configuration from
login-config.xml of jboss but not from login.config file of IDP.
Can someone point me to any document regrading database configuration or any
example to get database authentication running ?
Thanks in advance
ap1285
--
View this message in context:
http://shibboleth.1660669.n2.nabble.com/IDP-authentication-from-database-tp4950984p4950984.html
Sent from the Shibboleth - Users mailing list archive at Nabble.com.
--
Subscription settings:
http://groups.google.com/group/shibboleth-users/subscribe?hl=en