Guest User

Untitled

a guest
Apr 16th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. <Realm className="org.apache.catalina.realm.JAASRealm"
  2. appName="TomcatTimedLogin"
  3. userClassName="com.tagish.auth.TypedPrincipal"
  4. roleClassNames="org.ovasp.java.jaas.RolePrincipal" />
  5.  
  6. TomcatTimedLogin
  7. {
  8. org.owasp.java.jaas.TomcatTimedLogin required
  9. useDS=true
  10. dsJNDI="jdbc/resourceName"
  11. dbDriver="com.microsoft.sqlserver.jdbc.SQLServerDriver"
  12. dbURL="jdbc:sqlserver://server\DBSERVER;databaseName=DBName"
  13. dbUser="username"
  14. dbPassword="password"
  15. debug=true
  16. loginTable="loginTable"
  17. clippingLevel="3"
  18. interval="10"
  19. loginQuery="SELECT UserID,Password FROM Users WHERE LogonUserName=? AND RetirementDate is null"
  20. rolesQuery="SELECT Role.RoleDescription FROM User_Role,Role WHERE User_Role.UserID=? AND User_Role.RoleID=Role.RoleID";
  21. };
  22.  
  23. java.security.auth.login.config=file:///C:/config/login.config
  24.  
  25. SEVERE: Class org.ovasp.java.jaas.RolePrincipal not found! Class not added.
  26.  
  27. org.ovasp.java.jaas.RolePrincipal
  28.  
  29. org.owasp.java.jaas.RolePrincipal
Add Comment
Please, Sign In to add comment