diff options
Diffstat (limited to 'go/parabola_hackers/nslcd_backend/db_passwd.go')
-rw-r--r-- | go/parabola_hackers/nslcd_backend/db_passwd.go | 8 |
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 } }() |