Synchronization of Windows Server 2008 Active Directory Users from a Sql Server table

5 pts.
Tags:
Active Directory
Active Directory Users
SQL Server
Windows Server 2008
I have a table in a sql server database than contains the data of all the users of my network. How can I create a procedure that will add-remove-modify users to the windows server 2008 using the data entered in that table?



Software/Hardware used:
Windows Server 2008 , MS sql server
ASKED: January 20, 2010  12:31 PM
UPDATED: March 2, 2010  8:13 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

Your answer is in <a href=”http://technet.microsoft.com/en-us/library/cc720671%28WS.10%29.aspx”>this</a> MS tech article.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Juano
    Well, there is more than one way of skinning this cat. The potential approach will be based on your budget, your environment. Let me elaborate. If you have a large environment 30-40,000+ users, you will better server with a synchronization tool like ILM/FIM (newer name for MIIS) for your solution. These solutions are very powerful, can be complex and are relatively expensive. These tools engage with the Active Directory DirSync Control (API that allow the agent to communicate with a domain controller like if it is another domain controller) facilitating synchronization of attribute level changes as they occurs the environment. Another way is using LDIF to update active directory, however since your application is not interfacing with DirSync Control, your process would have to consume the complete object coming from AD. You could develop a process that call LDIFDE and extract all users and object including the subset of attributes you need to synchronize and import them to SQL. Then when changes in SQL are needed to be sent to AD you could develop a procedure to export your changes in an LDIF format ready for consumption by AD. Then call LDIFDE.exe to import the new objects, delete or process changes to AD. You will be able to generate deltas from SQL to AD, but would have to consume a full export from AD to be imported to SQL. As an experienced ILM consultant, I like to point out that although the process is crude, it works, is easily supportable and I have done it before. Although I was not provisioning objects to AD the process is the same. I was updating once a day all the user personal information that was being updated from a web application into an SQL DB. I was running a process updating 80,000 users daily and it took about 2.5 hours to complete. I hope this helps.
    135 pointsBadges:
    report
  • Chippy088
    Could you not just update the sql db from AD daily, or when necessary. Seems like a lot of effort to keep a copy of the user list up-to-date.
    4,625 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following