grouper-users - [grouper-users] RE: ldap group not being loaded to grouper
Subject: Grouper Users - Open Discussion List
List archive
- From: Niva Agmon <>
- To: Chris Hyzer <>, "" <>
- Subject: [grouper-users] RE: ldap group not being loaded to grouper
- Date: Fri, 6 Feb 2015 22:28:24 +0000
- Accept-language: en-US
Hi Chris, Thanks a lot for your reply and for the pointers. I’ve changed the subject ID a few times but it still doesn’t work.
I’m running a gsh script based on the example at the Grouper ++Loader+Ldap site and the error is: // Error: unable to evaluate command: Sourced file: inline evaluation of: ``loaderRunOneJob(group);'' : Error invoking compiled command: : Error in compiled command: java.lang.RuntimeException: java.lang.RuntimeException:
Error substituting string: '${loaderLdapElUtils.convertDnToSpecificValueTest(subjectId)}' This is from the log: 2015-02-06 17:15:30,910: [main] ERROR GrouperLoaderJob.runJobLdap(603) - - Error on job: LDAP_SIMPLE__From_LDAP:LdapTestGroup__18ef31dc248e4ab9ba66530f79e3dd1a java.lang.RuntimeException: Error substituting string: '${loaderLdapElUtils.convertDnToSpecificValueTest(subjectId)}' at edu.internet2.middleware.grouper.util.GrouperUtil.substituteExpressionLanguage(GrouperUtil.java:9173) at edu.internet2.middleware.grouper.app.loader.ldap.LoaderLdapUtils.substituteEl(LoaderLdapUtils.java:699) at edu.internet2.middleware.grouper.app.loader.db.GrouperLoaderResultset.convertToSubjectIdIfNeeded(GrouperLoaderResultset.java:1193) at edu.internet2.middleware.grouper.app.loader.db.GrouperLoaderResultset.<init>(GrouperLoaderResultset.java:534) at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$6.runJob(GrouperLoaderType.java:751) at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJobLdap(GrouperLoaderJob.java:583) at edu.internet2.middleware.grouper.app.loader.GrouperLoader.runJobOnceForGroup(GrouperLoader.java:1008) at edu.internet2.middleware.grouper.app.gsh.loaderRunOneJob.invoke(loaderRunOneJob.java:57) 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:606) at bsh.Reflect.invokeMethod(Unknown Source) at bsh.Reflect.invokeStaticMethod(Unknown Source) at bsh.Reflect.invokeCompiledCommand(Unknown Source) at bsh.Name.invokeLocalMethod(Unknown Source) at bsh.Name.invokeMethod(Unknown Source) at bsh.BSHMethodInvocation.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.BSHPrimaryExpression.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at bsh.Interpreter.eval(Unknown Source) at edu.internet2.middleware.grouper.app.gsh.ShellHelper.eval(ShellHelper.java:63) at edu.internet2.middleware.grouper.app.gsh.GrouperShell.run(GrouperShell.java:429) at edu.internet2.middleware.grouper.app.gsh.GrouperShell.grouperShellHelper(GrouperShell.java:232) at edu.internet2.middleware.grouper.app.gsh.GrouperShell.main(GrouperShell.java:162) at edu.internet2.middleware.grouper.app.gsh.GrouperShellWrapper.main(GrouperShellWrapper.java:31) Caused by: org.apache.commons.jexl2.JexlException: edu.internet2.middleware.grouper.util.GrouperUtil.substituteExpressionLanguage@9118![18,57]: 'loaderLdapElUtils.convertDnToSpecificValueTest(subjectId);' unknown
or ambiguous method From: Chris Hyzer [mailto:]
I think you need to get it so that the subject id is just the for xxxx part, and not with an "ou" right? I think you need to set the attribute:
grouperLoaderLdapSubjectExpression to the value: ${loaderLdapElUtils.convertDnToSpecificValue(subjectId)} Its mentioned here: https://spaces.internet2.edu/display/Grouper/Grouper+-+Loader+LDAP Thanks, Chris From:
[]
On Behalf Of Niva Agmon I am trying to load a test group from Ldap to grouper using the ldap loader for our proof of technology demo, but nothing is being imported: gsh 23% loaderRunOneJob(group); loader ran successfully, inserted 0 memberships, deleted 0 memberships, total membership count: 1 The log indicates that there is a problem with SubjectID, but the values that are returned are the correct ones, so I’m not sure what the subjectId should be or what else am I doing wrong: 2015-02-05 21:32:09,072: [main] ERROR GrouperLoaderResultset$Row.getSubject(1399) - - Problem with subjectId: xxxx,ou=xxxxxxxx..., subjectSourceId: Temple, in jobName: From_LDAP:LdapTestGroup edu.internet2.middleware.subject.SubjectNotFoundException: No results: searchSubject filter:(& (xxxid=%TERM%) (objectclass=EduPerson)) searchValue:xxxx,ou=xxxxxxxx..., at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getLdapUnique(LdapSourceAdapter.java:728) at edu.internet2.middleware.subject.provider.LdapSourceAdapter.getSubject(LdapSourceAdapter.java:314) Thanks. Niva Agmon Temple University |
- [grouper-users] ldap group not being loaded to grouper, Niva Agmon, 02/06/2015
- [grouper-users] RE: ldap group not being loaded to grouper, Chris Hyzer, 02/06/2015
- [grouper-users] RE: ldap group not being loaded to grouper, Niva Agmon, 02/06/2015
- [grouper-users] RE: ldap group not being loaded to grouper, Chris Hyzer, 02/06/2015
Archive powered by MHonArc 2.6.16.