Permalink
Browse files

issue #617: JAAS qualified class for user

  • Loading branch information...
MartinRumanek committed Aug 30, 2018
1 parent 7ef8fd1 commit 033f24b1dc986dff15fffe12f5dd95f171379bf1
@@ -2,5 +2,5 @@
<Context path="/search">
<Resource auth="Container" driverClassName="org.postgresql.Driver" initialSize="3" maxActive="100" maxIdle="30" maxWait="10000" name="jdbc/kramerius4" password="fedoraAdmin" type="javax.sql.DataSource" url="jdbc:postgresql://localhost/kramerius4" username="fedoraAdmin"/>
<Resource auth="Container" driverClassName="org.postgresql.Driver" initialSize="3" maxActive="100" maxIdle="30" maxWait="10000" name="jdbc/fedora3" password="fedoraAdmin" type="javax.sql.DataSource" url="jdbc:postgresql://localhost/fedora3" username="fedoraAdmin"/>
<Realm appName="search" className="org.apache.catalina.realm.JAASRealm" debug="99" roleClassNames="cz.incad.kramerius.security.jaas.K4RolePrincipal"/>
<Realm appName="search" className="org.apache.catalina.realm.JAASRealm" debug="99" roleClassNames="cz.incad.kramerius.security.jaas.K4RolePrincipal" userClassNames="cz.incad.kramerius.security.jaas.K4User" />
</Context>
@@ -132,7 +132,7 @@ public static boolean checkPswd(String string, String dbPswd, char[] pswd) throw
public boolean commit() throws LoginException {
if (!this.logged)
return false;
associateK4UserPrincipal(this.subject, ""+foundUser.getId());
associateK4UserPrincipal(this.subject, ""+foundUser.getLoginname());
return true;
}

0 comments on commit 033f24b

Please sign in to comment.