Network_Padawan
asked on
Linux ftp server authentication error
Hi All,
We had an ftp server that...via a perl script, connected to another ftp server and copied files across.
All of a sudden the script stopped working.
We I do a normal ftp to the server...I get the following error
500 'AUTH GSSAPI': command not understood.
500 'AUTH KERBEROS_V4': command not understood.
KERBEROS_V4 rejected as an authentication type
Name ({ip address}:ipnd):
Ive restarted vsftpd daemon and looked at other things but I can not source what has changed.
Any ideas?
We had an ftp server that...via a perl script, connected to another ftp server and copied files across.
All of a sudden the script stopped working.
We I do a normal ftp to the server...I get the following error
500 'AUTH GSSAPI': command not understood.
500 'AUTH KERBEROS_V4': command not understood.
KERBEROS_V4 rejected as an authentication type
Name ({ip address}:ipnd):
Ive restarted vsftpd daemon and looked at other things but I can not source what has changed.
Any ideas?
ASKER
Hi,
Heres the code. As mentioned this code was working flawlessly until the server crashed. Rebooted and restart vsftp services and then thats when the script and ftp began producing errors.
Heres the code. As mentioned this code was working flawlessly until the server crashed. Rebooted and restart vsftp services and then thats when the script and ftp began producing errors.
#!/usr/bin/perl
use Net::FTP;
my $hostname = "x.x.x.x";
my $destdir = "upload";
my $errdir = "download";
my $user = "username";
my $password = "password";
chdir($destdir);
my @files=<IPNDUPGLOGO.*>;
my $ftp = Net::FTP->new($hostname, Debug => 0) or die "Cannot connect to $hostname: $@";
$ftp->login($user,$pass) or die "Cannot login", $ftp->message;
# chdir($destdir) or die "Can't chdir to $destdir $!";
$ftp->cwd("upload") or die "Can't chdir to $destdir $!";
foreach (@files) {
$ftp->put($_) or warn "put failed ",$ftp->message;
}
$ftp->quit;
system("mv * /home/ipnd/processed");
Do you know if the vsftp server had been setup to support Kerberos?
The messages are saying that the ftp client is attempting to use Kerberos as an authentication method and the ftp server is saying that it does not support it.
So either the ftp server had been configured to support this and nolonger does or the ftp client has had something change to where it is trying to use Kerberos and the server never support it.
The messages are saying that the ftp client is attempting to use Kerberos as an authentication method and the ftp server is saying that it does not support it.
So either the ftp server had been configured to support this and nolonger does or the ftp client has had something change to where it is trying to use Kerberos and the server never support it.
ASKER
hi giltjr,
yes it always used kerberos
what other authentication methods are there? Ill test them out.
yes it always used kerberos
what other authentication methods are there? Ill test them out.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, so how do i reinstall kerberos or fix it?
First I would double check the configuration file on the server and make sure it still has the parameters needed, then make sure all of the packages needed are installed.
ASKER
ok it works when I type ftp -u server
How do I script this "-u" in the perl script I had posted above?
How do I script this "-u" in the perl script I had posted above?
ASKER
I guess I just need to disable auto-authentication in the configuration. Do you know how to do this?
ASKER
Hi, solved it.
Its got nothing to do with kerberos. It has to do with the script itself. Since its my failure Ill assign you points regardess.
Its got nothing to do with kerberos. It has to do with the script itself. Since its my failure Ill assign you points regardess.
What OS are you running the script from?
What ftp client are you using?
What ftp client are you using?
I made my last post before I realized that you had updated and closed it.
Thanks for the points, however I am a bit confused. If the only thing that occurred was the server was re-booted, then I'm not sure how the issue was on the client.
Unless the server had been updated but never restarted and the update changed something that require a change on the client.
Thanks for the points, however I am a bit confused. If the only thing that occurred was the server was re-booted, then I'm not sure how the issue was on the client.
Unless the server had been updated but never restarted and the update changed something that require a change on the client.
Can you the perl script, or at least the part that connects to the server? (remove passwords and other sensitive info)