Migrate users from Active Directory to FreeIPA
The main goal of this script is to migrate users from Active Directory(AD Microsoft) to FreeIPA
FreeIPA aatributes | AD attributes |
---|---|
title | title |
givenname | givenName |
sn | sn |
cn | cn |
displayName | displayName |
initials | initials |
gecos | name |
telephonenumber | telephonenumber |
street | streetAddress |
l | l |
st | st |
postalCode | postalCode |
ou | department |
employeeNumber | employeeID custom attr |
dn | distinguishedName |
uid | sAMAccountName |
- You have to edit the script, change the below variables
- usernames
the array of users, sAMAccountName
- group
the secutiry group name that you want to add the new users
- LDAPSERVER
- BASEDN
- LDAPUSER
- LDAPPASSWORD
- usernames
- execute the command
$ python ad2ipa.py