Click here to get back home

Kerberos V5 Authentication for a Telnet Session

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Kerberos V5 Authentication for a Telnet Session sarshah20 10-27-2005
Posted by sarshah20 on October 27, 2005, 3:21 am
Please log in for more thread options
Here is what i want to do. I want to establish a telnet connection from
a client to a server. The authentication mechanism that i want to use
for telnet connection is kerberos v5.

What I Have Done So Far:
I have setup two virtual machines (both windows 2003 server enterprise
edition) on VMWare. I have made one of them a server (a domain
controller) and other a client. On the server, i
have installed Active Directory. On the server i registered a new user
in active directory. Using this user i can log in to the domain from
clients machine. Now, from the clients machine, when i try to connect
to the server using the windows builtin telnet client, the login
attempt fails. The message that is displayed on the console is "Failure
in initializing the telnet session. Shell process may not have been
launched.". In the server event viewer, there is an error saying "Error
in creating CMD proces. System Error: Access is denied.". After
searching the internet, i found out a couple of proposed solutions for
the first error. One of them was for win xp 64 bit edition. Tried it
but no avail. The 2nd
one said to make sure that Secondary Logon service is running. Tried
that too but no affect at all. If i unset NTLM auth from the client
side then it simply asks me to enter user name and password. Obviously
this is not what i want. I want the user to be authenticated by means
of kerberos v5 protocol. So now i am wondering how can i make kerberos
v5 authentication to work with telnet. Any help would be highly
appreciated.


Thanks,

sarshah



Posted by Eric Denekamp on October 27, 2005, 3:32 am
Please log in for more thread options
afaik, this is not possible by default. I heard about some organisations
who have done this by reprogramming the telnet service and the telnet client.
So if I am correct, you have to dig into Visual Studio .NEt and the platform
SDK to accomplish this.
too bad though, you are not the only one to want this.

good luck,

Eric Denekamp
mailto:ericd@infosupport.com

> Here is what i want to do. I want to establish a telnet connection
> from a client to a server. The authentication mechanism that i want to
> use for telnet connection is kerberos v5.
>
> What I Have Done So Far:
> I have setup two virtual machines (both windows 2003 server enterprise
> edition) on VMWare. I have made one of them a server (a domain
> controller) and other a client. On the server, i
> have installed Active Directory. On the server i registered a new user
> in active directory. Using this user i can log in to the domain from
> clients machine. Now, from the clients machine, when i try to connect
> to the server using the windows builtin telnet client, the login
> attempt fails. The message that is displayed on the console is
> "Failure
> in initializing the telnet session. Shell process may not have been
> launched.". In the server event viewer, there is an error saying
> "Error
> in creating CMD proces. System Error: Access is denied.". After
> searching the internet, i found out a couple of proposed solutions for
> the first error. One of them was for win xp 64 bit edition. Tried it
> but no avail. The 2nd
> one said to make sure that Secondary Logon service is running. Tried
> that too but no affect at all. If i unset NTLM auth from the client
> side then it simply asks me to enter user name and password. Obviously
> this is not what i want. I want the user to be authenticated by means
> of kerberos v5 protocol. So now i am wondering how can i make kerberos
> v5 authentication to work with telnet. Any help would be highly
> appreciated.
> Thanks,
>
> sarshah
>




Posted by Steven L Umbach on October 27, 2005, 1:14 pm
Please log in for more thread options
Look into using ipsec. You could create an ipsec require policy on the
server for the telnet port and configure the client computer with a
client/respond policy. Then the two computers will have to authenticate via
kerberos [default authentication protocol but certificates can be used also]
and create the ipsec tunnel before the user ever gets a prompt for a
password. The user still have to use ntlm but the challenge response will go
through a very secure encrypted tunnel if that is your concern. Computers
that do not have a compliant ipsec policy would not be able to access that
port used for telnet. You can specify the IP addresses in the filter list
for the ipsec policy to block all IP for telnet and then another rule to
allow the specified IPs requiring ipsec EH for telnet. --- Steve


