[dev] Patch for framework: Auth/sql.php

Amith Varghese amith at xalan.com
Fri Jan 30 07:13:26 PST 2004


It doesn't matter so much for SQL, but LDAP expects the encryption type to be
prepended.  I think we should try to keep the drivers consistent as possible
with one another (for maintenance sake), so we should probably change it so
that encryption type is prepended instead of checking for the encryption type
at the end.

Amith

Quoting Richard.Heggs at nottinghamcity.gov.uk:

> Hi List,
>
> I noticed that if 'showencryption' is set, the encryption type is appended
> to the password field.  However Auth/sql.php::_comparePasswords() thinks
> that it is prepended instead.
>
> This little patch converts (eg) '|^{crypt}|' to '|{crypt}$|'
>
> Tested on crypt.
>
> Richard
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
> ######################################################################
> This e-mail (and any attachments) is confidential and may contain personal
> views which are not the views of Nottingham City Council unless specifically
> stated. If you have received it in error, please delete it from your system,
> do not use, copy or disclose the information in any way nor act in reliance
> on it and notify the sender immediately. Please note that Nottingham City
> Council monitors e-mails sent or received. Further communication will
> signify your consent to this.
> ######################################################################



More information about the dev mailing list