Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] multiple LDAP for sources.xml?

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] multiple LDAP for sources.xml?


Chronological Thread 
  • From: Scott Koranda <>
  • To: Chris Hyzer <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] multiple LDAP for sources.xml?
  • Date: Mon, 2 May 2011 14:11:39 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=kxDi7GRO+B2Q8wIs51QtjYsewCh2daBqbQMn1rwWSRQkie9YUu/o7vdZdGxK1l2dvL pBvT983vVvSYrFGXNLe1IEe23uPUAIeBbT1/OOIxTwqrShOn5Cf2fujCF4wUKmkAyCfG VwHe67keaQ+bx6fiocA3c9dasms0P4uNAENAE=

> Someone might already know, but in the meantime, please send along all the
> errors in the log that might be relevant...

Attached.

Thanks,

Scott

>
> Thanks,
> Chris
>
> -----Original Message-----
> From: Scott Koranda
> [mailto:]
>
> Sent: Monday, May 02, 2011 2:59 PM
> To: Chris Hyzer
> Cc:
>
> Subject: Re: [grouper-users] multiple LDAP for sources.xml?
>
> > You can have multiple of any type, mix and match, so yes.
> >
>
> Thanks. I wante to confirm that before further debugging.
>
> So I am trying to add a second LDAP as a source but this LDAP
> should be contacted using an anonymous bind. I have configured
> sources.xml to look like this:
>
> <init-param>
> <param-name>INITIAL_CONTEXT_FACTORY</param-name>
> <param-value>com.sun.jndi.ldap.LdapCtxFactory</param-value>
> </init-param>
> <init-param>
> <param-name>PROVIDER_URL</param-name>
> <param-value>ldap://my.server.edu</param-value>
> </init-param>
>
> I am not specifying SECURITY_AUTHENTICATION,
> SECURITY_PRINCIPAL, SECURITY_CREDENTIALS, nor
> SECURITY_PROTOCOL.
>
> I would have thought then that this should enable an anonymous
> bind, according to the documentation for LdapCtxFactory, but I
> keep getting errors in grouper_error.log.
>
> Is there anything in the grouper Java code that is requiring a
> non-anonymous bind?
>
> (Yes, I can hit the server with other clients using an
> anonymous bind...).
>
> Thanks,
>
> Scott
2011-05-02 14:08:49,345: [main] ERROR SourceManager.loadSource(173) - -
Unable to init sources.xml Source: ligo
edu.internet2.middleware.subject.SourceUnavailableException: Unable to init
JNDI source
at
edu.internet2.middleware.subject.provider.JNDISourceAdapter.init(JNDISourceAdapter.java:261)
at
edu.internet2.middleware.subject.provider.SourceManager.loadSource(SourceManager.java:161)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at
org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:216)
at org.apache.commons.digester.Rule.end(Rule.java:230)
at org.apache.commons.digester.Digester.endElement(Digester.java:1130)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1759)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2915)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:812)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:741)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
at org.apache.commons.digester.Digester.parse(Digester.java:1666)
at
edu.internet2.middleware.subject.provider.SourceManager.parseConfig(SourceManager.java:207)
at
edu.internet2.middleware.subject.provider.SourceManager.init(SourceManager.java:147)
at
edu.internet2.middleware.subject.provider.SourceManager.<init>(SourceManager.java:91)
at
edu.internet2.middleware.subject.provider.SourceManager.getInstance(SourceManager.java:101)
at
edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperStartup.java:69)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:135)
at
edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:16)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:411)
at
edu.internet2.middleware.subject.provider.JNDISourceAdapter.setupEnvironment(JNDISourceAdapter.java:275)
at
edu.internet2.middleware.subject.provider.JNDISourceAdapter.init(JNDISourceAdapter.java:259)
... 27 more



Archive powered by MHonArc 2.6.16.

Top of Page