You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@directory.apache.org by Olivier Drouin <ol...@gmail.com> on 2014/09/17 17:04:20 UTC
[Studio] migration of a subtree to another domain
Hello guys!
I'm trying to move an LDAP subtree under another domain with
Studio. The LDAP server is the OpenLDAP 2.4.39 . Under OpenLDAP I specified
that the RootDN for each of the 2 domains is cn=Manager,cn=config. That way
I can connect with Studio as "cn=Manager,cn=config" and have write access
to the 2 LDAP trees. I can then copy a subtree and paste it under the other
tree. The OUs, inetOrgPersons and groupOfUniqueNames are correctly renamed
(by that I mean the object's DNs are correctly translated). The only
remaining item for my need is that the uniqueMembers of the groups are not
renamed. Is there any way I can automate the renaming of the group's
uniqueMembers (or members) under studio?
Thanks for your help and congratulations for Studio, It's an
awesome tool.
Regards,
Olivier Drouin
Re: [Studio] migration of a subtree to another domain
Posted by Kiran Ayyagari <ka...@apache.org>.
On Wed, Sep 17, 2014 at 10:37 PM, Olivier Drouin <ol...@gmail.com>
wrote:
> Ok, that's what I figured. I guess I'll have a followup question then. Is
> there a perl library that would base64 decodes my group exports? If I
>
I am no perl expert, but Net::LDAP seems to be the library you need
> export with studio most uniqueMembers entry are base64. So, I need to 1)
>
they might have been encoded by Studio, but it is not needed
> encode the file as UTF-8 2) decode the base64 entries 3) modify the basedns
> 4) modify the LDIF data for "modification" operations on the exported
> entries 3) re-encode entries to base64 4) reencode the file to ASCII
>
so you don't need to re-encode them
> (optional I think). Do you guys know of any tools that would allow to
> speed up this process?
>
yeah, no, except the perl runtime ;)
>
> Thanks again
> Olivier Drouin.
>
>
>
>
>
> On Wed, Sep 17, 2014 at 12:04 PM, Kiran Ayyagari <ka...@apache.org>
> wrote:
>
> > On Wed, Sep 17, 2014 at 8:34 PM, Olivier Drouin <ol...@gmail.com>
> > wrote:
> >
> > > Hello guys!
> > > I'm trying to move an LDAP subtree under another domain
> > with
> > > Studio. The LDAP server is the OpenLDAP 2.4.39 . Under OpenLDAP I
> > specified
> > > that the RootDN for each of the 2 domains is cn=Manager,cn=config. That
> > way
> > > I can connect with Studio as "cn=Manager,cn=config" and have write
> access
> > > to the 2 LDAP trees. I can then copy a subtree and paste it under the
> > other
> > > tree. The OUs, inetOrgPersons and groupOfUniqueNames are correctly
> > renamed
> > > (by that I mean the object's DNs are correctly translated). The only
> > > remaining item for my need is that the uniqueMembers of the groups are
> > not
> > > renamed. Is there any way I can automate the renaming of the group's
> > > uniqueMembers (or members) under studio?
> > >
> > no, this is not possible at the moment using Studio.
> > (am afraid you have to script it)
> >
> > >
> > > Thanks for your help and congratulations for Studio,
> It's
> > an
> > > awesome tool.
> > >
> > > Regards,
> > > Olivier Drouin
> > >
> >
> >
> >
> > --
> > Kiran Ayyagari
> > http://keydap.com
> >
>
--
Kiran Ayyagari
http://keydap.com
Re: [Studio] migration of a subtree to another domain
Posted by Olivier Drouin <ol...@gmail.com>.
Ok, that's what I figured. I guess I'll have a followup question then. Is
there a perl library that would base64 decodes my group exports? If I
export with studio most uniqueMembers entry are base64. So, I need to 1)
encode the file as UTF-8 2) decode the base64 entries 3) modify the basedns
4) modify the LDIF data for "modification" operations on the exported
entries 3) re-encode entries to base64 4) reencode the file to ASCII
(optional I think). Do you guys know of any tools that would allow to
speed up this process?
Thanks again
Olivier Drouin.
On Wed, Sep 17, 2014 at 12:04 PM, Kiran Ayyagari <ka...@apache.org>
wrote:
> On Wed, Sep 17, 2014 at 8:34 PM, Olivier Drouin <ol...@gmail.com>
> wrote:
>
> > Hello guys!
> > I'm trying to move an LDAP subtree under another domain
> with
> > Studio. The LDAP server is the OpenLDAP 2.4.39 . Under OpenLDAP I
> specified
> > that the RootDN for each of the 2 domains is cn=Manager,cn=config. That
> way
> > I can connect with Studio as "cn=Manager,cn=config" and have write access
> > to the 2 LDAP trees. I can then copy a subtree and paste it under the
> other
> > tree. The OUs, inetOrgPersons and groupOfUniqueNames are correctly
> renamed
> > (by that I mean the object's DNs are correctly translated). The only
> > remaining item for my need is that the uniqueMembers of the groups are
> not
> > renamed. Is there any way I can automate the renaming of the group's
> > uniqueMembers (or members) under studio?
> >
> no, this is not possible at the moment using Studio.
> (am afraid you have to script it)
>
> >
> > Thanks for your help and congratulations for Studio, It's
> an
> > awesome tool.
> >
> > Regards,
> > Olivier Drouin
> >
>
>
>
> --
> Kiran Ayyagari
> http://keydap.com
>
Re: [Studio] migration of a subtree to another domain
Posted by Kiran Ayyagari <ka...@apache.org>.
On Wed, Sep 17, 2014 at 8:34 PM, Olivier Drouin <ol...@gmail.com> wrote:
> Hello guys!
> I'm trying to move an LDAP subtree under another domain with
> Studio. The LDAP server is the OpenLDAP 2.4.39 . Under OpenLDAP I specified
> that the RootDN for each of the 2 domains is cn=Manager,cn=config. That way
> I can connect with Studio as "cn=Manager,cn=config" and have write access
> to the 2 LDAP trees. I can then copy a subtree and paste it under the other
> tree. The OUs, inetOrgPersons and groupOfUniqueNames are correctly renamed
> (by that I mean the object's DNs are correctly translated). The only
> remaining item for my need is that the uniqueMembers of the groups are not
> renamed. Is there any way I can automate the renaming of the group's
> uniqueMembers (or members) under studio?
>
no, this is not possible at the moment using Studio.
(am afraid you have to script it)
>
> Thanks for your help and congratulations for Studio, It's an
> awesome tool.
>
> Regards,
> Olivier Drouin
>
--
Kiran Ayyagari
http://keydap.com