laziness, impatience, and hubris | |
PerlMonks |
Problems with Win32::OLE and ADSIby rob_au (Abbot) |
on Sep 09, 2002 at 03:13 UTC ( [id://196143]=perlquestion: print w/replies, xml ) | Need Help?? |
rob_au has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks, I am experiencing some problems with a script which employs Win32::OLE to bridge the gap to Windows ADSI in a similar fashion to that described in this article on perl.com. The problem which I am running into, I am sure is permission related within the IIS (5.0) environment, however am having problems confirming this. My shortest test-case code is as follows ...
The objective of this code is to take username and password details supplied and authenticate them against the Windows 2000 Active Directory. When run from the command line, this code executes without errors or warnings, yet when executed from within the IIS environment, the authentication lookup fails, despite accurate username and password details having been supplied. Digging deeper into this problem, I have found that the OpenDSObject call is returning a HRESULT error code of 0x8007202 - I have not however been able to determine the cause of this error message as per the instructions on the MSDN site here. This failure of execution within the IIS environment, but success from the command line very much suggests to my mind that this is a permission problem of sorts, however I am at a loss as to where to look next to resolve this problem.
Back to
Seekers of Perl Wisdom
|
|