=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/passwd/passwd.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/passwd/passwd.c 1996/01/16 07:22:15 1.2 --- src/usr.bin/passwd/passwd.c 1996/05/03 18:23:34 1.3 *************** *** 39,50 **** #ifndef lint /*static char sccsid[] = "from: @(#)passwd.c 5.5 (Berkeley) 7/6/91";*/ ! static char rcsid[] = "$Id: passwd.c,v 1.2 1996/01/16 07:22:15 deraadt Exp $"; #endif /* not lint */ #include #include #include /* * Note on configuration: --- 39,53 ---- #ifndef lint /*static char sccsid[] = "from: @(#)passwd.c 5.5 (Berkeley) 7/6/91";*/ ! static char rcsid[] = "$Id: passwd.c,v 1.3 1996/05/03 18:23:34 tholo Exp $"; #endif /* not lint */ #include #include #include + #ifdef KERBEROS + #include + #endif /* * Note on configuration: *************** *** 69,77 **** char *username; int status = 0; char *basename; - #if defined(KERBEROS) || defined(KERBEROS5) ! use_kerberos = 1; #endif #ifdef YP use_yp = _yp_check(NULL); --- 72,82 ---- char *username; int status = 0; char *basename; #if defined(KERBEROS) || defined(KERBEROS5) ! extern char realm[]; ! ! if (krb_get_lrealm(realm,1) == KSUCCESS) ! use_kerberos = 1; #endif #ifdef YP use_yp = _yp_check(NULL);