rbaldwin has asked for the wisdom of the Perl Monks concerning the following question:

Does anyone know where AuthenticateUser get the domain from if one isn't passed? In the following provided the uid and pw are correct the user gets authenticated without a domain or with the correct domain.
#!/Perl/bin/perl.exe use Win32::AuthenticateUser; $result = AuthenticateUser('', 'jdoe', '12345'); print "error is $^E\n"; print $result;
Thanks a bunch folks. Rod.

Replies are listed 'Best First'.
Re: Win32::AuthenticateUser
by the_slycer (Chaplain) on Nov 25, 2000 at 08:15 UTC
    You may also want to ask on activestates Perl for win32 administrators mailing list. This has been an invaluable resource when coding for the MS os's..
Re: Win32::AuthenticateUser
by Fastolfe (Vicar) on Nov 25, 2000 at 06:09 UTC
    Unless someone else can answer authoritatively (I'm not downloading ActiveState just to view the source of this module, and it's not available on CPAN), I would suspect that this function would assume the domain of the user running the script, or the domain of the currently logged-in user. The documentation on ActiveState's web site makes no mention that this might be an optional argument. If you have the means, see if you can determine the behavior by examining the source.