Tech Support > Operating Systems > Windows 2003 > OpenDSObject with ADAM User
OpenDSObject with ADAM User
Posted by Alan on December 1st, 2003


I'm trying to open an object with an Adam user, but can't get a
successful login.

I've built this structure
OU=CMS,DC=Adam,DC=Com
---CN=Public,OU=CMS...
---OU=Users,Ou=CMS...
-----CN=Webmaster,ou=Users...

Webmaster is a User object, and has full rights to CN=Public. He can
bind via LDP (by clearing the domain checkbox on the bind)

In vb I try this:

set oContainer = adsNS.OpenDSObject("LDAP://w2k3:389/cn=public,ou=cms,dc=adam,dc=com","webmaster","cms" ,1)

but the login fails with LDAP_INVALID_CREDENTIALS x8007052e

It works with administrator, but that is a domain user, not an ADAM
user.

Any ideas how to open this container?

Posted by Eric Fleischman [MSFT] on December 1st, 2003


Try changing the 1 to a 3 as the last parameter you passed to opendsobject.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights


"Alan" <airoff@hotmail.com> wrote in message
news:841b943c.0312011356.4c945fba@posting.google.c om...
ter","cms",1)


Posted by Eric Fleischman [MSFT] on December 1st, 2003


Ooops should it really be a 3?
http://msdn.microsoft.com/library/de...ation_enum.asp
Try the 3 value, but I think that is wrong.....Let me do some HW on this.
Sorry for the misdirection, I'm rusty on my ADSI.
If someone else knows off of the top of their head please chime in.

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights


"Eric Fleischman [MSFT]" <efleis@online.microsoft.com> wrote in message
news:eJ53Q8FuDHA.1996@TK2MSFTNGP12.phx.gbl...


Posted by Alan on December 2nd, 2003


Erik - 3 didn't work - gave me a response of 8007203a LDAP_SERVER_DOWN,
which it isn't.

I'm confused about how to reference the ADAM server. Does LDAP//w2k3:389
(w2k3 is name of box) point to Adam instead of the domain users? Do I have
to use the instance name (LDAP://w2k3$CMS) or something like that? These
are ADAM only users, not Domain Users



Posted by Eric Fleischman [MSFT] on December 2nd, 2003


Yea I was having a moment and forgot that 3 is nothing more than 1 plus SSL.
I think I just found the right options, just want to set it up right
now.....

~Eric

--
Eric Fleischman [MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights


"Alan" <alan@northwoodsoft.com> wrote in message
news:%23eZHehRuDHA.1340@TK2MSFTNGP09.phx.gbl...



Similar Posts