From 1181c93710b1c917a2a613a4d14b2129e0f8994d Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 25 Jul 1997 19:50:25 +0000 Subject: [PATCH] * kadm_funcs.c: Remove mention of dbm for now. It should probably be added back later to deal with dbm-hashed passwd files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10136 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v4server/ChangeLog | 5 +++++ src/kadmin/v4server/kadm_funcs.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/kadmin/v4server/ChangeLog b/src/kadmin/v4server/ChangeLog index 22afa032d..1d512ba42 100644 --- a/src/kadmin/v4server/ChangeLog +++ b/src/kadmin/v4server/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 25 15:49:58 1997 Tom Yu + + * kadm_funcs.c: Remove mention of dbm for now. It should probably + be added back later to deal with dbm-hashed passwd files. + Tue Jul 1 02:38:50 1997 Tom Yu * kadm_funcs.c, kadm_server.c, kadm_ser_wrap.c: Reenable mod and diff --git a/src/kadmin/v4server/kadm_funcs.c b/src/kadmin/v4server/kadm_funcs.c index fd619e2cb..87eb227ee 100644 --- a/src/kadmin/v4server/kadm_funcs.c +++ b/src/kadmin/v4server/kadm_funcs.c @@ -745,9 +745,11 @@ char *rrealm; des_cblock newpw; char *pwstring; { - static DBM *pwfile = NULL; int retval; +#ifdef notdef + static DBM *pwfile = NULL; datum passwd, entry; +#endif struct passwd *ent; #ifdef HESIOD extern struct passwd *hes_getpwnam(); @@ -760,6 +762,7 @@ char *pwstring; return(KADM_PW_MISMATCH); if (pwstring && (strlen(pwstring) < 5)) return(KADM_INSECURE_PW); +#ifdef notdef if (!pwfile) { pwfile = dbm_open(PW_CHECK_FILE, O_RDONLY, 0644); } @@ -770,6 +773,7 @@ char *pwstring; if (entry.dptr) return(KADM_INSECURE_PW); } +#endif if (check_pw(newpw, rname) || check_pw(newpw, reverse(rname))) return(KADM_INSECURE_PW); #ifdef HESIOD -- 2.26.2