General discussion


Sync AD user data with user Table in SQL

By praveen.arekal ·

I have a user repository in Active Directory and a user table in SQL Server and both are in sync . But, whenever any change occurs to the user object or a new user added to AD I need to sync that change with Sql server table. how can I map the user in AD to the user existing in a table in SQL server. Does AD associates an ID for the user so that I can map that to my unique ID in user table in SQL server?

i am trying to do a programme which reads this mapping information and sync the data from AD to SQL server. which is the best way to do this?

Please help me in resolving this issue.

thanks in advance

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by p.j.hutchison In reply to Sync AD user data with us ...

Each user id in AD is unique and identified by the CN attribute. You could write a Visual Basic program to read all users in AD extract the information (using ActiveDS Type Library - ADSI)
to read info from AD using LDAP and connect to the SQL server using ADO (ActiveX Data Objects)
and update the existing tables using updates.

Related Discussions

Related Forums