Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. This helps immensely. My server.xml and your's are completely different where it counts.
  2.  
  3. I should disclose my apache-tomcat 8.5.6 is delivered as part of apache-tomee 7.0.2, but I would hope that shouldn't make a difference.
  4.  
  5. I started with:
  6.  
  7. <Realm className="org.apache.catalina.realm.LockOutRealm">
  8. <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  9. resourceName="UserDatabase"/>
  10. </Realm>
  11.  
  12. and after researching, I changed to:
  13.  
  14. <Realm className="org.apache.catalina.realm.LockOutRealm">
  15. <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  16. digest="SHA-256" resourceName="UserDatabase"/>
  17. </Realm>
  18.  
  19. Which totally didn't work... You have:
  20.  
  21. <Realm className="org.apache.catalina.realm.LockOutRealm">
  22. <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase">
  23. <CredentialHandler className="org.apache.catalina.realm.MessageDigestCredentialHandler" algorithm="SHA-256" />
  24. </Realm>
  25. </Realm>
  26.  
  27. ...which includes the entire CredentialHandler part... I can't figure out where I should have known this was supposed to go in.
  28.  
  29. I changed my server.xml to look like your's above and now it works great! Thank you so much for your help, and I'm sorry this was so much trouble.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement