ADSI error when connecting to AD using SSL

  • Thread starter Thread starter jaydeepva
  • Start date Start date
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
 
Back
Top