Skip to Content.
Sympa Menu

grouper-users - RE: RE: [grouper-users] How to import LDAP groups into Grouper?

Subject: Grouper Users - Open Discussion List

List archive

RE: RE: [grouper-users] How to import LDAP groups into Grouper?


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Cameron stewart <>, "" <>
  • Subject: RE: RE: [grouper-users] How to import LDAP groups into Grouper?
  • Date: Wed, 9 Feb 2011 13:03:12 -0500
  • Accept-language: en-US
  • Acceptlanguage: en-US

Maybe someone has an example of this, or a better idea, but for one time use
you could use a generated GSH script (from whatever programming language you
want, or parse ldif or something). I.e. if you can dump the data from ldap
into a GSH script somehow...

First declare a session:

grouperSession = GrouperSession.startRootSession();

then create each group:

new
GroupSave(grouperSession).assignName("folder1:folder2:group1").assignCreateParentStemsIfNotExist(true).save();
new
GroupSave(grouperSession).assignName("folder1:folder2:group2").assignCreateParentStemsIfNotExist(true).save();
new
GroupSave(grouperSession).assignName("folder3:folder4:group1").assignCreateParentStemsIfNotExist(true).save();

then add members:

addMember("folder1:folder2:group1", "subjectIdentifier1");
addMember("folder1:folder2:group1", "subjectIdentifier2");
addMember("folder1:folder2:group2", "subjectIdentifier1");

Once all that stuff is in one file, run in gsh:

./gsh.sh myScriptFile.script

If you need an example let us know and maybe someone could make one... let us
know which type of directory you have and a description of the structure.

Thanks,
Chris


-----Original Message-----
From: Cameron stewart
[mailto:]

Sent: Wednesday, February 09, 2011 12:55 PM
To:
;
Chris Hyzer
Subject: Re: RE: [grouper-users] How to import LDAP groups into Grouper?

Thanks for the quick reply.

I am currently using 1.6.2.

By "sync-up" I mean that generally I would like to take all of my existing
LDAP groups and import them into Grouper. Ideally, once I had this data in
Grouper, I could then manage those groups in Grouper, provision changes to
LDAP, and yes, potentially make this the system of record.

Cameron



Archive powered by MHonArc 2.6.16.

Top of Page