summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-02 13:33:04 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-02 13:33:04 -0600
commit212105ea42362d49416e9d32261e2e099632c38c (patch)
treec0ba9066a9b44aeb50e0f95440fe4bade09cc3e9 /src
parent26ccaab75a1eae3d71a6497dacc7818f8e62417d (diff)
clean up formatting
Diffstat (limited to 'src')
-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)