Re-enable server-wide passwd file for the authenticate() function.
This commit is contained in:
parent
1b29302939
commit
a097a07937
1 changed files with 5 additions and 4 deletions
|
@ -162,6 +162,7 @@ public final class Application
|
||||||
// system-wide properties, default to null
|
// system-wide properties, default to null
|
||||||
Properties sysProps, sysDbProps;
|
Properties sysProps, sysDbProps;
|
||||||
sysProps = sysDbProps = null;
|
sysProps = sysDbProps = null;
|
||||||
|
home = null;
|
||||||
|
|
||||||
if (server != null) {
|
if (server != null) {
|
||||||
home = server.getHopHome ();
|
home = server.getHopHome ();
|
||||||
|
@ -197,10 +198,10 @@ public final class Application
|
||||||
dbProps = new SystemProperties (dbpropfile.getAbsolutePath (), sysDbProps);
|
dbProps = new SystemProperties (dbpropfile.getAbsolutePath (), sysDbProps);
|
||||||
|
|
||||||
// the passwd file, to be used with the authenticate() function
|
// the passwd file, to be used with the authenticate() function
|
||||||
// File pwf = new File (home, "passwd");
|
CryptFile parentpwfile = null;
|
||||||
// CryptFile parentpwfile = new CryptFile (pwf, null);
|
if (home != null)
|
||||||
File pwf = new File (appDir, "passwd");
|
parentpwfile = new CryptFile (new File (home, "passwd"), null);
|
||||||
CryptFile pwfile = new CryptFile (pwf, null);
|
CryptFile pwfile = new CryptFile (new File (appDir, "passwd"), parentpwfile);
|
||||||
|
|
||||||
// the properties that map java class names to prototype names
|
// the properties that map java class names to prototype names
|
||||||
File classMappingFile = new File (appDir, "class.properties");
|
File classMappingFile = new File (appDir, "class.properties");
|
||||||
|
|
Loading…
Add table
Reference in a new issue