grouper-users - [grouper-users] RE: Problem creating LDAP_GROUPS_FROM_ATTRIBUTES
Subject: Grouper Users - Open Discussion List
List archive
- From: "Bryan E. Wooten" <>
- To: Chris Hyzer <>, "" <>
- Subject: [grouper-users] RE: Problem creating LDAP_GROUPS_FROM_ATTRIBUTES
- Date: Wed, 21 Aug 2013 14:37:43 +0000
- Accept-language: en-US
It is half fixed. Line 423: String groupParentFolderNameTemp = requireTopStemAsStemFromConfigGroup ? (GrouperUtil.parentStemNameFromName(groupName) + ":") : ""; if (!StringUtils.isBlank(groupParentFolderNameTemp) && !groupParentFolderNameTemp.endsWith(":")) { groupParentFolderNameTemp += ":"; } But line 687 was the bad code. This is the 2.1.4 tar source download. Thanks! I’ll rebuild and give it a try. -Bryan From: Chris Hyzer [mailto:]
Do you have the patch for this in place in your env https://bugs.internet2.edu/jira/browse/GRP-913 Chris From:
[]
On Behalf Of Bryan E. Wooten When I try and create groups from LDAP attributes I get the following error: 2013-08-21 07:33:40,087: [main] ERROR GrouperLoaderType.syncOneGroupMembership(2 308) - - Problem with group: :uofu:ref-groups:uuParttimeEmployee_SOR edu.internet2.middleware.grouper.exception.StemNotFoundException: Can't find ste m by name: ':uofu:ref-groups', Yet when I run the following in the gsh I see this: gsh 0% grouperSession = GrouperSession.startRootSession(); edu.internet2.middleware.grouper.GrouperSession: 2a6c7a1096244c49b4cb7f19979540c7,'GrouperSystem','application' gsh 1% stem = StemFinder.findByName(grouperSession,"uofu"); stem: name='uofu' displayName='University of Utah' uuid='6a6e74edaf024c838740f26762f37c2d' gsh 2% stem = StemFinder.findByName(grouperSession,"ref-groups"); // Error: unable to evaluate command: Sourced file: inline evaluation of: ``stem = StemFinder.findByName(grouperSession,"ref-groups");'' : Method Invocation StemFinder.findByName // See error log for full stacktrace // caused by: edu.internet2.middleware.grouper.exception.StemNotFoundException: // Can't find stem by name: 'ref-groups' gsh 3% stem = StemFinder.findByName(grouperSession,"uofu:ref-groups"); stem: name='uofu:ref-groups' displayName='University of Utah:Reference Groups' uuid='38aca8624b6a4a3697816680b9b33061' gsh 4% Any Idea what is broken? I created my Grouper group like this: grouperSession = GrouperSession.startRootSession(); group = new GroupSave(grouperSession).assignName("etc:loader:groupsFromUuEmployeeAttribute").assignCreateParentStemsIfNotExist(true).save(); attributeAssign = group.getAttributeDelegate().assignAttribute(LoaderLdapUtils.grouperLoaderLdapAttributeDefName()).getAttributeAssign(); attributeAssign = group.getAttributeDelegate().retrieveAssignment(null, LoaderLdapUtils.grouperLoaderLdapAttributeDefName(), false, true); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapTypeName(), "LDAP_GROUPS_FROM_ATTRIBUTES"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapFilterName(), "(!(uuemployee=gt*))"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapQuartzCronName(), "0 0 0 0/1 30 ?"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSearchDnName(), "ou=people,dc=grouperad,dc=utah,dc=edu"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapServerIdName(), "personLdap"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSourceIdName(), "ldap"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapGroupAttributeName(), "uuemployee"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSubjectIdTypeName(), "subjectIdentifier"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapGroupNameExpressionName(), "uofu:ref-groups:${groupAttribute}_SOR"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSubjectExpressionName(), "${subjectAttributes['cn']}"); attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapExtraAttributesName(), "cn"); group = GroupFinder.findByName(grouperSession, "etc:loader:groupsFromUuEmployeeAttribute"); loaderRunOneJob(group); Thanks, Bryan |
- [grouper-users] Problem creating LDAP_GROUPS_FROM_ATTRIBUTES, Bryan E. Wooten, 08/21/2013
- [grouper-users] RE: Problem creating LDAP_GROUPS_FROM_ATTRIBUTES, Chris Hyzer, 08/21/2013
- [grouper-users] RE: Problem creating LDAP_GROUPS_FROM_ATTRIBUTES, Bryan E. Wooten, 08/21/2013
- [grouper-users] RE: Problem creating LDAP_GROUPS_FROM_ATTRIBUTES, Chris Hyzer, 08/21/2013
Archive powered by MHonArc 2.6.16.