Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] ldappcng filtering and attribute framework

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] ldappcng filtering and attribute framework


Chronological Thread 
  • From: Tom Zeller <>
  • To: Arnaud Deman <>
  • Cc:
  • Subject: Re: [grouper-users] ldappcng filtering and attribute framework
  • Date: Thu, 10 Feb 2011 09:44:56 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=KFa8vxWpsQeJn6PD9hvZzSnI7/pOP/F05/pWpIa/LdA57ilnmWkSxI0yMqOo8C/Or2 GvAsgep17qAyE1Zb9E1m87ZP4VDi8SFlu8dB5YZNbTM9eftI8geZNVzQllnRM4JR93vO jeCDe0TIqdEs1I19kAfdIL/+oLzfUQ8OmRmQ4=

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
>
>



Archive powered by MHonArc 2.6.16.

Top of Page