The pilot aims at providing access to non-web resources via PAM (e.g. for access to sftp, ssh, console) for users by exploiting the existing AAIs, without the need to modify existing software or to obtain user certificates. The resources to which the non-web access is to be provided are considered stateful not only within single session, but also between sessions. A good example of such stateful resources is data. When stored within one user's login session it shall be also available when the user logs in next time. Thus, when the user is identified by some external identity provider, his (global) identity (and attributes) must be mapped to a stable, local resource. This model requires an initial registration/provisioning step, which practically results in setting up a local account.
The users have the possibility to use the unmodified standard client software they used before.
Another requirement is that the user needs to be logged to the same account using different access and authentication methods (e.g. sftp/password, gridFTP/X.509).
The above mentioned requirements shall be fulfilled by LDAP Facade, which allows federated authentication by simulating standard LDAP authentication.
The goals of the pilot are to:
analyse additional effort for users to access the resources (comparing to traditional access pattern)
analyse administrative effort
analyse security aspects of the solution
propose possible enhancements
investigate how the solution may be used for guest IdPs
investigate how the solution may be enhanced to work with multiple attribute authorities, different to the home-IdP
LDAP Facade (LDF) is a solution for access to non-web resources (e.g. available via SSH protocol) based on the idea of FACIUS implemented by Karlsruhe Institute of Technology (KIT). The architecture of the solution is shown in Figure 1. The non-standard components are the web application (LDF portal) and the component with LDAP interface, that holds user accounts (LDAP Facade). The LDF portal has two interfaces:
for administrators: it performs local authentication and allows to administer the service (configuring federations, SP, rules, events, services, groups, roles, users, statistics, etc.)
for end users: it performs SAML-based authentication (Web Browser SSO profile), used for user registration (provisioning a local account) and configuring access (registering to resources and setting local passwords)
The registered users are stored in an Apache Directory Server that exposes a standard LDAP interface. The Apache Directory Server (similar to any other LDAP server) allows for registering Java procedures that are called when some event occurs. For instance while the user authenticates to a resource, the registered procedure may authenticate the user against his IdP. As the result, the LDAP facade can be used as a local user manager, as well as for authentication and authorization without any modification to existing client and server software. Not only core code can be kept unchanged, also implementing specific plugins is not necessary. On the other side (collaboration with external IdP), the deployment is the same as for any other SAML-based SP.
Figure 1. Architecture of LDAP Facade.
source: S.Labitzke Now SAML takes it all: Federation of non Web-based Services in the State of Baden-Württemberg, European Identity & Cloud Conference 2013
The solution requires resource provisioning/registration prior to access. This is performed via a web application using the SAML WebSSO profile. A local account is provisioned in this step.
The resource requires to have LDAP user management configured, using the LDAP Facade as server. While accessing the resource the mentioned LDAP interface is used for user authentication and as a source of user accounts and groups.
There are theoretically 3 login alternatives to access to the resource:
Enchanced Proxy - requires full trust to the resource server and the LDAP Facade, as they are able to observe the user’s password. The client software is not modified, the user sends his password to the LDF SP (via the resource server). The LDF SP authenticates the user and obtains assertions from the IdP using the SAML ECP profile.
Enchanced Client - requires modifications on the client side. In this mode, the user has to run a program, that acquires the assertion (using SAML ECP or SAML WebSSO profile) prior running the client and pass the cooked up password to the client. Recently, a web-page that generates a short lived password for this purpose was integrated into LDF.
The acquisition of the assertion and access to the resource may also be performed by a single (but non-standard) client.
Local Authentication – the authentication is performed directly to a service-specific password stored in LDAP or via ssh-keys. The validity of the user is checked against his home-IdP using the SAML Attribute Query profile.
Alternatives (practically implemented and tested) are described lateron.
This branch of the software (v. 2.5.7 was tested) is used in bwIDM (Federation of non Web-based Services in the State of Baden-Württemberg) service in production mode. The login alternatives in use are Enhanced Proxy and Local Authentication. Piloting this version showed some limitations:
By the way of work on this version, a solution to login to the resource using pair of cryptographic keys was implemented.
In order to overcome the above limitations development on LDF is in progress. The tested version introduces "zero attributes" policy, so that the user may login independently on the set of attributes provided, as long as one unique identifier can be found in a set of different attributes (e.g. ePPN, EPUID, ...). For SAML profiles limitation there are two solutions:
User side:
Supports registration step (accept terms and conditions, setup local password if required) -to be done once via web interface.
Unmodified (standard/legacy) client software
If ECP or AQ SAML profile can be used, the user may login directly to the resource.
If ECP or AQ SAML profile cannot be used, the user must login to the web interface prior logging in to the resource. Then, depending on the solution, the user must pass an obtained token to the client application or login with pair of keys within limited time.
Lack of help/howto.
Software is not packaged, must be compiled, deployed and configured by the admin
Good installation documentation
No modification to the software on resource side (e.g. standard SSH server can be used), only the proper configuration of authentication and authorization mechanisms must be performed (PAM-LDAP modules)
The web portal is complex -gives lots of functionality (resource management, group management, rules, statistics)
Lack of portal help/howto and general documentation (description of concepts etc.)
There is need for certain versions of underlying software, thus it is recommended to install some pieces manually
The piloting showed some issues with underlying software
Admin interface is not completely translated to English
The solution is correctly designed from the security point of view in general.
The demo environment is available in public. It consists of two elements:
The suggested workflow follows:
LDAP Facade development repository (used in the above demo): https://git.scc.kit.edu/jz9384/reg-app-dev.git
LDAP Facade stable repository (used by bwIDM services): https://git.scc.kit.edu/simon/reg-app.git