ADSI error when connecting to AD using SSL

J

jaydeepva

Hello,

I have setup certificate server on win 2000 DC machine. I have a client
application which uses ADSI to connect to AD. I wish to have SSL
communication.

I can use 'ldp' to connect to 636 port of AD. But through my client app
when I make a call such as

hr = ADsOpenObject(strDomainAdsPath, DomainUserName, DomainPwd,
ADS_SECURE_AUTHENTICATION + ADS_USE_SSL, IID_IADs, (void**) &pObject)

it gives error '0x8007052e' which means 'Supplied credential is
invalid'.

If I just use ADS_SECURE_AUTHENTICATION flag, I am able to connect to
AD successfully.

Any help is appreciated.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top