version 1.357, 2007/01/19 02:58:17
|
version 1.360, 2007/01/28 19:23:25
|
Line 3599 sub get_domain_handler {
|
Line 3599 sub get_domain_handler {
|
|
|
return 1; |
return 1; |
} |
} |
®ister_handler("getdom", \&get_id_handler, 0, 1, 0); |
®ister_handler("getdom", \&get_domain_handler, 0, 1, 0); |
|
|
|
|
# |
# |
Line 5466 sub make_new_child {
|
Line 5466 sub make_new_child {
|
# my $tmpsnum=0; # Now global |
# my $tmpsnum=0; # Now global |
#---------------------------------------------------- kerberos 5 initialization |
#---------------------------------------------------- kerberos 5 initialization |
&Authen::Krb5::init_context(); |
&Authen::Krb5::init_context(); |
unless (($dist eq 'fedora5') || ($dist eq 'fedora4') |
unless (($dist eq 'fedora5') || ($dist eq 'fedora4') || |
|| ($dist eq 'suse9.3')) { |
($dist eq 'fedora6') || ($dist eq 'suse9.3')) { |
&Authen::Krb5::init_ets(); |
&Authen::Krb5::init_ets(); |
} |
} |
|
|
Line 5880 sub validate_user {
|
Line 5880 sub validate_user {
|
my $krbservice = "krbtgt/".$contentpwd."\@".$contentpwd; |
my $krbservice = "krbtgt/".$contentpwd."\@".$contentpwd; |
my $krbserver = &Authen::Krb5::parse_name($krbservice); |
my $krbserver = &Authen::Krb5::parse_name($krbservice); |
my $credentials= &Authen::Krb5::cc_default(); |
my $credentials= &Authen::Krb5::cc_default(); |
$credentials->initialize($krbclient); |
$credentials->initialize(&Authen::Krb5::parse_name($user.'@' |
|
.$contentpwd)); |
my $krbreturn = &Authen::Krb5::get_in_tkt_with_password($krbclient, |
my $krbreturn = &Authen::Krb5::get_in_tkt_with_password($krbclient, |
$krbserver, |
$krbserver, |
$password, |
$password, |
Line 5895 sub validate_user {
|
Line 5896 sub validate_user {
|
$password, |
$password, |
$contentpwd, |
$contentpwd, |
$domain); |
$domain); |
if ($validate < 0) { |
if ($validated < 0) { |
&logthis("localauth for $contentpwd $user:$domain returned a $validated"); |
&logthis("localauth for $contentpwd $user:$domain returned a $validated"); |
$validated = 0; |
$validated = 0; |
} |
} |