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: "Singley, Norman" <>
  • To: Shilen Patel <>
  • Cc: "" <>
  • Subject: RE: [grouper-users] Connect Oldap source
  • Date: Mon, 19 Sep 2016 15:11:49 +0000
  • Accept-language: en-US
  • Ironport-phdr: 9a23:qlPPvhItF8ZNGd+2oNmcpTZWNBhigK39O0sv0rFitYgUKvnxwZ3uMQTl6Ol3ixeRBMOAtKIC1rGd6v2ocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWapAQfERTnNAdzOv+9WsuL15z2hKiO/MjoYwRMiTz1WbpuIRH++R7Rt80bh6NuN6U8jBbFvy0bVf5RwDYiHlOVkBLx94P42pl59i1W8bp10claVKz8OZ85S7NcASUONnsyotDuqV/OQRbZtShUaXkfjhcdW1uN1xr9RJqk93Ki7uc=

Ok, I gave that a shot. I get the same error when searching for identities in the web UI, and now when I fire up the GSH from:

 

/grouper/grouper.apiBinary-2.3.0/bin/gsh

 

I get:

 

The GROUPER_HOME environment variable is not defined correctly

or could not be determined

This script must be located in <GROUPER_HOME> or <GROUPER_HOME>/bin

 

FYI, for sources.xml, I am only changing:

 

 

/grouper/grouper.apiBinary-2.3.0/conf/sources.xml

 

 

I see there are other sources.xml files… do those need to be changed as well?

 

Thanks!

 

Norman Singley

Directory Services

406 243 6799

 

 

 

From: Shilen Patel [mailto:]
Sent: Monday, September 19, 2016 8:59 AM
To: Singley, Norman
Cc:
Subject: Re: [grouper-users] Connect Oldap source

 

Can you try changing

 

      <param-value>ConnectLdapValidator|CompareLdapValidator</param-value>

 

To

 

      <param-value>CompareLdapValidator</param-value>

 

Thanks!

 

- Shilen

 

From: <Singley>, Norman <>
Date: Monday, September 19, 2016 at 10:52 AM
To: Shilen Patel <>
Cc: "" <>
Subject: RE: [grouper-users] Connect Oldap source

 

Hmm, I do have the validator defined:

 

      <init-param>

      <param-name>VTLDAP_VALIDATOR</param-name>

      <param-value>ConnectLdapValidator|CompareLdapValidator</param-value>

    </init-param>

    <init-param>

      <param-name>VTLDAP_VALIDATOR_COMPARE_DN</param-name>

      <param-value>ou=people,dc=umt,dc=edu</param-value>

    </init-param>

    <init-param>

      <param-name>VTLDAP_VALIDATOR_COMPARE_SEARCH_FILTER_STRING</param-name>

      <param-value>ou=people</param-value>

    </init-param>

 

 

Thanks.

 

 

Norman Singley

Directory Services

406 243 6799

 

 

 

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

 

I think you're supposed to choose one of the two validators.  See https://bugs.internet2.edu/jira/browse/GRP-1151

 

Thanks!

 

- 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(LdapSourceAdapter.java:777)

        at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getLdapResults(LdapSourceAdapter.java:661)

        at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getLdapUnique(LdapSourceAdapter.java:806)

        at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getSubject(LdapSourceAdapter.java:374)

        at edu.internet2.middleware.subject.SubjectCheckConfig.checkConfig(SubjectCheckConfig.java:111)

        at edu.internet2.middleware.grouper.misc.GrouperCheckConfig$1.callback(GrouperCheckConfig.java:455)

        at edu.internet2.middleware.grouper.GrouperSession.callbackGrouperSession(GrouperSession.java:974)

        at edu.internet2.middleware.grouper.misc.GrouperCheckConfig.checkConfig(GrouperCheckConfig.java:451)

        at edu.internet2.middleware.grouper.misc.GrouperStartup.startup(GrouperStartup.java:256)

        at edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:151)

        at edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31)

Caused by: java.lang.NullPointerException

        at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getLdapResultsHelper(LdapSourceAdapter.java:746)

        ... 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

 

 

 

Thanks.

Norman.

 

 

 

 

 

From: Shilen Patel []
Sent: Friday, September 16, 2016 3:08 PM
To: Singley, Norman
Cc:
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.

 

Thanks!

 

- 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

grouper.apiBinary-2.3.0/conf/sources.xml

 

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