summaryrefslogtreecommitdiffstats
path: root/createaccount.cgi
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2000-09-16 03:35:16 +0200
committercyeh%bluemartini.com <>2000-09-16 03:35:16 +0200
commit391664703db43356450e6e471e30f4053a2e62a2 (patch)
treeff6fea075afa01e5d49f464288c36d9b9fdbed13 /createaccount.cgi
parentc89c74e34e758d9eb7050f416e788eb82e71691a (diff)
downloadbugzilla-391664703db43356450e6e471e30f4053a2e62a2.tar.gz
bugzilla-391664703db43356450e6e471e30f4053a2e62a2.tar.xz
fixes for 51184, 51185, 51186: allow for ldap authentication. patches
by jmrobins@tgix.com (Joe Robins). LDAP sections haven't been tested yet, but the code is arranged such that it shouldn't disturb existing user authentication system.
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi9
1 files changed, 9 insertions, 0 deletions
diff --git a/createaccount.cgi b/createaccount.cgi
index 8a905c465..2ff2c0b1f 100755
--- a/createaccount.cgi
+++ b/createaccount.cgi
@@ -20,6 +20,7 @@
#
# Contributor(s): Terry Weissman <terry@mozilla.org>
# David Gardiner <david.gardiner@unisa.edu.au>
+# Joe Robins <jmrobins@tgix.com>
use diagnostics;
use strict;
@@ -42,6 +43,14 @@ Content-type: text/html
";
+# If we're using LDAP for login, then we can't create a new account here.
+if(Param('useLDAP')) {
+ PutHeader("Can't create LDAP accounts");
+ print "This site is using LDAP for authentication. Please contact an LDAP ";
+ print "administrator to get a new account created.\n";
+ PutFooter();
+ exit;
+}
my $login = $::FORM{'login'};
my $realname = $::FORM{'realname'};