user” flags for telnetd?
In the current MIT release, there is no difference due to a bug in telnetd. Here’s a patch that fixes this and makes the these flags behave according to the man page. Index: lib/appl/telnet/libtelnet/kerberos.c ================================================== ================= — kerberos.c 1997/06/02 21:54:38 1.1.1.1 +++ kerberos.c 1997/08/25 23:12:44 1.3 @@ -435,8 +430,15 @@ if (UserNameRequested && !kuserok(&adat, UserNameRequested)) { strcpy(name, UserNameRequested); return(AUTH_VALID); – } else + } else { + /* + * Always copy in UserNameRequested if the authentication + * is valid, because the higher level routines need it. + */ + if (UserNameRequested) + strcpy(name, UserNameRequested); return(AUTH_USER); + } } #define BUMP(buf, len) while (*(buf)) {++(buf), –(len);} Index: lib/appl/telnet/libtelnet/kerberos5.c ================================================== ================= — kerberos5.c 1997/12/15 18:51:31 1.1.1.2 +++ kerberos5.c 1997/12/15 19:15:50 1.4 @@ -682,8 +690