Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
2d15e559
Commit
2d15e559
authored
Oct 24, 2000
by
cyeh%bluemartini.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove problem with newer perl spewing error messages into the CGI
parent
b8cf810f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
CGI.pl
CGI.pl
+17
-11
No files found.
CGI.pl
View file @
2d15e559
...
...
@@ -28,9 +28,13 @@ use strict;
# use Carp; # for confess
# Shut up misguided -w warnings about "used only once". For some reason,
# "use vars" chokes on me when I try it here.
# commented out the following snippet of code. this tosses errors into the
# CGI if you are perl 5.6, and doesn't if you have perl 5.003.
# We want to check for the existence of the LDAP modules here.
eval
"use Mozilla::LDAP::Conn"
;
my
$have_ldap
=
$@
?
0
:
1
;
# eval "use Mozilla::LDAP::Conn";
# my $have_ldap = $@ ? 0 : 1;
sub
CGI_pl_sillyness
{
my
$zz
;
...
...
@@ -674,17 +678,19 @@ sub confirm_login {
defined
$::FORM
{
"LDAP_password"
})
{
# If we're using LDAP for login, we've got an entirely different
# set of things to check.
# see comment at top of file near eval
# First, if we don't have the LDAP modules available to us, we can't
# do this.
if
(
!
$have_ldap
)
{
print
"Content-type: text/html\n\n"
;
PutHeader
(
"LDAP not enabled"
);
print
"The necessary modules for LDAP login are not installed on "
;
print
"this machine. Please send mail to "
.
Param
(
"maintainer"
);
print
" and notify him of this problem.\n"
;
PutFooter
();
exit
;
}
#
if(!$have_ldap) {
#
print "Content-type: text/html\n\n";
#
PutHeader("LDAP not enabled");
#
print "The necessary modules for LDAP login are not installed on ";
#
print "this machine. Please send mail to ".Param("maintainer");
#
print " and notify him of this problem.\n";
#
PutFooter();
#
exit;
#
}
# Next, we need to bind anonymously to the LDAP server. This is
# because we need to get the Distinguished Name of the user trying
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment