airpal icon indicating copy to clipboard operation
airpal copied to clipboard

Integrating Airpal with LDAP via Shiro

Open energie786 opened this issue 9 years ago • 4 comments

Please point to steps if this is currently supported for user authentication

energie786 avatar Mar 30 '15 16:03 energie786

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.

andykram avatar May 12 '15 23:05 andykram

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)

J314Y avatar Sep 11 '15 00:09 J314Y

I'd also like to see an example as a baseline.

jprosevear avatar Sep 11 '15 14:09 jprosevear

This is an example realm made to authenticate users: https://github.com/AdRoll/airpal/commit/a40388563d36ce87a353a920d963f928d1c7d9a8

J314Y avatar Sep 18 '15 20:09 J314Y