grouper-users - [grouper-users] LDAP loader group with addIncludeExclude
Subject: Grouper Users - Open Discussion List
List archive
- From: Scott Koranda <>
- To: grouper-users <>
- Subject: [grouper-users] LDAP loader group with addIncludeExclude
- Date: Wed, 11 Nov 2015 06:39:05 -0600
Hi,
I am using Grouper 2.1.5.
I created an LDAP loader group using the following GSH script:
grouperSession = GrouperSession.startRootSession();
group = new
GroupSave(grouperSession).assignName("test:members_systemOfRecord").assignDescription("test").assignCreateParentStemsIfNotExist(true).save();
attributeAssign =
group.getAttributeDelegate().assignAttribute(LoaderLdapUtils.grouperLoaderLdapAttributeDefName()).getAttributeAssign();
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapTypeName(),
"LDAP_SIMPLE");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapFilterName(),
"(uid=skoranda)");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapQuartzCronName(),
"0 0/5 * * * ?");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSearchDnName(),
"ou=people");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapServerIdName(),
"dev");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSourceIdName(),
"test");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSubjectAttributeName(),
"uid");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapSubjectIdTypeName(),
"subjectId");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapGroupTypesName(),
"addIncludeExclude");
attributeAssign.getAttributeValueDelegate().assignValue(LoaderLdapUtils.grouperLoaderLdapGroupsLikeName(),
"test:members_systemOfRecord");
Note the 'addIncludeExclude' value assigned for LdapGroupTypes.
I then ran the loader job.
The group test:members_systemOfRecord is created as I expected with
the memberships that I expected.
The auxiliary groups
test:members
test:members excludes
test:members includes
test:members system of record and includes
were not, however, created.
I found that if I used the admin UI to edit the test:members_systemOfRecord
and check the 'addIncludeExclude' box next to 'Select group types' then
the auxiliary groups are created and function as I would expect.
Is this the expected behavior, or should have assigning the
'addIncludeExclude' value for LdapGroupTypes been enough to create
the auxiliary group structure?
Thanks,
Scott K
- [grouper-users] LDAP loader group with addIncludeExclude, Scott Koranda, 11/11/2015
- RE: [grouper-users] LDAP loader group with addIncludeExclude, Chris Hyzer, 11/11/2015
- Re: [grouper-users] LDAP loader group with addIncludeExclude, Scott Koranda, 11/11/2015
- RE: [grouper-users] LDAP loader group with addIncludeExclude, Chris Hyzer, 11/11/2015
Archive powered by MHonArc 2.6.16.