The JavaDoc for Shiro class JndiLdapRealm explicitly says that authorization is by default disabled and that authorization against an LDAP server should be implemented by the user by subclassing and overriding the JndiLdapRealm#doGetAuthorizationInfo method.
Is there sample code on how to do that including handling the communication / protocol with the LDAP server available anywhere?
The JavaDoc for Shiro class JndiLdapRealm explicitly says that authorization is by default disabled
Share
you should implement your own LdapRealm extending JndiLdapRealm.
In this implementation, you would override queryForAuthorizationInfo() ; here is a simple example :