Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] groupershell

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] groupershell


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Wallaert-Taquet Brigitte <>, "" <>
  • Subject: RE: [grouper-users] groupershell
  • Date: Fri, 10 Jul 2015 13:13:22 +0000
  • Accept-language: en-US

I did this on the demo server.  typeGetFields isn’t supposed to return the attributes, so its ok it is blank.  Not sure how to list attributes for a type in gsh. 

 

Here was my GSH

 

gsh 0% grouperSession = GrouperSession.startRootSession();

edu.internet2.middleware.grouper.GrouperSession: 9ffe80f30c99453d88274bdb72caf78b,'GrouperSystem','application'

gsh 1% typeAdd("GroupInterface");

type: 'GroupInterface'

gsh 2% typeAddAttr("GroupInterface","cnLDAP");

edu.internet2.middleware.grouper.attr.AttributeDefName: AttributeDefName[name=etc:legacy:attribute:legacyAttribute_cnLDAP,uuid=3d1d0a50e84b4e65a26ecf6d6847336d]

 

 

Screenshots from UI

 

 

 

Check that GroupInterface box, save, then click edit attributes

 

 

That is what you want right?

 

Thanks,

Chris

 

 

From: [mailto:] On Behalf Of Wallaert-Taquet Brigitte
Sent: Friday, July 10, 2015 8:42 AM
To:
Subject: [grouper-users] groupershell

 

Hello,

I create a custom group type "GroupInterface" and want to attach one attribut named "cnLDAP". I use the gsh command : typeAddAttr but unfortenatly, in the admin interface, I see well the the type "GroupInterface" but without the attribute "cnLDAP" (see screen admin-type.png). With gsh, I see that this attribute was attached to the type (see the trace below)... What to do ?

Also, I see well in the new interface the legacy_attribute_cnLDAP but I don't see any attribute in the admin interface though I connect as admin (see screens).

Here is the gsh trace :
GrouperSession.startRootSession();
edu.internet2.middleware.grouper.GrouperSession: 38657a1a1f244da3824dac4b55cce0ca,'GrouperSystem','application'
gsh 1% typeGetFields("GroupInterface");
gsh 2% typeFind("GroupInterface");
type: 'GroupInterface'
gsh 3% typeAddAttr("GroupInterface","cnLDAP");
// Error: cnLDAP already exists.,
Problem in HibernateSession: HibernateSession (57a69dd2): new, notReadonly, READ_WRITE_NEW, notActiveTransaction, session (7baac821)
// Error: unable to evaluate command: Sourced file: inline evaluation of: ``typeAddAttr("GroupInterface","cnLDAP");'' : Error invoking compiled command: : Error in compiled command: edu.internet2.middleware.grouper.app.gsh.GrouperShellException: unable to add attribute to group type: GroupInterface


Note : at this wiki page : https://spaces.internet2.edu/pages/viewpage.action?pageId=14517859, the command indicate this format : typeAddAttr(type name, attr name, read, write, required) but this one is ok :  typeAddAttr(type name, attr name)

Thanks for help !

--
Logo Université de Lille Sciences et Technologies

Brigitte WALLAERT TAQUET
Cheffe de projet GED Nuxeo
Experte Grouper d'Internet2


Université de Lille - Sciences et Technologies
| www.univ-lille1.fr
Service: CRI Bât. M4 - Bureau 34 59655 Villeneuve d'Ascq
Tél. +33 (0)3 20 33 71 65




Archive powered by MHonArc 2.6.16.

Top of Page