Solved

Automated AD Account Creation from MSSQL Database Records

Posted on 2008-06-16
1
338 Views
Last Modified: 2012-05-05
I am looking to create active directory accounts from data on a MSSQL database.  I have an idea of using a DML AFTER trigger to start the process however i do not know nor can i find how to use that data to interface with AD or indeed if it is possible.

And example of what i want to happen would be:

1.User details are added to MSSQL database using 3rd party product.
2. DML trigger fires to capture the required data.
3. Caputured data is used to create AD account.
4. Confirmation of process sent to user and administrator.

Any suggestions or things to consider would be greatly appreciated.
0
Comment
Question by:ImaCircularSaw
1 Comment
 
LVL 15

Accepted Solution

by:
markpalinux earned 250 total points
ID: 21793695

dsadd user is a command line that can be used to create a user, also MS VBScript can be used to interface with AD. MS Provides lots of examples:

http://www.microsoft.com/technet/scriptcenter/scripts/default.mspx?mfr=true
Script Center Home  >  Script Repository  >  Active Directory  >  User Accounts  >  User Management Tasks
Create a User Account

How can I call a vbscript from an SQL trigger?
http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_23025974.html

I am sure these can help get you started. I know there is vbscript to send email.

Mark
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question