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>
5 # Copyright (c) 2011, 2015 Peter Palfrader
12 use Net::LDAP qw(LDAP_SUCCESS LDAP_PROTOCOL_ERROR);
14 my %config = &Util::ReadConfigFile;
15 my $proto = ($ENV{HTTPS} ? "https" : "http");
18 my $authtoken = $query->param('authtoken');
19 &Util::ClearAuthToken($authtoken);
21 my $doneurl = $config{websearchurl};
22 print "Location: $proto://$ENV{SERVER_NAME}/$doneurl\n\n";