jamf / JamfMigrator

A tool to migrate data granularly between Jamf Pro servers
MIT License
140 stars 10 forks source link

LDAP Groups need importing twice #44

Closed macmule closed 4 years ago

macmule commented 4 years ago

Hi folks.

Thanks for fixing #42, but it seems that the initial "jamf groups" import is local.. you then have to import once more for them to become LDAP groups

BIG-RAT commented 4 years ago

Thanks for the note - haven't been able to replicate the issue. Wonder if I could see the raw/trimmed xml from a group or two. Something like: raw:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<group>
    <id>11</id>
    <name>macAdmins</name>
    <access_level>Full Access</access_level>
    <privilege_set>Custom</privilege_set>
    <ldap_server>
        <id>4</id>
        <name>company.private</name>
    </ldap_server>
    <site>
        <id>-1</id>
        <name>None</name>
    </site>
    <privileges>
        <jss_objects></jss_objects>
        <jss_settings></jss_settings>
        <jss_actions></jss_actions>
        <recon></recon>
        <casper_admin></casper_admin>
        <casper_remote></casper_remote>
        <casper_imaging></casper_imaging>
    </privileges>
    <members></members>
</group>

trimmed:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<group>
    <name>macAdmins</name>
    <access_level>Full Access</access_level>
    <privilege_set>Custom</privilege_set>
    <ldap_server>
        <id>3</id>
    </ldap_server>
    <site>
        <name>None</name>
    </site>
    <privileges>
        <jss_objects></jss_objects>
        <jss_settings></jss_settings>
        <jss_actions></jss_actions>
        <recon></recon>
        <casper_admin></casper_admin>
        <casper_remote></casper_remote>
        <casper_imaging></casper_imaging>
    </privileges>
    <members></members>
</group>
macmule commented 4 years ago

We just moved LDAP on over 100 JPS, but didn't grab the XML.

I'll see if i can recreate.

On Sun, 12 Jan 2020 at 00:26, Leslie Helou notifications@github.com wrote:

Thanks for the note - haven't been able to replicate the issue. Wonder if I could see the raw/trimmed xml from a group or two. Something like: raw:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

11 macAdmins Full Access Custom 4 company.private -1 None

trimmed:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

macAdmins Full Access Custom 3 None

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jamf/JamfMigrator/issues/44?email_source=notifications&email_token=AASZZTVQVCYRRN64PMDVW6DQ5JPUHA5CNFSM4KFSYLPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIWOJGY#issuecomment-573367451, or unsubscribe https://github.com/notifications/unsubscribe-auth/AASZZTWLZHEXXFEIGSSIW7DQ5JPUHANCNFSM4KFSYLPA .

--

Regards,

Ben

macmule commented 4 years ago

Seems sorted now, thanks!