airpal
airpal copied to clipboard
Integrating Airpal with LDAP via Shiro
Please point to steps if this is currently supported for user authentication
Sorry for the delay in responding! As everyone's LDAP setup is very different, I wasn't sure exactly how to easily map folks' LDAP schema to Airpal authorizations in a general case. However, if you integrate the LDAP realm, and then have it publish a Subject
that implements com.airbnb.airpal.core.AirpalUser
it should just work. Publishing an example realm that does this is definitely on our todo list.
Would it be possible to provide a small snippet example on how an LDAP realm publishes a Subject? Would this be done in an overrided function of doGetAuthenticationInfo(AuthenticationToken token)
I'd also like to see an example as a baseline.
This is an example realm made to authenticate users: https://github.com/AdRoll/airpal/commit/a40388563d36ce87a353a920d963f928d1c7d9a8