Tutorial :How to prevent Duplicate Object creation in ADAM?



Question:

I am testing out using ADAM and the DSML services. I have two ADAM servers, one is a replica of the other and they are Load Balanced. How can you protect duplicate object creation in the ADAM directory?


Solution:1

Before you create anything, query for the name you intend to use as the naming attribute first to see if it is in use already.

I am not sure for ADAM, but for Active Directory, while the full DN of course must be unique, the sAMAccountName must also be unique within the domain.

Or else try, catch the error and return it.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »