From 3465aec7e1529ed865ff8c30bcacb677fe7ba47c Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Sat, 16 Feb 2008 17:59:33 +0000 Subject: new feature: bcpasswd authentication type "unix". user has now also the choice to use the standard unix passwd/shadow authentication --- ax25/axspawn.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ax25/axspawn.c') diff --git a/ax25/axspawn.c b/ax25/axspawn.c index bdf14a9..14f897f 100644 --- a/ax25/axspawn.c +++ b/ax25/axspawn.c @@ -1,6 +1,6 @@ /* * - * $Id: axspawn.c,v 1.13 2007/03/11 13:58:34 dl9sau Exp $ + * $Id: axspawn.c,v 1.14 2008/02/16 17:59:33 dl9sau Exp $ * * axspawn.c - run a program from ax25d. * @@ -1379,7 +1379,7 @@ int main(int argc, char **argv) read_config(); if (!pwtype) - pwtype = (PW_CLEARTEXT | PW_SYS | PW_MD5); + pwtype = (PW_CLEARTEXT | PW_SYS | PW_MD5 | PW_UNIX); pwtype_orig = pwtype; if (!*prompt) { if (gethostname(buf, sizeof(buf)) < 0) { @@ -1560,11 +1560,15 @@ int main(int argc, char **argv) again: if (!(pwd = read_pwd(pw, &pwtype))) { - if (!pwtype || pwtype != PW_CLEARTEXT) { + if ((!pwtype || pwtype != PW_CLEARTEXT) && (pwtype != PW_UNIX)) { sleep (EXITDELAY); return 1; } } + if (pwtype == PW_UNIX) { + pwtype = PW_CLEARTEXT; + pwcheck = 1; + } if (pwtype != PW_CLEARTEXT) { char pass_want[PASSSIZE+1]; -- cgit v1.2.3