Adding a listener to Active directory for user creation using Java

Hi,

I would like to add a listener to active directory such that when a user is created to the "Users" container, I should be notified or informed. I would like to do this with Java. I found that there is a API for naming and directory operations called JNDI. What should I do ?

Regards,

Anand Kumar D

This posting is provided "AS IS" with no warranties, and confers no rights.

July 3rd, 2013 3:42am

Hello,

programming questions please ask in http://social.msdn.microsoft.com/Forums/en-US/home and as this is about NON Microsoft software use the JAVA forums also.

The easiest option is to enable auditing and for the specific event id about user creation to send an email to you from the event viewer. http://technet.microsoft.com/en-us/library/cc731607(v=ws.10).aspx is about Auditing and here http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx the event trigger for email is described.

Event ids you will find in http://www.ultimatewindowssecurity.com/securitylog/encyclopedia/default.aspx User created 624 and 4720

Free Windows Admin Tool Kit Click here and download it now
July 3rd, 2013 4:18am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics