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?
相关问题
- PrincipalContext LDAPS Self-Signed Certificate
- Get all attributes from Active Directory using Spr
- Filter ldapsearch with awk/bash
- How do you search by dn in ldap
- PHP LDAP query to get members of specific security
相关文章
- getting user details from AD is slow
- Can't get deleted items from OpenLDAP Server u
- Shiro complaining “There is no session with id xxx
- Is it possible to send LDAP “requests” via telnet?
- GWT JDBC LDAP connection fails
- Spring Boot with Apache Shiro
- How to check that user has already logged in using
- Active Directory Authentication with .NET Core Web
you should implement your own LdapRealm extending JndiLdapRealm. In this implementation, you would override queryForAuthorizationInfo() ; here is a simple example :