version 1.497, 2012/10/05 15:19:18
|
version 1.501, 2013/07/25 19:11:07
|
Line 154 my @adderrors = ("ok",
|
Line 154 my @adderrors = ("ok",
|
my @installerrors = ("ok", |
my @installerrors = ("ok", |
"Initial user id of client not that of www", |
"Initial user id of client not that of www", |
"Usage error, not enough command line arguments", |
"Usage error, not enough command line arguments", |
"Source file name does not exist", |
"Source filename does not exist", |
"Destination file name does not exist", |
"Destination filename does not exist", |
"Some file operation failed", |
"Some file operation failed", |
"Invalid table filename." |
"Invalid table filename." |
); |
); |
Line 4466 sub get_id_handler {
|
Line 4466 sub get_id_handler {
|
} |
} |
®ister_handler("idget", \&get_id_handler, 0, 1, 0); |
®ister_handler("idget", \&get_id_handler, 0, 1, 0); |
|
|
|
# Deletes one or more ids in a domain's id database. |
|
# |
|
# Parameters: |
|
# $cmd - Command keyword (iddel). |
|
# $tail - Command tail. In this case a colon |
|
# separated list containing: |
|
# The domain for which we are deleting the id(s). |
|
# &-separated list of id(s) to delete. |
|
# $client - File open on client socket. |
|
# Returns: |
|
# 1 - Continue processing |
|
# 0 - Exit server. |
|
# |
|
# |
|
|
|
sub del_id_handler { |
|
my ($cmd,$tail,$client) = @_; |
|
|
|
my $userinput = "$cmd:$tail"; |
|
|
|
my ($udom,$what)=split(/:/,$tail); |
|
chomp($what); |
|
my $hashref = &tie_domain_hash($udom, "ids", &GDBM_WRCREAT(), |
|
"D", $what); |
|
if ($hashref) { |
|
my @keys=split(/\&/,$what); |
|
foreach my $key (@keys) { |
|
delete($hashref->{$key}); |
|
} |
|
if (&untie_user_hash($hashref)) { |
|
&Reply($client, "ok\n", $userinput); |
|
} else { |
|
&Failure($client, "error: ".($!+0)." untie(GDBM) Failed ". |
|
"while attempting iddel\n", $userinput); |
|
} |
|
} else { |
|
&Failure( $client, "error: ".($!+0)." tie(GDBM) Failed ". |
|
"while attempting iddel\n", $userinput); |
|
} |
|
return 1; |
|
} |
|
®ister_handler("iddel", \&del_id_handler, 0, 1, 0); |
|
|
# |
# |
# Puts broadcast e-mail sent by Domain Coordinator in nohist_dcmail database |
# Puts broadcast e-mail sent by Domain Coordinator in nohist_dcmail database |
# |
# |
Line 5014 sub validate_instcode_handler {
|
Line 5057 sub validate_instcode_handler {
|
my ($dom,$instcode,$owner) = split(/:/, $tail); |
my ($dom,$instcode,$owner) = split(/:/, $tail); |
$instcode = &unescape($instcode); |
$instcode = &unescape($instcode); |
$owner = &unescape($owner); |
$owner = &unescape($owner); |
my ($outcome,$description) = |
my ($outcome,$description,$credits) = |
&localenroll::validate_instcode($dom,$instcode,$owner); |
&localenroll::validate_instcode($dom,$instcode,$owner); |
my $result = &escape($outcome).'&'.&escape($description); |
my $result = &escape($outcome).'&'.&escape($description).'&'. |
|
&escape($credits); |
&Reply($client, \$result, $userinput); |
&Reply($client, \$result, $userinput); |
|
|
return 1; |
return 1; |
Line 6491 sub make_new_child {
|
Line 6535 sub make_new_child {
|
&Authen::Krb5::init_context(); |
&Authen::Krb5::init_context(); |
unless (($dist eq 'fedora5') || ($dist eq 'fedora4') || |
unless (($dist eq 'fedora5') || ($dist eq 'fedora4') || |
($dist eq 'fedora6') || ($dist eq 'suse9.3') || |
($dist eq 'fedora6') || ($dist eq 'suse9.3') || |
($dist eq 'suse12.2')) { |
($dist eq 'suse12.2') || ($dist eq 'suse12.3')) { |
&Authen::Krb5::init_ets(); |
&Authen::Krb5::init_ets(); |
} |
} |
|
|