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: Shilen Patel <>
  • To: Wallaert-Taquet Brigitte <>, Chris Hyzer <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] groupershell
  • Date: Fri, 10 Jul 2015 14:34:10 +0000
  • Accept-language: en-US
  • Authentication-results: univ-lille1.fr; dkim=none (message not signed) header.d=none;
  • Sn1pr0501mb1840: X-MS-Exchange-Organization-RulesExecuted

Right, the legacy attributes aren’t displayed there as of 2.2.  Does it need to?  If so, I can add a patch.  Note that it shouldn’t be causing any other issues with using the attribute in the admin UI.

Thanks!

- Shilen

From: Wallaert-Taquet Brigitte <>
Date: Friday, July 10, 2015 at 9:38 AM
To: Chris Hyzer <>, "" <>
Subject: Re: [grouper-users] groupershell

Yes, this ok for me too, thanks !

For tests, we create also a custom list (with the same name) to the group type ant it appears (see screen) ! I don't understand why an attribute isn't showed in the admin interface on the type group ? Isn't it a bug ? Because with Grouper 1.6.3, the 2 was showned.

Good day.
Brigitte


Le 10/07/2015 15:13, Chris Hyzer a écrit :

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: [] 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



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