Error with Zeppelin integration - LDAP

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error with Zeppelin integration - LDAP

Carlos Andres Zambrano Barrera



<img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7">HI, 

I am working with OpenLdap with the following structure (see attached)

I configure all the shiro.ini

  1. ### A sample for configuring LDAP Directory Realm
  2. ldapRealm = org.apache.zeppelin.realm.LdapGroupRealm
  3. ## search base for ldap groups (only relevant for LdapGroupRealm):
  4. ldapRealm.contextFactory.environment[ldap.searchBase] = dc=CORP,dc=SOYMACH,dc=COM
  5. ldapRealm.contextFactory.url = ldap://ad.corp.soymach.com:389
  6. ldapRealm.userDnTemplate = cn={0},ou=bigdatateam,dc=CORP,dc=SOYMACH,dc=COM
  7. ldapRealm.contextFactory.authenticationMechanism = SIMPLE

when i tried to access to zeppelin it always appear "The username and password that you entered don't match."

When i see the log file it appears

  1. Oct 15, 2017 10:13:42 PM com.sun.jersey.spi.inject.Errors processErrorMessages
  2. WARNING: The following warnings have been detected with resource and/or provider classes:
  3. WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.zeppelin.rest.InterpreterRestApi.listInterpreter(java.lang.String), should not consume any entity.
  4. WARNING: A sub-resource method, public javax.ws.rs.core.Response org.apache.zeppelin.rest.NotebookRestApi.createNote(java.lang.String) throws java.io.IOException, with URI template, "/", is treated as a resource method
  5. WARNING: A sub-resource method, public javax.ws.rs.core.Response org.apache.zeppelin.rest.NotebookRestApi.getNoteList() throws java.io.IOException, with URI template, "/", is treated as a resource method
  6. WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.zeppelin.rest.CredentialRestApi.getCredentials(java.lang.String) throws java.io.IOException,java.lang.IllegalArgumentException, should not consume any entity.

I do not know what is my error in the integration with OpenLdap.


--

Carlos Andrés Zambrano Barrera
Cel: <a href="tel:317%204373741" value="+573174373741" target="_blank">+57 3174373741






Sent with Mailtrack



--

Carlos Andrés Zambrano Barrera
Cel: +57 3174373741






Sent with Mailtrack

Captura de pantalla 2017-10-15 a la(s) 5.15.49 p.m..png (153K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Error with Zeppelin integration - LDAP

Suresh Ayyavoo
try

ldapRealm.userDnTemplate = uid={0},ou=people,dc=openam,dc=forgerock,dc=org



On Mon, Oct 16, 2017 at 6:24 AM, Carlos Andres Zambrano Barrera <[hidden email]> wrote:



HI, 

I am working with OpenLdap with the following structure (see attached)

I configure all the shiro.ini

  1. ### A sample for configuring LDAP Directory Realm
  2. ldapRealm = org.apache.zeppelin.realm.LdapGroupRealm
  3. ## search base for ldap groups (only relevant for LdapGroupRealm):
  4. ldapRealm.contextFactory.environment[ldap.searchBase] = dc=CORP,dc=SOYMACH,dc=COM
  5. ldapRealm.contextFactory.url = ldap://ad.corp.soymach.com:389
  6. ldapRealm.userDnTemplate = cn={0},ou=bigdatateam,dc=CORP,dc=SOYMACH,dc=COM
  7. ldapRealm.contextFactory.authenticationMechanism = SIMPLE

when i tried to access to zeppelin it always appear "The username and password that you entered don't match."

When i see the log file it appears

  1. Oct 15, 2017 10:13:42 PM com.sun.jersey.spi.inject.Errors processErrorMessages
  2. WARNING: The following warnings have been detected with resource and/or provider classes:
  3. WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.zeppelin.rest.InterpreterRestApi.listInterpreter(java.lang.String), should not consume any entity.
  4. WARNING: A sub-resource method, public javax.ws.rs.core.Response org.apache.zeppelin.rest.NotebookRestApi.createNote(java.lang.String) throws java.io.IOException, with URI template, "/", is treated as a resource method
  5. WARNING: A sub-resource method, public javax.ws.rs.core.Response org.apache.zeppelin.rest.NotebookRestApi.getNoteList() throws java.io.IOException, with URI template, "/", is treated as a resource method
  6. WARNING: A HTTP GET method, public javax.ws.rs.core.Response org.apache.zeppelin.rest.CredentialRestApi.getCredentials(java.lang.String) throws java.io.IOException,java.lang.IllegalArgumentException, should not consume any entity.

I do not know what is my error in the integration with OpenLdap.


--

Carlos Andrés Zambrano Barrera
Cel: <a href="tel:317%204373741" value="+573174373741" target="_blank">+57 3174373741






Sent with Mailtrack



--

Carlos Andrés Zambrano Barrera
Cel: <a href="tel:+57%20317%204373741" value="+573174373741" target="_blank">+57 3174373741






Sent with Mailtrack



--

Suresh Ayyavoo

Solution Architect / R&D Lead

iAPPS Pte. Ltd.

3 Fusionopolis Way, Symbiosis #13-25 S(138633)

[O] 64631795   [F] 6778 5300 [M] 91540224

Website: www.iappsasia.com  

Facebook: www.facebook.com/iappsasia 

Youtube: www.youtube.com/user/iAPPSasia