These scripts were used in a migration from Exchange to Google Apps (Gmail). Flatfiles were exported from Exchange (powershell scripts available near these) and imported to LDAP. A separate sync happens from LDAP to Google.
These scripts were made as a one-off solution and will likely require a lot of hacking to be of use to others.
- For syntax help, please run "python LCI_main.py --help"
- Logs to INFO+ stdout and DEBUG+ LCI.log by default
- Requires python-ldap
- You should be able to enter your LDAP settings to local_LCI_settings.py
- It is recommended to run the migrations in this order:
- aliases.txt, mailcontacts.txt, DGs.csv
Currently three types of flatfiles are supported:
- alias.txt (Aliases)
To import: python LCI_main.py --aliases data/aliases.txt
--8<-- (example input) DisplayName : Aarne Bertta PrimarySmtpAddress : [email protected] EmailAddresses : {[email protected], [email protected]}
--8<--
- mailcontacts.txt (External mails)
To import: python LCI_main.py --mailcontacts data/mailcontacts.txt
--8<-- (example input) DisplayName : Aarne Asiakas PrimarySmtpAddress : [email protected] ExternalEmailAddress : SMTP:[email protected] EmailAddresses : [email protected] --8<--
- DGs.csv (Distribution groups)
To import: python LCI_main.py --distributiongroups data/DGs.csv
--8<-- (example input) "[email protected]","[email protected]","[email protected]","[email protected]","zumba-club","[email protected]" "[email protected]","[email protected]","[email protected]","[email protected]","zumba-club","[email protected]" --8<--
- Run --aliases normally
- Run --mailcontacts normally (new ones will be added, diff for changes in existing mailcontacts)
- (!) Run --removedistributiongroups for the _previous_ DGs.csv
- Run --distributiongroups for the new DGs.csv