Authorization type k5login.

Enable k5login authorization in telnetd and
rlogind/rshd for future versions of libshishi.
This commit is contained in:
Mats Erik Andersson
2012-08-08 11:49:48 +02:00
parent 3054a34cda
commit 7439cb7c3d
6 changed files with 89 additions and 42 deletions

View File

@@ -293,6 +293,17 @@ get_auth (int infd, Shishi ** handle, Shishi_ap ** ap,
else
servername = shishi_server_for_local_service (*handle, SERVICE);
/* Enable use of `~/.k5login'. */
if (shishi_check_version ("1.0.2")) /* Faulty in version 1.0.1. */
{
rc = shishi_cfg_authorizationtype_set (*handle, "k5login basic");
if (rc != SHISHI_OK)
{
*err_msg = shishi_error (*handle);
return rc;
}
}
key = shishi_hostkeys_for_server (*handle, servername);
free (servername);
if (!key)