CASA/CASA-auth-token/client/library
2007-02-13 23:58:11 +00:00
..
linux Addressed issues found during the SuSE security review. 2007-02-02 23:02:43 +00:00
mechanisms Added needed defines missing in the windows environment that were keeping the components from building cleanly. 2007-02-06 23:36:07 +00:00
test CASA-auth-client: modify the include path in Windows solution file 2007-02-05 18:00:46 +00:00
windows Corrected the name of the output debug pdb file. 2007-02-13 23:58:11 +00:00
authmech.c More changes to resolve issues brought up during the security 2007-02-06 22:09:00 +00:00
authmsg.c More changes to resolve issues brought up during the security 2007-02-06 22:09:00 +00:00
authpolicy.c More changes to resolve issues brought up during the security 2007-02-06 22:09:00 +00:00
cache.c More changes to resolve issues brought up during the security 2007-02-06 22:09:00 +00:00
client.conf CASA-auth-token-client: rename lib directory to library and change in makefile 2007-01-03 05:04:26 +00:00
config_if.h CASA-auth-token-client: rename lib directory to library and change in makefile 2007-01-03 05:04:26 +00:00
config.c CASA-auth-token-client: rename lib directory to library and change in makefile 2007-01-03 05:04:26 +00:00
engine.c Addressed issues found during the SuSE security review. 2007-02-02 23:02:43 +00:00
getpolicymsg.c More changes to resolve issues brought up during the security 2007-02-06 22:09:00 +00:00
gettokenmsg.c More changes to resolve issues brought up during the security 2007-02-06 22:09:00 +00:00
internal.h More changes to resolve issues brought up during the security 2007-02-06 22:09:00 +00:00
invalidcert.c Addressed issues found during the SuSE security review. 2007-02-02 23:02:43 +00:00
Makefile.am CASA-auth-token-client: rename lib directory to library and change in makefile 2007-01-03 05:04:26 +00:00
mech_if.h More changes to resolve issues brought up during the security 2007-02-06 22:09:00 +00:00
README CASA-auth-token-client: rename lib directory to library and change in makefile 2007-01-03 05:04:26 +00:00
TODO CASA-auth-token-client: rename lib directory to library and change in makefile 2007-01-03 05:04:26 +00:00
util.c More changes to resolve issues brought up during the security 2007-02-06 22:09:00 +00:00

/***********************************************************************
 * 
 *  Copyright (C) 2006 Novell, Inc. All Rights Reserved.
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; version 2.1
 *  of the License.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *  Library Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, Novell, Inc.
 * 
 *  To contact Novell about this file by physical or electronic mail, 
 *  you may find current contact information at www.novell.com.
 * 
 *  Author: Juan Carlos Luciani <jluciani@novell.com>
 *
 ***********************************************************************/
/***********************************************************************
 *
 *  README for libcasa_c_authtoken
 *
 ***********************************************************************/

INTRODUCTION

libcasa_c_authtoken is the client auth_token engine. It is responsible for
interacting with ATSs, invoking the authentication mechanism plug-ins, and
managing the authentication token cache. libcasa_c_authtoken also provides
the Get Authentication Token API.

CONFIGURATION

libcasa_c_authtoken has several configuration settings that can be modified to
change its default behavior. To modify the libcasa_c_authtoken configuration
you need to edit the client.conf file. The path to the client.conf file under
linux is /etc/CASA/authtoken/client/client.conf. The path to the client.conf file
under windows is \Program Files\novell\CASA\Etc\Auth\client.conf.

CONFIGURING ADDITIONAL AUTHENTICATION MECHANISM MODULES

libcasa_c_authtoken utilizes mechanism plug-ins for authenticating to ATSs.
The client auth_token package installs mechanisms for the support of Kerberos5
and Username/Password authentication. To configure additional authentication mechanism
plug-ins, place their configuration file in the folder for CASA Authentication Token module
configuration. The path to this folder under linux is /etc/CASA/authtoken/client/mechanisms/.
The path to this folder under Windows is \Program Files\novell\CASA\Etc\Auth\Mechanisms\. The name of
the plug-in configuration file is related to the authentication mechanism type in the following
manner: AuthenticationMechanismTypeName.conf.

Authentication Mechanism plug-in configuration files must must contain a directive indicating the
path to the library implementing the Authentication Mechanism (See the configuration file
for the Kr5Authenticate plug-in for an example).

CLIENT APPLICATION PROGRAMMING NOTES

The Get CASA Authentication Token API is defined in casa_c_authtoken.h.

The API consists of a call to obtain authentication tokens. The caller must supply the name of the
service to which it wants to authenticate along with the name of the host where it resides. The
returned authentication token is a Base64 encoded string.

Applications utilizing CASA Authentication Tokens as passwords in protocols that require the
transfer of user name and password credentials should verify or remove any password length limits
as the length of CASA Authentication Tokens may be over 1K bytes. The size of the CASA Authentication
Tokens is directly dependent on the amount of identity information configured as required by the
consuming service. These applications should also set the user name to "CasaPrincipal".

For examples of code which uses the Get CASA Authentication Token API look at the test application
under the test folder.

AUTHENTICATION MECHANISM PROGRAMMING NOTES

The Authentication Mechanism API is defined in mech_if.h.

For example implementations see the code for the krb5 and the pwd mechanisms.

SECURITY CONSIDERATIONS

CASA Authentication Tokens when compromised can be used to either impersonate
a user or to obtain identity information about the user. Because of this it is
important that the tokens be secured by applications making use of them. It is
recommended that the tokens be transmitted using SSL.