summaryrefslogtreecommitdiff
path: root/src/nshd/main.go
blob: 05236b8541178e8b29bb7482d39f17aa81a0dc23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package main

import (
	"nshd/hackers_git"
	"nslcd_systemd"
	"os"
	"sd_daemon/lsb"
)

func main() {
	defer lsb.Recover()
	config := hackers_git.Config{
		Pam_password_prohibit_message: "",
		Yamldir: "/var/cache/parabola-hackers/users",
	}
	backend := hackers_git.NewHackers(config)
	if backend == nil {
		os.Exit(int(lsb.EXIT_FAILURE))
	}
	ret := nslcd_systemd.Main(backend)
	backend.Close()
	os.Exit(int(ret))
}