then again i think, i need Authorization and not Authentication, so doesn't i need something totally different (than following)?
i was trying to do that, and its hard. The LWP:Authen::Negotiate is not available for windows. So looking at the source code, it is based on a modul called GSSAPI, which is not available for windows too. So which windows alternative is there for GSSAPI?
I found Authen::SASL-Perl-Ntlm, if i can use that, how would my use of it look like? since i got no username or pasword?
use Authen::SASL qw(Perl);
$sasl = Authen::SASL->new(
mechanism => 'NTLM',
callback => {
# user => $username, # just to leave it empty??
# pass => $password, ??
},
);
$client = $sasl->client_new(...); #what to set here?
$client->client_start;
$client->client_step('');
$client->client_step($challenge);
could that really work?
|