summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/hackers.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-08-29 23:20:53 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-08-29 23:20:53 -0600
commit2206136023f3e548c3f02e393a85c6e911b61ef3 (patch)
tree0f6e11c109ac8093be7e5c77faafe2e50c7d2c20 /src/nshd/hackers_git/hackers.go
parent3bca4faef65f9ba97abad49505e10c675894c559 (diff)
roll sleeves up, do actual yaml the hard way
Diffstat (limited to 'src/nshd/hackers_git/hackers.go')
-rw-r--r--src/nshd/hackers_git/hackers.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nshd/hackers_git/hackers.go b/src/nshd/hackers_git/hackers.go
index 230f08b..a155f83 100644
--- a/src/nshd/hackers_git/hackers.go
+++ b/src/nshd/hackers_git/hackers.go
@@ -9,6 +9,13 @@ import (
"sync"
)
+type user struct {
+ passwd nslcd_proto.Passwd
+ pwhash string
+ groups []string
+}
+
+
type Config struct {
Pam_password_prohibit_message string
Yamldir string
@@ -18,7 +25,7 @@ type Hackers struct {
util.NullBackend
cfg Config
lock sync.RWMutex
- users map[int32]nslcd_proto.Passwd
+ users map[int32]user
passwords map[int32]string
in_fd *inotify.Inotify