Skip to Content.
Sympa Menu

grouper-users - [grouper-users] grouper loader as service

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] grouper loader as service


Chronological Thread 
  • From: Jeff McCullough <>
  • To:
  • Cc: CalNet Administration <>
  • Subject: [grouper-users] grouper loader as service
  • Date: Fri, 6 Apr 2012 18:36:05 -0700


I've successfully used both the ldap loader types:

LDAP_GROUPS_FROM_ATTRIBUTES
LDAP_SIMPLE

I can run both the scripts below successfully from gsh. When I use gsh.sh
-loader, the LDAP_SIMPLE group runs as expected. The other one fails with
this error the below error. What am I missing?

Thanks,
Jeff

------------------
grouper_error.log snippet
-----------------
2012-04-06 18:27:00,055: [DefaultQuartzScheduler_Worker-4] ERROR
GrouperLoaderJob.runJob(387) - - Error on job:
LDAP_GROUPS_FROM_ATTRIBUTES__test:Departments:myLdapGroupFromAttributes__2324252375624390a09e671fb01c5710
java.lang.RuntimeException: Cant find the ldap connection named: 'null' in
the grouper-loader.properties. Should have entry: ldap.null.url,
Problem with ldap conection: null,
Error querying ldap server id: null, searchDn: null, filter: 'null',
returning subject attribute: null
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderConfig.retrieveLdapProfile(GrouperLoaderConfig.java:288)
at
edu.internet2.middleware.grouper.ldap.LdapSession.blockingLdapPool(LdapSession.java:54)
at
edu.internet2.middleware.grouper.ldap.LdapSession.callbackLdapSession(LdapSession.java:174)
at
edu.internet2.middleware.grouper.app.loader.db.GrouperLoaderResultset.initForLdapGroupsFromAttributes(GrouperLoaderResultset.java:656)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$8.runJob(GrouperLoaderType.java:893)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob(GrouperLoaderJob.java:379)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.execute(GrouperLoaderJob.java:281)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
2012-04-06 18:27:00,068: [DefaultQuartzScheduler_Worker-4] ERROR
GrouperLoaderJob.execute(284) - - Error running up job
java.lang.RuntimeException: Cant find the ldap connection named: 'null' in
the grouper-loader.properties. Should have entry: ldap.null.url,
Problem with ldap conection: null,
Error querying ldap server id: null, searchDn: null, filter: 'null',
returning subject attribute: null
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderConfig.retrieveLdapProfile(GrouperLoaderConfig.java:288)
at
edu.internet2.middleware.grouper.ldap.LdapSession.blockingLdapPool(LdapSession.java:54)
at
edu.internet2.middleware.grouper.ldap.LdapSession.callbackLdapSession(LdapSession.java:174)
at
edu.internet2.middleware.grouper.app.loader.db.GrouperLoaderResultset.initForLdapGroupsFromAttributes(GrouperLoaderResultset.java:656)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$8.runJob(GrouperLoaderType.java:893)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob(GrouperLoaderJob.java:379)
at
edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.execute(GrouperLoaderJob.java:281)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at
org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
-------------------

------------------
LDAP_GROUPS_FROM_ATTRIBUTES.gsh
------------------
grouperSession = GrouperSession.startRootSession();
group = new \
GroupSave(grouperSession).assignName("test:Departments:myLdapGroupFromAttributes").assignCreateParentStemsIfNotExist(true).save();
attributeAssign =
group.getAttributeDelegate().assignAttribute(LoaderLdapUtils.grouperLoaderLdapAttributeDefName()).getAttributeAssign();attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapTypeName(),
"LDAP_GROUPS_FROM_ATTRIBUTES");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapFilterName(),
"(&(objectclass=person)
\(!(berkeleyedutestidflag=true))(!(berkeleyeduempexdate=*))(departmentnumber=JICCS))");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapQuartzCronName(),
"0 0/3 * * * ?");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapServerIdName(),
"ucbLdap");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSourceIdName(),
"LDAP");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSubjectAttributeName(),
"uid");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapGroupAttributeName(),
"departmentnumber");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSubjectIdTypeName(),
"subjectIdentifier");
group = GroupFinder.findByName(grouperSession,
"test:Departments:myLdapGroupFromAttributes");
loaderRunOneJob(group);



------------------------------
LDAP_SIMPLE.gsh
------------------------------

grouperSession = GrouperSession.startRootSession();
group = new
GroupSave(grouperSession).assignName("someStem:myLdapGroup").assignCreateParentStemsIfNotExist(true).save();
attributeAssign =
group.getAttributeDelegate().assignAttribute(LoaderLdapUtils.grouperLoaderLdapAttributeDefName()).getAttributeAssign();
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapTypeName(),
"LDAP_SIMPLE");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapFilterName(),
"(&(objectclass=person) \
(!(berkeleyedutestidflag=true))(!(berkeleyeduempexdate=*))(departmentnumber=JICCS))");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapQuartzCronName(),
"45 0/3 * * * ?");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapServerIdName(),
"ucbLdap");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSourceIdName(),
"LDAP");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSubjectAttributeName(),
"uid");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSubjectIdTypeName(),
"subjectIdentifier");
group = GroupFinder.findByName(grouperSession, "someStem:myLdapGroup");
loaderRunOneJob(group);
~


Archive powered by MHonArc 2.6.16.

Top of Page