GitHub user ssharma555 opened a pull request:
https://github.com/apache/zeppelin/pull/3045
ZEPPELIN-3570. Fix for doing user search for LDAPRealm
### What is this PR for?
To enable user search for LdapRealm.
### What type of PR is it?
Bug Fix
### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-3570
### How should this be tested?
For the below config
```
[main]
ldapRealm = org.apache.zeppelin.realm.LdapRealm
ldapRealm.userDnTemplate = cn={0},ou=Users,dc=company,dc=com
ldapRealm.contextFactory.url = ldap://<ldap-server-host>:389
ldapRealm.contextFactory.authenticationMechanism = SIMPLE
ldapRealm.searchBase = dc=company,dc=com
ldapRealm.userSearchBase = dc=company,dc=com
ldapRealm.groupSearchBase = dc=company,dc=com
ldapRealm.userSearchAttributeName = uid
sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
securityManager.sessionManager = $sessionManager
securityManager.sessionManager.globalSessionTimeout = 86400000
shiro.loginUrl = /api/login
[urls]
/api/version = anon
/** = authc
```
user search in notebook/interpreter should work for partial string.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ssharma555/zeppelin ZEPPELIN-3570
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zeppelin/pull/3045.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3045
----
commit 114c7e4baaca839252123bf55d8cc0618cd1fa69
Author: Supreeth Sharma <ssharma@...>
Date: 2018-06-29T10:05:48Z
ZEPPELIN-3570. Fix for doing user search for LDAPRealm
----
---