[sork] passwd bug (CVS HEAD)

Eric Rostetter eric.rostetter@physics.utexas.edu
Fri Nov 22 21:32:16 2002


There is a buglet in passwd CVS HEAD.  The file passwd/config/backends.php.dist
states:

 * preferred: This is only useful if you want to use the same backend.php
 *            file for different machines: if the Hostname of the Passwd
 *            Machine is identical to one of those in the preferred list,
 *            then the corresponding option in the select box will include
 *            SELECTED, i.e. it is selected per default. Otherwise the
 *            first entry in the list is selected.

However, this is not true (or totally true).  If you don't set any backend
as prefered, then the $backend_key never gets set.  I think the error
may be:

RCS file: /repository/passwd/main.php,v
retrieving revision 1.30
diff -r1.30 main.php
179c179
<     if (Passwd::isPreferredBackend($curBackend)) {
---
>     if (Passwd::isPreferredBackend($key)) {

Can someone more familiar with the new passwd code (Mike) verify if this
is the correct fix or not (and if not, apply the correct fix).

-- 
Eric Rostetter
The Department of Physics
The University of Texas at Austin

Why get even? Get odd!


More information about the sork mailing list