> Here is what i want to do. I want to establish a telnet connection from
> a client to a server. The authentication mechanism that i want to use
> for telnet connection is kerberos v5.
>
> What I Have Done So Far:
> I have setup two virtual machines (both windows 2003 server enterprise
> edition) on VMWare. I have made one of them a server (a domain
> controller) and other a client. On the server, i
> have installed Active Directory. On the server i registered a new user
> in active directory. Using this user i can log in to the domain from
> clients machine. Now, from the clients machine, when i try to connect
> to the server using the windows builtin telnet client, the login
> attempt fails. The message that is displayed on the console is "Failure
> in initializing the telnet session. Shell process may not have been
> launched.". In the server event viewer, there is an error saying "Error
> in creating CMD proces. System Error: Access is denied.". After
> searching the internet, i found out a couple of proposed solutions for
> the first error. One of them was for win xp 64 bit edition. Tried it
> but no avail. The 2nd
> one said to make sure that Secondary Logon service is running. Tried
> that too but no affect at all. If i unset NTLM auth from the client
> side then it simply asks me to enter user name and password. Obviously
> this is not what i want. I want the user to be authenticated by means
> of kerberos v5 protocol. So now i am wondering how can i make kerberos
> v5 authentication to work with telnet. Any help would be highly
> appreciated.
>
>
> Thanks,
>
> sarshah
>




Posted by S. Pidgorny on October 27, 2005, 8:32 pm
Please log in for more thread options
I think neither Windows telnet client nor Windows telnet server support
Kerberos authentication - with the built-ins, you're limited to NTLM
authentication (info and links in the KB -
http://support.microsoft.com/?id=299942). There are probably 3rd-party
products but if you're after secure remote console, I'd recommend using SSH
instead. But if you'll need Kerberos support in SSH, this gets complicated
yet again.

--
Svyatoslav Pidgorny, MS MVP - Security, MCSE
-= F1 is the key =-



> Here is what i want to do. I want to establish a telnet connection from
> a client to a server. The authentication mechanism that i want to use
> for telnet connection is kerberos v5.
>
> What I Have Done So Far:
> I have setup two virtual machines (both windows 2003 server enterprise
> edition) on VMWare. I have made one of them a server (a domain
> controller) and other a client. On the server, i
> have installed Active Directory. On the server i registered a new user
> in active directory. Using this user i can log in to the domain from
> clients machine. Now, from the clients machine, when i try to connect
> to the server using the windows builtin telnet client, the login
> attempt fails. The message that is displayed on the console is "Failure
> in initializing the telnet session. Shell process may not have been
> launched.". In the server event viewer, there is an error saying "Error
> in creating CMD proces. System Error: Access is denied.". After
> searching the internet, i found out a couple of proposed solutions for
> the first error. One of them was for win xp 64 bit edition. Tried it
> but no avail. The 2nd
> one said to make sure that Secondary Logon service is running. Tried
> that too but no affect at all. If i unset NTLM auth from the client
> side then it simply asks me to enter user name and password. Obviously
> this is not what i want. I want the user to be authenticated by means
> of kerberos v5 protocol. So now i am wondering how can i make kerberos
> v5 authentication to work with telnet. Any help would be highly
> appreciated.
>
>
> Thanks,
>
> sarshah
>




Similar ThreadsPosted
Telnet session "Shell process may not have been launched" (Solution) June 21, 2005, 2:53 pm
Kerberos machine authentication - apparent authentication failures May 30, 2005, 10:35 am
How to set up Kerberos authentication? (some code :) August 18, 2005, 2:55 pm
Problems With Kerberos Authentication September 25, 2007, 2:33 am
Kerberos and Integrated Windows authentication July 24, 2005, 8:26 am
Kerberos authentication failed across forest March 23, 2006, 8:58 am
Kerberos authentication failed across forest March 23, 2006, 9:08 am
Intermittent Kerberos authentication failure June 14, 2007, 2:26 pm
IAS/RADIUS session duration August 6, 2007, 12:10 pm
Force Lockout Session October 21, 2007, 10:11 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap