[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-win32-admin
Subject:    impersonation, IIS 4.0
From:       "Vieregg, Dirk" <PerlAdmin () demogr ! mpg ! de>
Date:       2000-09-27 15:07:48
[Download RAW message or body]

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