*** config.h.in.orig Thu Mar 9 15:59:07 2000 --- config.h.in Sat Mar 11 14:45:40 2000 *************** *** 185,190 **** --- 185,196 ---- */ #undef HOMEDIRMAIL + /* + * Defines DRAC_AUTH + * + */ + #undef DRAC_AUTH + /* The number of bytes in a unsigned long int. */ #undef SIZEOF_UNSIGNED_LONG_INT *** configure.orig Fri Mar 10 22:51:00 2000 --- configure Sat Mar 11 17:36:07 2000 *************** *** 60,65 **** --- 60,67 ---- --enable-uw-kludge Check for and hide UW 'Folder Internal Data' messages " ac_help="$ac_help --enable-group-bulls Group name is second part of bulletin file names " + ac_help="$ac_help + --enable-dracauth enable drac relay authorization " # Initialize some variables set by options. # The variables have the same names as the options, with *************** *** 1565,1570 **** --- 1567,1589 ---- fi + # Check whether --enable-dracauth or --disable-dracauth was given. + if test "${enable_dracauth+set}" = set; then + enableval="$enable_dracauth" + dracauth="$enableval" + else + dracauth="no" + fi + + if test "$dracauth" != "no"; then + cat >> confdefs.h <&6 + NETWORK_LIBS="$NETWORK_LIBS -L/usr/lib/drac -ldrac" + # DEFS="$DEFS -DDRAC_AUTH" + fi + SYS_NAME="`uname -sr 2>/dev/null | sed 1q`" if test -z "\$SYS_NAME"; then SYS_NAME=unknown;fi *** configure.in.orig Fri Mar 10 22:51:04 2000 --- configure.in Sat Mar 11 14:45:40 2000 *************** *** 135,140 **** --- 135,147 ---- fi + AC_ARG_ENABLE(dracauth, [ --enable-dracauth enable DRAC_AUTH ], + dracauth="$enableval", dracauth="no") + if test "$dracauth" != "no"; then + AC_MSG_RESULT(Enabled DRAC_AUTH) + AC_DEFINE(DRAC_AUTH) + fi + dnl dnl ---------- See if ar chokes on '-r' ---------- dnl *** popper/pop_pass.c.orig Thu Mar 9 16:02:14 2000 --- popper/pop_pass.c Sat Mar 11 15:05:14 2000 *************** *** 39,44 **** --- 39,49 ---- # include #endif + #ifdef DRAC_AUTH + #include + #include + #endif /* DRAC_AUTH */ + #include #include "popper.h" *************** *** 1011,1017 **** p->last_msg = 0; p->AuthState = pass; /* plain or kerberos authenticated successfully */ ! /* * Authorization completed successfully */ --- 1016,1030 ---- p->last_msg = 0; p->AuthState = pass; /* plain or kerberos authenticated successfully */ ! ! #ifdef DRAC_AUTH ! { ! char *err; ! if (dracauth("localhost", inet_addr(p->ipaddr), &err) != 0) ! pop_log(p, POP_PRIORITY, HERE, err); ! } ! #endif /* DRAC_AUTH */ ! /* * Authorization completed successfully */