Hi,
I've 2 Systems (D1S, D2S) in 2 different domains.
1) D1: Normal Domain where all the systems (Win2k) of our office installed. D1 network is not with active directory setup.
2) D2: Test Domain where there is one computer with Win2k server with ADS installed. We can create sample users and test the authentication using ADS.
I'm facing a problem regarding this Authentication. Here below the explanation on the same.
1) I'm using code from "http://www.eggheadcafe.com/articles/20010126.asp" page to authentication.
2) I've created virtual directories ('adsitest' in both the systems) and prepared the asp pages in both the systems using the two methods given.
e.g., URLs to test
http://D1S//adsitest/authenticate1.asp
http://D1S//adsitest/authenticate2.asp
http://D2S//adsitest/authenticate1.asp
http://D2S//adsitest/authenticate2.asp
3) I'm executing D1S URLs in any system in D1 and testing the authentication of D1 users. Both ways worked fine.
4) I'm executing D1S URLs in the system in D2 and testing the authentication of D1 users. Both ways worked fine.
3) I'm executing D2S URLs in any system in D1 and testing the authentication of D2 users. NOT WORKING. (BAD PASSWORD, FAILED TO BIND THE OBJECT are the errors I'm receiving.)
Failed to bind to object WinNT://TEST2K3
Error number is -2147024829
Also, the D2S is the single system of D2, and is domain controller hence.
4) I'm executing D2S URLs in the system in D2 and testing the authentication of D2 users. NOT WORKING. (BAD PASSWORD, FAILED TO BIND THE OBJECT are the errors I'm receiving.)
5) Upon debugging, I see the methods :
objUser.ChangePassword oPassword, oPassword AND
Set oADsObject = oADsNamespace.OpenDSObject(strADsPath, strUserName, strPassword, 0)
are being failed always when it comes to authenticate the users on test active DS machine in D2. I'm giving all correct passwords and user names.
CAN ANYBODY PLEASE SUGGEST WHERE I'm MISSING OR WHAT I'M MISSING? ANY SPECIAL SETTINGs TO BE DONE (At AD level or IIS level)?
ANY OTHER WAYS TO AUTHENTICATE THE USERS?
REGARDS
SRINIVAS