(This is my first foray into authentication, so please be gentle)
I'm ruing an Apache/Tomcat site with single sign on and bcrypted passwords on a CentOS server.
Now I'd like to provide authentication for various other services, with a custom SASL provider, backed by my user database.
I want to provide either SCRAM-SHA1 because it has lots of capitals, or SCRAM-SHA-256 which has a big number, but other SCRAMs are fine.
Thanks to the sources at https://fossies.org/dox/cyrus-sasl-2.1.26/dir_ecd9f53e36d8179835faf18174059933.html (or if that link dies, https://fossies.org/dox/cyrus-sasl-2.1.26/index.html > Files > File List > cyrus-sasl-2.1.26 > java > CyrusSasl) and this excellent answer, actually writing the Java isn't a problem.
My difficulty is actually integrating my provider into the saslauthd ecosystem. While there is plenty of documentation on how to enable SASL for various packages, there's little to explain how to introduce your own provider, particularly a Java one.
I realise that authentication and authorization is a huge and detailed field, but I'm looking for the simplest standards-compliant solution.
So, could someone explain, or point me to sites which explain :
a) How do I tell saslauthd to ask my provider for authentication services, and under what circumstances? Would I have my provider ruing as a daemon, or would it be called as and when needed?
b) How do I communicate with saslauthd? How do I receive the challenges, and send the responses? Sockets? Domain sockets? Files?
c) Is it even possible to do SCRAM-SHA* when my database only stores bcrypted passwords?
Thanks for any advice.
- - , .
برچسب:
نویسنده: استخدام کار