Sample Routine For Generating An Sql Chap Authentication Procedure; Pap Authentication Procedure Input - Cisco Servers User Manual

For windows 2000/nt servers
Table of Contents

Advertisement

ODBC Database
Sample Routine for Generating an SQL CHAP Authentication
Procedure

PAP Authentication Procedure Input

Cisco Secure ACS 3.0 for Windows 2000/NT Servers User Guide
11-36
The following example routine creates in Microsoft SQL Server a procedure
named CSNTExtractUserClearTextPw, the default procedure used by
Cisco Secure ACS for CHAP/MS-CHAP/ARAP authentication. Table and
column names that could vary for your database's schema are presented in
variable text. For more information about data type definitions, procedure
parameters, and procedure results, see the
page
11-30.
if exists (select * from sysobjects where id =
object_id(`dbo.CSNTExtractUserClearTextPw') and sysstat & 0xf = 4)
drop procedure dbo.CSNTExtractUserClearTextPw
GO
CREATE PROCEDURE CSNTExtractUserClearTextPw
@username varchar(64)
AS
SET NOCOUNT ON
username
IF EXISTS( SELECT
users
FROM
username
WHERE
= @username )
csntgroup
csntacctinfo
SELECT 0,
,
users
FROM
username
WHERE
= @username
ELSE
SELECT 3,0,"odbc","ODBC Authen Error"
GO
GRANT EXECUTE ON dbo.CSNTExtractUserClearTextPw TO ciscosecure
GO
Table 11-2
details the input provided by Cisco Secure ACS to the stored
procedure supporting PAP authentication. The stored procedure should accept the
named input values as variables.
Chapter 11
"ODBC Database" section on
csntpassword
,"No Error",
Working with User Databases
78-13751-01, Version 3.0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Secure acs 3.0

Table of Contents