summaryrefslogtreecommitdiff
path: root/go/parabola_hackers/nslcd_backend/db_passwd.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-06-18 06:19:16 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-06-18 06:19:16 -0400
commit95c195baf42e8a74680a74acdc20c00bab7660eb (patch)
tree996e3d8ab8832b35f0195c7c026d646ce97cdecd /go/parabola_hackers/nslcd_backend/db_passwd.go
parentfd98ee554c3c785ee83460e83027d56891fbd9b2 (diff)
go back to using plain stringsv20160518.1
Diffstat (limited to 'go/parabola_hackers/nslcd_backend/db_passwd.go')
-rw-r--r--go/parabola_hackers/nslcd_backend/db_passwd.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/go/parabola_hackers/nslcd_backend/db_passwd.go b/go/parabola_hackers/nslcd_backend/db_passwd.go
index 7bac808..3f32ddd 100644
--- a/go/parabola_hackers/nslcd_backend/db_passwd.go
+++ b/go/parabola_hackers/nslcd_backend/db_passwd.go
@@ -36,12 +36,12 @@ func (o *Hackers) Passwd_ByName(cred s.Ucred, req p.Request_Passwd_ByName) <-cha
defer o.lock.RUnlock()
defer close(ret)
- uid := o.name2uid(string(req.Name))
+ uid := o.name2uid(req.Name)
if uid < 0 {
return
}
passwd := o.users[uid].Passwd
- passwd.PwHash = p.String("x") // only put actual hashes in the Shadow DB
+ passwd.PwHash = "x" // only put actual hashes in the Shadow DB
ret <- passwd
}()
return ret
@@ -59,7 +59,7 @@ func (o *Hackers) Passwd_ByUID(cred s.Ucred, req p.Request_Passwd_ByUID) <-chan
return
}
passwd := user.Passwd
- passwd.PwHash = p.String("x") // only put actual hashes in the Shadow DB
+ passwd.PwHash = "x" // only put actual hashes in the Shadow DB
ret <- passwd
}()
return ret
@@ -74,7 +74,7 @@ func (o *Hackers) Passwd_All(cred s.Ucred, req p.Request_Passwd_All) <-chan p.Pa
for _, user := range o.users {
passwd := user.Passwd
- passwd.PwHash = p.String("x") // only put actual hashes in the Shadow DB
+ passwd.PwHash = "x" // only put actual hashes in the Shadow DB
ret <- passwd
}
}()