Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Connect Oldap source

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Connect Oldap source

Chronological Thread 
  • From: Shilen Patel <>
  • To: "Singley, Norman" <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Connect Oldap source
  • Date: Sat, 17 Sep 2016 01:35:49 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:p3WokRKI/xOiax3ORNmcpTZWNBhigK39O0sv0rFitYgUKvnxwZ3uMQTl6Ol3ixeRBMOAtKIC1rGd6v2ocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWapAQfERTnNAdzOv+9WsuL15z2hKiO/MiZWAROiz6wcPc6ChKsqAzX/IFCp4x4L683jCDIpHRMdvV+wHhvY0+Wg1Dx6trmr7B59CEFgPIg88NGGZ3zY6k8BehDDDUiPmYd6NDouF/OQRbZtShUaXkfjhcdW1uN1xr9RJqk93Ki7uc=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

I think you're supposed to choose one of the two validators.  See


- Shilen

From: <Singley>, Norman <>
Date: Friday, September 16, 2016 at 6:02 PM
To: Shilen Patel <>
Cc: "" <>
Subject: RE: [grouper-users] Connect Oldap source

Hi Shilen.


Thanks for the tips.  I get an error firing up gsh:


Subject API Error: error with subject source id: oid, name: Open Ldap Directory, problem with getSubject by id, in sources. 


.xml: search searchSubject: , edu.internet2.middleware.subject.SourceUnavailableException: Ldap Exception: null

        at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getLdapResultsHelper(

        at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getLdapResults(

        at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getLdapUnique(

        at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getSubject(

        at edu.internet2.middleware.subject.SubjectCheckConfig.checkConfig(

        at edu.internet2.middleware.grouper.misc.GrouperCheckConfig$1.callback(

        at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(

        at edu.internet2.middleware.grouper.misc.GrouperCheckConfig.checkConfig(

        at edu.internet2.middleware.grouper.misc.GrouperStartup.startup(



Caused by: java.lang.NullPointerException

        at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getLdapResultsHelper(

        ... 10 more



gsh 0% GrouperSession.startRootSession()

edu.internet2.middleware.grouper.GrouperSession: 0e220de6aa56485b81443870e4a0bc84,'GrouperSystem','application'

gsh 1% SubjectFinder.find("test")

// Error: unable to evaluate command: Sourced file: inline evaluation of: ``SubjectFinder.find("test");'' : Error in method invocation: Static method find( java.lang.String ) not found in class'edu.internet2.middleware.grouper.SubjectFinder'

gsh 2% SubjectFinder.findByIdOrIdentifier("test", false)

// Error: unable to evaluate command: Sourced file: inline evaluation of: ``SubjectFinder.findByIdOrIdentifier("test", false);'' : Method Invocation SubjectFinder.findByIdOrIdentifier

// See error log for full stacktrace

// caused by: edu.internet2.middleware.subject.SourceUnavailableException:

// Ldap Exception: null

// caused by: java.lang.NullPointerException:

// null

gsh 3%





looks like from the logs maybe it’s the connectldapvalidator?  Not sure what to put there.



Problem loading class: ConnectLdapValidator|CompareLdapValidator

java.lang.RuntimeException: Problem loading class: ConnectLdapValidator|CompareLdapValidator











From: Shilen Patel []
Sent: Friday, September 16, 2016 3:08 PM
To: Singley, Norman
Subject: Re: [grouper-users] Connect Oldap source


Are there any other errors in your log files?  If you remove that source in sources.xml, that error goes away?  Just to make sure there isn't something else in play.  Also, can you try to do a query just using gsh to see if that produces any errors?  


gsh 0% GrouperSession.startRootSession()

gsh 1% SubjectFinder.find("test")

gsh 2% SubjectFinder.findByIdOrIdentifier("test", false)


If there's a problem in the sources.xml file, it may be easier to debug using gsh instead of the UI.  I also noticed that some of the example values are still in there (exampleEduPerson, exampleEduRegId), though I wouldn't expect that to produce the error that you got.




- Shilen



From: <Singley>, Norman <>
Date: Friday, September 16, 2016 at 2:52 PM
To: "" <>
Subject: [grouper-users] Connect Oldap source


Hi .


I’ve got a new install of grouper 2.3 that I am trying to connect to my openldap as a source.


I’ve modified the sources.xml sources.xml file located at



When I search for an identity (searching all data sources) I get the following error:


Error: cannot find attributeDefId, nameOfAttributeDef, or attributeDefIndex in url


Attached is the sources.xml file I am using.  (renamed)  All I have changed is the section to connect to Oldap.


Thanks for any help.



Norman Singley

Directory Services

406 243 6799



Archive powered by MHonArc 2.6.19.

Top of Page