[freeside-commits] freeside/FS/FS svc_acct.pm,1.309,1.310
Ivan,,,
ivan at wavetail.420.am
Wed Jun 8 15:58:20 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv17553
Modified Files:
svc_acct.pm
Log Message:
pad LDAP base64-encoded md5 and sha1 passwords to 4 byte boundries with =, RT#13192
Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.309
retrieving revision 1.310
diff -u -w -d -r1.309 -r1.310
--- svc_acct.pm 8 Apr 2011 04:58:58 -0000 1.309
+++ svc_acct.pm 8 Jun 2011 22:58:18 -0000 1.310
@@ -1590,6 +1590,8 @@
$pass = crypt($pass, $saltset[int(rand(64))].$saltset[int(rand(64))]);
}
# else $encryption eq 'plain', do nothing
+ $pass .= '=' x (4 - length($pass) % 4) #properly padded base64
+ if $encryption eq 'md5' || $encryption eq 'sha1';
$pass = '{'.uc($encryption).'}'.$pass;
}
# else encoding eq 'plain'
More information about the freeside-commits
mailing list