3 # $Id: logout.cgi,v 1.2 1999/09/26 01:20:39 tausq Exp $
4 # (c) 1999 Randolph Chung. Licensed under the GPL. <tausq@debian.org>
11 use Net::LDAP qw(:all);
13 my %config = &Util::ReadConfigFile;
14 my $proto = ($ENV{HTTPS} ? "https" : "http");
17 my $id = $query->param('id');
18 my $authtoken = $query->param('authtoken');
19 &Util::ClearAuthToken($authtoken);
20 my $doneurl = $query->param('done') || "$config{websearchurl}";
22 &Util::ClearAuthToken($authtoken);
24 print "Location: $proto://$ENV{SERVER_NAME}/$doneurl\n\n";