summaryrefslogtreecommitdiff
path: root/src/nshd/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/nshd/main.go')
-rw-r--r--src/nshd/main.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/nshd/main.go b/src/nshd/main.go
index d31160f..ac49eaa 100644
--- a/src/nshd/main.go
+++ b/src/nshd/main.go
@@ -3,9 +3,16 @@ package main
import (
"nshd/hackers_git"
"nslcd_systemd"
+ "os"
)
func main() {
- backend := hackers_git.NewHackers("/var/cache/parabola-hackers/users")
- nslcd_systemd.Main(backend)
+ config := hackers_git.Config{
+ Pam_password_prohibit_message: "",
+ Yamldir: "/var/cache/parabola-hackers/users",
+ }
+ backend := hackers_git.NewHackers(config)
+ ret := nslcd_systemd.Main(backend)
+ backend.Close()
+ os.Exit(ret)
}