Skip to content
Snippets Groups Projects
Unverified Commit 285b94ed authored by Daniel's avatar Daniel
Browse files

FIX: Rewrote Pam.java to work with new pam_authentication.c.

For issue #11
parent f767c2bb
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,9 @@
*
* Copyright (C) 2018 Research Group Biomedical Physics,
* Max-Planck-Institute for Dynamics and Self-Organization Göttingen
* Copyright (C) 2019 IndiScale GmbH
* Copyright (C) 2019 Timm Fitschen (t.fitschen@indiscale.com)
* Copyright (C) 2019, 2020 Indiscale GmbH <info@indiscale.com>
* Copyright (C) 2019 Timm Fitschen <t.fitschen@indiscale.com>
* Copyright (C) 2020 Daniel Hornung <d.hornung@indiscale.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
......@@ -70,9 +71,11 @@ public class Pam implements UserSource {
final File script = new File(this.pam_script);
final ProcessBuilder pb = new ProcessBuilder(script.getAbsolutePath(), username, password);
final ProcessBuilder pb = new ProcessBuilder(script.getAbsolutePath(), username);
pb.directory(script.getParentFile());
return pb.start();
final Process p = pb.start();
p.getOutputStream().write(password.getBytes());
return p;
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment