grouper-users - Re: [grouper-users] ldappcng filtering and attribute framework
Subject: Grouper Users - Open Discussion List
List archive
- From: Arnaud Deman <>
- To: Tom Zeller <>
- Cc:
- Subject: Re: [grouper-users] ldappcng filtering and attribute framework
- Date: Thu, 10 Feb 2011 17:28:50 +0100
Hi tom, thanks for your answer.
Is the list of filters in the Grouper and Shibboleth integration page
exhaustive ?
I saw the filters in the package edu.internet2.middleware.grouper.filter
and I wondered if they could be used in this context. If the answer is
yes I could use a filter based on a custom type instead...
Kind regards,
Arnaud.
Le jeudi 10 février 2011 à 09:44:56, Tom Zeller a écrit :
> The ExactAttributeGroupFilter doesn't handle attributes from the
> attribute framework, it should.
>
> I think an all-purpose Group attribute retrieval method which supports
> fields, attributes, and attribute framework attributes would be
> convenient.
>
> Group.getAttributeOrFieldOrAttributeFrameworkValue(...) ?
>
> https://bugs.internet2.edu/jira/browse/GRP-557
>
> On Thu, Feb 10, 2011 at 8:20 AM, Arnaud Deman
> <>
> wrote:
> > Hello,
> >
> > I am trying to use a custom attribute to filter the provisionned groups
> > by ldappcng (version 1.6.2). I am trying to follow the examples at :
> > https://spaces.internet2.edu/display/Grouper/Grouper%20and%20Shibboleth%20Integration
> >
> > I used a gsh script to create my attribute and the significative lines
> > are :
> >
> > (...)
> > publicationAttrDef=stem.addChildAttributeDef("publication",
> > AttributeDefType.attr);
> > publicationAttrDef.setAssignToGroup(true);
> > ldapPublicationAttr = stem.addChildAttributeDefName(publicationAttrDef,
> > "publication_ldap", "Publication LDAP");
> >
> > (...)
> >
> > Group group = GroupFinder.findByName(grouperSession,
> > "esup:utilisateurs:enseignants", true);
> > group.getAttributeDelegate().assignAttribute(ldapPublicationAttr);
> > group.getAttributeDelegate().retrieveAssignments(ldapPublicationAttr).iterator().next().getValueDelegate().assignValueString("actif");
> >
> >
> > This part seems to work, because the following instruction returns
> > java.util.ArrayList: [actif]
> > group.getAttributeValueDelegate().retrieveValuesString("esup:attributs:publication_ldap");
> >
> >
> > Then in the ldappc-resolver.xml I added a filter in the group data
> > connector :
> >
> > <resolver:DataConnector id="GroupDataConnector"
> > xsi:type="grouper:GroupDataConnector">
> > <grouper:GroupFilter xsi:type="grouper:ExactAttribute"
> > name="esup:attributs:publication_ldap" value="actif" />
> > <grouper:Attribute id="members:immediate" />
> > <grouper:Attribute id="groups:immediate" />
> > </resolver:DataConnector>
> >
> >
> > When I try to provision the group I have this error :
> > <ldappc:syncResponse
> > xmlns:ldappc='http://grouper.internet2.edu/ldappc'status='failure'
> > requestID='2011/02/10-14:49:36.653_QT90GMXM'
> > error='noSuchIdentifier'>
> > <errorMessage>Unable to calculate provisioned object.</errorMessage>
> > <ldappc:id ID='esup:utilisateurs:enseignants'/>
> > </ldappc:syncResponse>
> >
> >
> > And last, a filter based on the name works fine.
> >
> > Does someone have an idea of where could be my mistake ?
> >
> > Thanks,
> > Arnaud.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Arnaud Deman
> > 04 91 28 85 25
> > DSI - Université Paul Cézanne Aix-Marseille III
> > Avenue Escadrille Normandie-Niemen
> > 13397 MARSEILLE CEDEX 20
> >
> >
--
Arnaud Deman
04 91 28 85 25
DSI - Université Paul Cézanne Aix-Marseille III
Avenue Escadrille Normandie-Niemen
13397 MARSEILLE CEDEX 20
- [grouper-users] ldappcng filtering and attribute framework, Arnaud Deman, 02/10/2011
- Re: [grouper-users] ldappcng filtering and attribute framework, Tom Zeller, 02/10/2011
- Re: [grouper-users] ldappcng filtering and attribute framework, Arnaud Deman, 02/10/2011
- Re: [grouper-users] ldappcng filtering and attribute framework, Tom Zeller, 02/10/2011
- Re: [grouper-users] ldappcng filtering and attribute framework, Arnaud Deman, 02/10/2011
- Re: [grouper-users] ldappcng filtering and attribute framework, Tom Zeller, 02/10/2011
- Re: [grouper-users] ldappcng filtering and attribute framework, Arnaud Deman, 02/10/2011
- Re: [grouper-users] ldappcng filtering and attribute framework, Tom Zeller, 02/10/2011
Archive powered by MHonArc 2.6.16.