Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] PSP - adding an extra attribute

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] PSP - adding an extra attribute


Chronological Thread 
  • From: David Langenberg <>
  • To: Jeff McCullough <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] PSP - adding an extra attribute
  • Date: Tue, 1 Oct 2013 10:18:25 -0600

Hi Jeff,

Sure, you can add that object class.  In your psp-resolver.xml you will find several object class definitions.  You'll see things like this

<dc:Attribute id="staticStemObjectclass">
            <dc:Value>top</dc:Value>
            <dc:Value>organizationalUnit</dc:Value>
        </dc:Attribute>

just add another <dc:Value>

Dave


On Mon, Sep 30, 2013 at 5:17 PM, Jeff McCullough <> wrote:
Hi Dave,

One more question if I may. For our standard group schema, we don't have a displayName attribute. We will either need to change our schema or use the extensibleObject Object class to add it. I'm wondering if it is possible to change the config files such that PSP can add the extensibleObject Object class before it adds the displayName attribute? Is it a code change? Easy to add or not?

Thanks,
Jeff

On Sep 26, 2013, at 4:40 PM, David Langenberg <> wrote:

Yes, that looks like it should do the trick.

Dave


On Thu, Sep 26, 2013 at 5:28 PM, Jeff McCullough <> wrote:
Hi Dave,

Thank you for your quick reply. Just to confirm. 

In psp-resolver I want to add:

<!-- The value of the group "displayName" attribute is the group displayName. -->
  <resolver:AttributeDefinition
    id="groupDisplayName"
    xsi:type="ad:Simple"
    sourceAttributeID="displayName">
    <resolver:Dependency ref="GroupDataConnector" />
    <resolver:Dependency ref="UpdateGroupDisplayNameChangeLogDataConnector" />
  </resolver:AttributeDefinition>

 <!-- Returns change log attributes representing the changing of a group's description. -->
  <resolver:DataConnector
    id="UpdateGroupDisplayNameChangeLogDataConnector"
    xsi:type="psp-grouper-changelog:ChangeLogDataConnector">
    <!-- The AND filter matches both child filters. -->
    <grouper:Filter xsi:type="grouper:AND">
      <!-- The ChangeLogEntry filter matches change log entries with the given category and action. -->
      <grouper:Filter
        xsi:type="psp-grouper-changelog:ChangeLogEntry"
        category="group"
        action=""updateGroup"" />
      <!-- The ChangeLogExactAttribute filter matches change log entries with the given attribute and value. -->
      <grouper:Filter
        xsi:type="psp-grouper-changelog:ChangeLogExactAttribute"
        name="propertyChanged"
        value="displayName" />
    </grouper:Filter>
  </resolver:DataConnector>


And in psp.xml

I add:

   <!-- The ldap group "displayName" attribute. -->
    <attribute
      name="displayName"
      ref="groupDisplayName" />

Thank you,
Jeff


On Sep 26, 2013, at 3:57 PM, David Langenberg <> wrote:

Hi Jeff,

In the psp-resolver.xml you would define the displayName attribute just like the name ones.  Then in the psp.xml in the <pso id="group"> tag you'd add another <attribute> element which references the displayName attribute.

<attribute name="displayName" ref="groupDisplayName" />

Assuming in psp-resolver you defined the displayName as groupDisplayName.

Dave



On Thu, Sep 26, 2013 at 4:44 PM, Jeff McCullough <> wrote:

I would like possibly add another attribute to the ones that PSP provisions in LDAP. For example, along with the Grouper "name" being used for the LDAP group cn, I'd like to have the Grouper displayName attribute provisioned as an LDAP displayName. I see in the documentation that I can easily switch from using Grouper "name" to displayName, but I'd like to add the displayName as an extra attribute. If possible, what would I need to add to the psp-resolver.xml?

Thanks,
Jeff




--
David Langenberg
Identity & Access Management
The University of Chicago




--
David Langenberg
Identity & Access Management
The University of Chicago




--
David Langenberg
Identity & Access Management
The University of Chicago



Archive powered by MHonArc 2.6.16.

Top of Page