Revision: 1079
http://mrbs.svn.sourceforge.net/mrbs/?rev=1079&view=rev
Author: jberanek
Date: 2009-03-31 20:25:12 +0000 (Tue, 31 Mar 2009)
Log Message:
-----------
* Fix for NIS authentication on systems that use crypt methods other
than DES.
Modified Paths:
--------------
mrbs/trunk/web/auth_nis.inc
Modified: mrbs/trunk/web/auth_nis.inc
===================================================================
--- mrbs/trunk/web/auth_nis.inc 2009-03-31 11:38:41 UTC (rev 1078)
+++ mrbs/trunk/web/auth_nis.inc 2009-03-31 20:25:12 UTC (rev 1079)
@@ -53,7 +53,7 @@
if ( ! empty ( $rs ) )
{
$rs = explode ( ":", $rs );
- if ( $rs[1] == crypt ( $pass, substr ( $rs[1], 0, 2 ) ) )
+ if ( $rs[1] == crypt ( $pass, $rs[1] ) )
{
return 1;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits