diff options
author | Bernd Ahlers <bernd@cvs.openbsd.org> | 2009-06-02 07:40:51 +0000 |
---|---|---|
committer | Bernd Ahlers <bernd@cvs.openbsd.org> | 2009-06-02 07:40:51 +0000 |
commit | 47d0e90106fd53f5ed7d7475690413902775c006 (patch) | |
tree | f8e0fd9bf51be2b10e7125ca382fc1f83fa035e4 /usr.sbin | |
parent | 27ce8947e56addc22190ca0c46ebdc31b0f7c8ff (diff) |
Also match on 'master.passwd.byuid'. Fixes a problem with lookup by uid.
ok pyr@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ypldap/yp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ypldap/yp.c b/usr.sbin/ypldap/yp.c index c882f80625f..75539f4a9da 100644 --- a/usr.sbin/ypldap/yp.c +++ b/usr.sbin/ypldap/yp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: yp.c,v 1.1 2008/06/26 15:10:01 pyr Exp $ */ +/* $OpenBSD: yp.c,v 1.2 2009/06/02 07:40:50 bernd Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> * @@ -347,7 +347,8 @@ ypproc_match_2_svc(ypreq_key *arg, struct svc_req *req) yp_make_val(&res, ue->ue_line); return (&res); - } else if (strcmp(arg->map, "passwd.byuid") == 0) { + } else if (strcmp(arg->map, "passwd.byuid") == 0 || + strcmp(arg->map, "master.passwd.byuid") == 0) { bzero(key, sizeof(key)); (void)strncpy(key, arg->key.keydat_val, arg->key.keydat_len); |