views:

790

answers:

2

I am trying to add a user to Active Directory through an MPS Web Service. I've been trying a long time to find the correct LDAP-url to use to tell it to add the new user to the Users group. I've tried things like:

LDAP://XXXX.YYY/OU=Users,DC=XXXX,DC=YYY
LDAP://XXXX.YYY/CN=Users,DC=XXXX,DC=YYY
LDAP://XXXX.YYY/DN=Users,DC=XXXX,DC=YYY

It seems the "farthest" I've gotten is an error that says I have given it an invalid Customer.

I really don't have a lot of experience with LDAP (pretty much none at all), so even just a good LDAP and Active Directory tutorial would be extremely useful (even that is eluding me right now). Thanks!

I've since lookup up the actual distinguished name in ADSI Edit, which was LDAP://XXXX.YYY/CN=Users,DC=XXXX,DC=YYY, but still have no luck.

+2  A: 

You can start with:

Rubens Farias
Thanks! Just what I was looking for! That should help a lot :)
Markus O'Reilly
so, mark this as answer =)
Rubens Farias
A: 

More directly, the default Users container (not a group) in a default Active Directory install would be CN=Users,dc=domain,dc=com

You are not clear if you are having trouble adding a user to a group, or if you are having trouble creating a user in a specific location.

geoffc
I'm not able to add a new user to the Users container. When I try to do this through the MPS Active Directory web service, it says that I am giving it an invalid customer.
Markus O'Reilly
How are you specifying the placement DN in AD? I.e CN=Users or OU=Users?
geoffc
I'm using CN=Users
Markus O'Reilly