Sunday 15 July 2012

python - Insert users into Active Directory -


I am trying to determine how best to put the user in Active Directory from Active Directory.

I thought I could use one by breaking LDAP, but the iv that was made would otherwise suggest and I could only drag the SQL server from Active Directory.

Then I thought I could use a python Bulk the program again to impose the program and a CSV file to query the table, but I'm not sure if this data If it changes, it will modify existing users.

Any insights will be appreciated

This is a general idea of ​​algorithms:

  • Load user data from SQL Server
  • Convert it to a (LDAP data interchange format) file
  • Using the command line tool Import an LDIF file into Active Directory

    Python, or any other programming language, can help you with step 2. Notice that the details of the conversion are very specific, how your data is represented, you have to map each data base field carefully in an LDAP feature, and determine the classes used in the LDAP object.

    Will the above existing users be modified? Yes at all You can write LDIF in such a way that it updates the existing data, or if it is a problem that a user previously exists in the Active Directory and does not add those changes to the LDIF file.

    Alternatively

    You can use to import data into CSV format, but by the way, you can create a mapping strategy for each field. Active Directory which you want to import

  • No comments:

    Post a Comment