Revert "drop overrids - LDAP has it on its own"
[mirror/userdir-ldap-cgi.git] / logout.cgi
1 #!/usr/bin/perl
2
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
6 use lib '.';
7 use strict vars;
8 #use Apache::Registry;
9 use CGI;
10 use Util;
11 use Net::LDAP qw(LDAP_SUCCESS LDAP_PROTOCOL_ERROR);
12
13 my %config = &Util::ReadConfigFile;
14 my $proto = ($ENV{HTTPS} ? "https" : "http");
15
16 my $query = new CGI;
17 my $id = $query->param('id');
18 my $authtoken = $query->param('authtoken');
19 &Util::ClearAuthToken($authtoken);
20 my $doneurl = $query->param('done') || "$config{websearchurl}";
21
22 &Util::ClearAuthToken($authtoken);
23
24 print "Location: $proto://$ENV{SERVER_NAME}/$doneurl\n\n";