Bugzilla – Attachment 33884 Details for
Bug 9165
Allow preventing passwords from being stored locally when using LDAP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12831 [Followup]: Clear existing sync
Bug-12831-Followup-Clear-existing-sync.patch (text/plain), 1.08 KB, created by
Robin Sheat
on 2014-11-24 22:28:53 UTC
(
hide
)
Description:
Bug 12831 [Followup]: Clear existing sync
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2014-11-24 22:28:53 UTC
Size:
1.08 KB
patch
obsolete
>From 97af27220079abb0915eb57a3f1f45484e616cf6 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 24 Nov 2014 16:27:41 +0000 >Subject: [PATCH] Bug 12831 [Followup]: Clear existing sync > >A small enhancement to clear existing synced passowrd should this >config option be enbled. This followup is related to bug 12831 > >http://bugs.koha-community.org/show_bug.cgi?id=9165 >Signed-off-by: Robin Sheat <robin@catalyst.net.nz> >--- > C4/Auth_with_ldap.pm | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm >index 8d63591..5f0bb19 100644 >--- a/C4/Auth_with_ldap.pm >+++ b/C4/Auth_with_ldap.pm >@@ -304,6 +304,9 @@ sub _do_changepassword { > "Unable to access borrowernumber with userid=$userid, borrowernumber=$borrowerid" > if !$sth->rows; > my ($cardnum) = $sth->fetchrow; >+ my $sth = C4::Context->dbh->prepare( >+ 'UPDATE borrowers SET password = null WHERE borrowernumber=?'); >+ $sth->execute($borrowerid); > return $cardnum; > } > my $digest = hash_password($password); >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 9165
:
13752
|
13753
|
13754
|
18535
|
27380
|
33872
|
33873
|
33884
|
33997
|
33998
|
33999
|
34000