Red Hat NETSCAPE DIRECTORY SERVER 6.02 - DEPLOYMENT Guía de instalación Pagina 132

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 192
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 131
Deploying the Integrated SSO Solution
132 Sun ONE Identity Server Policy Agents 2.1 Web Policy Agents Guide April 2005
2. Modify the default external authentication implementation,
wwsso_auth_external
, in the file
ssoxnete.pkb
. This file can be found in the
directory
$ORACLE_HOME/portal30/admin/plsql/sso
. The only two functions
that must be modified here are
authenticate_user
and
get_Authentication_Name
. The modified functions are documented below
with the changes highlighted in bold.
Code Example 5-1
Changes to the Function authenticate_user
FUNCTION authenticate_user
(
p_user OUT VARCHAR2
)
return PLS_INTEGER
IS
l_http_header varchar(1000);
l_ssouser wwsec_person.user_name%type := NULL;
BEGIN
l_http_header := owa_util.get_cgi_env(’HTTP_IDENTITY_USER’);
debug_print(’Identity ID : ’ || l_http_header);
l_ssouser := l_http_header;
IF ( (l_ssouser IS NULL) or
( INSTR(l_ssouser, GLOBAL_SEPARATOR) != 0) ) THEN
debug_print(’malformed user id: ’
|| l_ssouser
|| ’ returned by wwsso_auth_external.authenticate_user’);
RAISE EXT_AUTH_FAILURE_EXCEPTION;
ELSE
p_user := NLS_UPPER(l_ssouser);
return 0;
END IF;
EXCEPTION
WHEN OTHERS THEN
WHEN OTHERS THEN
debug_print(’unknown exception in authenticate_user(p_user)’
|| sqlerrm);
RAISE EXT_AUTH_FAILURE_EXCEPTION;
END authenticate_user;
Code Example 5-2
Changes to the Function get_Authentication_Name
FUNCTION get_authentication_name
RETURN VARCHAR2
AS
Vista de pagina 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 191 192

Comentarios a estos manuales

Sin comentarios