diff -ur ./libds/Makefile.in ../debathena-discuss-10.0.8/libds/Makefile.in
old
|
new
|
|
60 | 60 | mv res_module.o res_module.k.o |
61 | 61 | |
62 | 62 | res_module.nk.o: res_module.c |
63 | | ${CC} ${ALL_CFLAGS} -c res_module.c |
| 63 | ${CC} ${ALL_CFLAGS} -DNOKERBEROS -c res_module.c |
64 | 64 | mv res_module.o res_module.nk.o |
65 | 65 | |
66 | 66 | auth_krb.o: |
… |
… |
|
71 | 71 | mv rpcall.o rpcall.k.o |
72 | 72 | |
73 | 73 | rpcall.nk.o: |
74 | | ${CC} ${ALL_CFLAGS} -c rpcall.c |
| 74 | ${CC} ${ALL_CFLAGS} -DNOKERBEROS -c rpcall.c |
75 | 75 | mv rpcall.o rpcall.nk.o |
76 | 76 | |
diff -ur ./libds/res_module.c ../debathena-discuss-10.0.8/libds/res_module.c
old
|
new
|
|
33 | 33 | #include <string.h> |
34 | 34 | #include <ctype.h> |
35 | 35 | |
| 36 | #ifdef NOKERBEROS |
| 37 | #undef HAVE_KRB4 |
| 38 | #undef HAVE_KRB5 |
| 39 | #endif /* NOKERBEROS */ |
| 40 | |
36 | 41 | #ifdef HAVE_KRB4 |
37 | 42 | #include <krb.h> |
38 | 43 | #ifndef MAX_K_NAME_SZ |
… |
… |
|
289 | 294 | |
290 | 295 | retval = krb5_init_context(&context); |
291 | 296 | if (!retval) |
292 | | krb5_get_host_realm(context, primary_name, &hrealms); |
293 | | if (!retval && !hrealms[0]) |
| 297 | retval = krb5_get_host_realm(context, primary_name, &hrealms); |
| 298 | if (!retval && hrealms && hrealms[0] && *(hrealms[0])) |
294 | 299 | strcpy(krb_realm, hrealms[0]); |
295 | | if (retval) |
| 300 | else |
296 | 301 | strcpy(krb_realm, local_realm()); |
297 | 302 | |
298 | 303 | if (hrealms) |
diff -ur ./libds/rpcall.c ../debathena-discuss-10.0.8/libds/rpcall.c
old
|
new
|
|
38 | 38 | #include <discuss/tfile.h> |
39 | 39 | #include "rpc.h" |
40 | 40 | #include "config.h" |
| 41 | |
| 42 | #ifdef NOKERBEROS |
| 43 | #undef HAVE_KRB4 |
| 44 | #undef HAVE_KRB5 |
| 45 | #endif /* NOKERBEROS */ |
| 46 | |
41 | 47 | #ifdef HAVE_KRB5 |
42 | 48 | #include "krb5.h" |
43 | 49 | #endif /* HAVE_KRB5 */ |
diff -ur ./mclient/Makefile.in ../debathena-discuss-10.0.8/mclient/Makefile.in
old
|
new
|
|
61 | 61 | ${CC} ${LDFLAGS} -o pmtg pmtg.o ../ets/dsc_et.o ${KLIBS} |
62 | 62 | |
63 | 63 | dsmail: dsmail.o ../ets/dsc_et.o |
64 | | ${CC} ${LDFLAGS} -o dsmail dsmail.o ../ets/dsc_et.o ${KLIBS} |
| 64 | ${CC} ${LDFLAGS} -o dsmail dsmail.o ../ets/dsc_et.o ${NKLIBS} |
65 | 65 | |
66 | 66 | dspipe: dspipe.o ../ets/dsc_et.o |
67 | 67 | ${CC} ${LDFLAGS} -o dspipe dspipe.o ../ets/dsc_et.o ${KLIBS} |
diff -ur ./server/Makefile.in ../debathena-discuss-10.0.8/server/Makefile.in
old
|
new
|
|
78 | 78 | mv rpproc.o rpproc.k.o |
79 | 79 | |
80 | 80 | rpproc.nk.o: rpproc.c |
81 | | ${CC} ${ALL_CFLAGS} -DSUBPROC -c rpproc.c |
| 81 | ${CC} ${ALL_CFLAGS} -DSUBPROC -DNOKERBEROS -c rpproc.c |
82 | 82 | mv rpproc.o rpproc.nk.o |
83 | 83 | |
84 | 84 | rpproc.debug.o: rpproc.c |
diff -ur ./server/rpproc.c ../debathena-discuss-10.0.8/server/rpproc.c
old
|
new
|
|
20 | 20 | */ |
21 | 21 | |
22 | 22 | |
| 23 | #ifdef NOKERBEROS |
| 24 | #undef HAVE_KRB4 |
| 25 | #undef HAVE_KRB5 |
| 26 | #endif /* NOKERBEROS */ |
| 27 | |
23 | 28 | #ifdef INETD |
24 | 29 | #define ASSOC 1 |
25 | 30 | #endif |