[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-win32-admin
Subject: Win32::AdminMisc::LogonAsUser, IIS 4.0
From: "Vieregg, Dirk" <PerlWeb () demogr ! mpg ! de>
Date: 2000-09-28 12:30:04
[Download RAW message or body]
I did a few more tests. When mapping the scripts to perl.exe %s %s, it
works fine and the impersonation is successfull. When mapping to
perlis.dll, it does not work. Any ideas?
TIA
Dirk Vieregg
"Vieregg, Dirk" wrote:
>
> This problem is driving me nuts for days now. Here is the script.
>
> use CGI qw(:standard);
> use Win32::AdminMisc;
>
> my $Domain = "domain";
> my $User = "user";
> my $Password = "password";
>
> print header();
> print start_html(-title=>'impersonation', -bgcolor=>'#FFFF00');
>
> Win32::AdminMisc::LogonAsUser($Domain,$User,$Password);
> $Name = Win32::AdminMisc::GetLogonName();
>
> print ("User= $User<br>");
> print ("Name= $Name<br>");
> print end_html();
>
> The anonymous account for the IIS is a domain user with the needed
> privileges (se_tcb, se_change_notify, se_assign_primary_token). The
> script works on IIS 3.0 but not on IIS 4.0. It is all the same on both
> web servers: anonymous user account, perl, installed modules. It seems
> to be so simple but just doesnt work :-(((
>
> I am looking forward to your help.
>
> Dirk Vieregg
_______________________________________________
Perl-Win32-Admin mailing list
Perl-Win32-Admin@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic