From 95c195baf42e8a74680a74acdc20c00bab7660eb Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 18 Jun 2016 06:19:16 -0400 Subject: go back to using plain strings --- go/parabola_hackers/nslcd_backend/db_passwd.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'go/parabola_hackers/nslcd_backend/db_passwd.go') 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 } }() -- cgit v1.2.3