summaryrefslogtreecommitdiff
path: root/src/nshd
diff options
context:
space:
mode:
Diffstat (limited to 'src/nshd')
-rw-r--r--src/nshd/hackers_git/db_group.go1
-rw-r--r--src/nshd/hackers_git/db_pam.go1
-rw-r--r--src/nshd/hackers_git/db_passwd.go4
-rw-r--r--src/nshd/hackers_git/db_shadow.go6
4 files changed, 7 insertions, 5 deletions
diff --git a/src/nshd/hackers_git/db_group.go b/src/nshd/hackers_git/db_group.go
index b72dcfe..8ce6fa3 100644
--- a/src/nshd/hackers_git/db_group.go
+++ b/src/nshd/hackers_git/db_group.go
@@ -1,4 +1,5 @@
package hackers_git
+
/*
import p "nslcd_proto"
diff --git a/src/nshd/hackers_git/db_pam.go b/src/nshd/hackers_git/db_pam.go
index 7c20a56..d4df99a 100644
--- a/src/nshd/hackers_git/db_pam.go
+++ b/src/nshd/hackers_git/db_pam.go
@@ -49,6 +49,7 @@ func (o *Hackers) PAM_Authorization(cred p.Ucred, req p.Request_PAM_Authorizatio
}
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890"
+
var alphabet_len = big.NewInt(int64(len(alphabet)))
func (o *Hackers) PAM_SessionOpen(cred p.Ucred, req p.Request_PAM_SessionOpen) p.PAM_SessionOpen_Enumerator {
diff --git a/src/nshd/hackers_git/db_passwd.go b/src/nshd/hackers_git/db_passwd.go
index e8a6838..7bc3671 100644
--- a/src/nshd/hackers_git/db_passwd.go
+++ b/src/nshd/hackers_git/db_passwd.go
@@ -67,9 +67,9 @@ func (e *allPasswdEnumerator) GenericGetNext() (interface{}, error) {
func (o *Hackers) newAllPasswdEnumerator() *allPasswdEnumerator {
o.lock.RLock()
e := allPasswdEnumerator{
- uids: make([]int32, len(o.users)),
+ uids: make([]int32, len(o.users)),
backend: o,
- done: false,
+ done: false,
}
for uid, _ := range o.users {
e.uids = append(e.uids, uid)
diff --git a/src/nshd/hackers_git/db_shadow.go b/src/nshd/hackers_git/db_shadow.go
index 08384d9..df628cf 100644
--- a/src/nshd/hackers_git/db_shadow.go
+++ b/src/nshd/hackers_git/db_shadow.go
@@ -25,7 +25,7 @@ func (o *Hackers) Shadow_ByName(cred p.Ucred, req p.Request_Shadow_ByName) p.Sha
ExpireDate: -1,
Flag: -1,
}
-
+
return util.New_Shadow_List([]p.Shadow{shadow})
}
@@ -66,9 +66,9 @@ func (e *allShadowEnumerator) GenericGetNext() (interface{}, error) {
func (o *Hackers) newAllShadowEnumerator() *allShadowEnumerator {
o.lock.RLock()
e := allShadowEnumerator{
- uids: make([]int32, len(o.users)),
+ uids: make([]int32, len(o.users)),
backend: o,
- done: false,
+ done: false,
}
for uid, _ := range o.users {
e.uids = append(e.uids, uid)