Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] PSP : using string value attribute

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] PSP : using string value attribute


Chronological Thread 
  • From: Tom Zeller <>
  • To: Gagné Sébastien <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] PSP : using string value attribute
  • Date: Wed, 23 Jan 2013 17:26:54 -0600

Take a look at the StaticDataConnector, an example is objectclass.

On Wed, Jan 23, 2013 at 12:02 PM, Gagné Sébastien
<>
wrote:
> Hi,
>
> How can I set a group attribute to be a single constant string value ? Our
> use case is for always setting the Active Directory groupType attribute to
> “Universal” instead of the default “Global” value.
>
>
>
> Right now I did it using a dummy script (see below), but there must be a way
> to simply define to define something like “<attribute name="groupType"
> value="-2147483646" />”
>
>
>
> Thanks
>
>
>
> In psp.xml :
>
> <attribute name="groupType" />
>
>
>
> Which references a script attribute in psp-resolver.xml :
>
>
>
> <resolver:AttributeDefinition
>
> id="groupType"
>
> xsi:type="ad:Script">
>
> <ad:Script><![CDATA[
>
> // Import Shibboleth attribute provider.
>
>
> importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);
>
>
>
> // Create the attribute to be returned.
>
> groupType = new BasicAttribute("groupType");
>
>
>
> groupType.getValues().add("-2147483646");
>
>
>
> ]]></ad:Script>
>
> </resolver:AttributeDefinition>
>
>
>
>
>
> Sébastien Gagné, | Analyste en informatique
>
> 514-343-6111 x33844 | Université de Montréal,
>
> | Pavillon Roger-Gaudry, local X-100-11
>
>



Archive powered by MHonArc 2.6.16.

Top of Page