From 391664703db43356450e6e471e30f4053a2e62a2 Mon Sep 17 00:00:00 2001 From: "cyeh%bluemartini.com" <> Date: Sat, 16 Sep 2000 01:35:16 +0000 Subject: 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. --- editusers.cgi | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'editusers.cgi') diff --git a/editusers.cgi b/editusers.cgi index 73ee8f131..3af80a86a 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -20,6 +20,7 @@ # # Contributor(s): Holger Schurig # Dave Miller +# Joe Robins # # Direct any questions on this source code to # @@ -109,8 +110,11 @@ sub EmitFormElements ($$$$$$$) if ($editall) { print "\n"; print " Password:\n"; - print " \n"; - + if(Param('useLDAP')) { + print " This site is using LDAP for authentication!\n"; + } else { + print " \n"; + } print "\n"; print " Email notification:\n"; print qq{\n"; - if ($editall) { + if ($editall && !Param('useLDAP')) { print "\n"; } print "\n"; @@ -764,13 +782,14 @@ if ($action eq 'update') { WHERE login_name=" . SqlQuote($userold)); print "Updated email notification.
\n"; } - - if ($editall && $password ne $passwordold) { + if(!Param('useLDAP')) { + if ($editall && $password ne $passwordold) { my $q = SqlQuote($password); SendSQL("UPDATE profiles SET password= $q, cryptpassword = ENCRYPT($q) WHERE login_name=" . SqlQuote($userold)); print "Updated password.
\n"; + } } if ($editall && $realname ne $realnameold) { SendSQL("UPDATE profiles -- cgit v1.2.3-24-g4f1b