[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Single Page
Top Document: Kerberos FAQ, v2.0 (last modified 8/18/2000)
Previous Document: 2.21. How do a rename a principal?
Next Document: 2.23. I already have a standard Unix password database for my user population. Can I convert this to a Kerberos password database?
-
Search the FAQ Archives
Single Page
Top Document: Kerberos FAQ, v2.0 (last modified 8/18/2000)
Previous Document: 2.21. How do a rename a principal?
Next Document: 2.23. I already have a standard Unix password database for my user population. Can I convert this to a Kerberos password database?
2.22. What is the difference between the "-a valid" and the "-a 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,16 @@
{
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);}
Top Document: Kerberos FAQ, v2.0 (last modified 8/18/2000)
Previous Document: 2.21. How do a rename a principal?
Next Document: 2.23. I already have a standard Unix password database for my user population. Can I convert this to a Kerberos password database?
Single Page
[ Usenet FAQs | Search | Web FAQs | Documents | RFC Index ]
Send corrections/additions to the FAQ Maintainer:
Ken Hornstein <kenh@cmf.nrl.navy.mil>
Last Update September 05 2008 @ 00:14 AM