export IAS-RADIUS logs to SQL Server 2005 database - sqlserver-faq
This is a discussion on export IAS-RADIUS logs to SQL Server 2005 database - sqlserver-faq ; I have some problems to export IAS-RADIUS server logs in a SqlServer2005 database. Theoretically, it is done in two steps: 1. IAS server configuration: interface configuration specifies the server name(Host name), the database name, user & password and then testing ...
![]() |
| | LinkBack | Thread Tools | Display Modes |
|
#1
| |||
| |||
| Theoretically, it is done in two steps: 1. IAS server configuration: interface configuration specifies the server name(Host name), the database name, user & password and then testing the connection(all must be created in sqlserver before testing connection) 2. Configure SQL2005 server: here is a little more work. Have to create a database, a table where insert data, a user/password and a stored procedure called 'Report_event'. The IAS's help described modality about how working IAS-RADIUS to export logs in SqlServer, but not given details about the table structure. In fact, IAS-Radius server creates an XML, call stored procedure 'Report_event'(from sql server) to process XML and insert a record into the table. I searched for information about the structure of the tables and found something on MSDN and Technet from Microsoft. I run the attached script (without any error). It created the database, the table and the stored procedure called 'report_event'. Then, I created a 'login' = 'USERIAS' which I mapped on database 'NPSODBC'. After this, I gave permission to connect, select, insert, update and execute. I configured the connection interface of the IAS-RADIUS server with: Server = 'SERVERNAME', database = 'NPSODBC' authetication = 'SqlServer', User = 'USERIAS', Password = 'Password') and I tested connection and it worked ok.(message from IAS configuration interface: Connection succesful) When IAS_RADIUS receive a request to authenticate a user who want to connect on the network via IAS/RAS, must create a log record. But IAS_RADIUS server not inserted any records in database. In Sqlserver log appear the message 'Login failed for user USERIAS [Client: IPserverIAS]' (If I test the connection at database from IAS-RADIUS server in interface configuration tells me it's ok) What permissions should be assigned to 'USERIAS'? |
|
#2
| |||
| |||
|
Sorry....this is 'attached' script: IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'NPSODBC') DROP DATABASE [NPSODBC] GO CREATE DATABASE [NPSODBC] ON (NAME = N'NPSODBC_Data', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL\data\NPSODBC_Data.MDF' , SIZE = 10, FILEGROWTH = 10%) LOG ON (NAME = N'NPSODBC_Log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL\data\NPSODBC_Log.LDF' , SIZE = 10, FILEGROWTH = 10%) COLLATE SQL_Latin1_General_CP1_CI_AS GO exec sp_dboption N'NPSODBC', N'autoclose', N'false' GO exec sp_dboption N'NPSODBC', N'bulkcopy', N'false' GO exec sp_dboption N'NPSODBC', N'trunc. log', N'false' GO exec sp_dboption N'NPSODBC', N'torn page detection', N'true' GO exec sp_dboption N'NPSODBC', N'read only', N'false' GO exec sp_dboption N'NPSODBC', N'dbo use', N'false' GO exec sp_dboption N'NPSODBC', N'single', N'false' GO exec sp_dboption N'NPSODBC', N'autoshrink', N'false' GO exec sp_dboption N'NPSODBC', N'ANSI null default', N'false' GO exec sp_dboption N'NPSODBC', N'recursive triggers', N'false' GO exec sp_dboption N'NPSODBC', N'ANSI nulls', N'false' GO exec sp_dboption N'NPSODBC', N'concat null yields null', N'false' GO exec sp_dboption N'NPSODBC', N'cursor close on commit', N'false' GO exec sp_dboption N'NPSODBC', N'default to local cursor', N'false' GO exec sp_dboption N'NPSODBC', N'quoted identifier', N'false' GO exec sp_dboption N'NPSODBC', N'ANSI warnings', N'false' GO exec sp_dboption N'NPSODBC', N'auto create statistics', N'true' GO exec sp_dboption N'NPSODBC', N'auto update statistics', N'true' GO if( ( (@@microsoftversion / power(2, 24) = 8) and (@@microsoftversion & 0xffff >= 724) ) or ( (@@microsoftversion / power(2, 24) = 7) and (@@microsoftversion & 0xffff >= 1082) ) ) exec sp_dboption N'NPSODBC', N'db chaining', N'false' GO use [NPSODBC] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[report_event]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[report_event] GO if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[accounting_data]') and OBJECTPROPERTY(id, N'IsUserTable') = 1) drop table [dbo].[accounting_data] GO if exists (select * from dbo.systypes where name = N'ipaddress') exec sp_droptype N'ipaddress' GO setuser GO EXEC sp_addtype N'ipaddress', N'nvarchar (15)', N'not null' GO setuser GO CREATE TABLE [dbo].[accounting_data] ( [id] [int] IDENTITY (1, 1) NOT NULL , [timestamp] [datetime] NOT NULL , [Computer_Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [Packet_Type] [int] NOT NULL , [User_Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [F_Q_User_Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Called_Station_Id] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Calling_Station_Id] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Callback_Number] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Framed_IP_Address] [ipaddress] NULL , [NAS_Identifier] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [NAS_IP_Address] [ipaddress] NULL , [NAS_Port] [int] NULL , [Client_Vendor] [int] NULL , [Client_IP_Address] [ipaddress] NULL , [Client_Friendly_Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Event_Timestamp] [datetime] NULL , [Port_Limit] [int] NULL , [NAS_Port_Type] [int] NULL , [Connect_Info] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Framed_Protocol] [int] NULL , [Service_Type] [int] NULL , [Authentication_Type] [int] NULL , [NP_Policy_Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Reason_Code] [int] NULL , [Class] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Session_Timeout] [int] NULL , [Idle_Timeout] [int] NULL , [Termination_Action] [int] NULL , [EAP_Friendly_Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Acct_Status_Type] [int] NULL , [Acct_Delay_Time] [int] NULL , [Acct_Input_Octets] [int] NULL , [Acct_Output_Octets] [int] NULL , [Acct_Session_Id] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Acct_Authentic] [int] NULL , [Acct_Session_Time] [int] NULL , [Acct_Input_Packets] [int] NULL , [Acct_Output_Packets] [int] NULL , [Acct_Terminate_Cause] [int] NULL , [Acct_Multi_Session_Id] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Acct_Link_Count] [int] NULL , [Acct_Interim_Interval] [int] NULL , [Tunnel_Type] [int] NULL , [Tunnel_Medium_Type] [int] NULL , [Tunnel_Client_Endpoint] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Tunnel_Server_Endpoint] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Acct_Tunnel_Connection] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Tunnel_Pvt_Group_Id] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Tunnel_Assignment_Id] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Tunnel_Preference] [int] NULL , [MS_Acct_Auth_Type] [int] NULL , [MS_Acct_EAP_Type] [int] NULL , [MS_RAS_Version] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [MS_RAS_Vendor] [int] NULL , [MS_CHAP_Error] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [MS_CHAP_Domain] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [MS_MPPE_Encryption_Types] [int] NULL , [MS_MPPE_Encryption_Policy] [int] NULL , [Proxy_Policy_Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Provider_Type] [int] NULL , [Provider_Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Remote_Server_Address] [ipaddress] NULL , [MS_RAS_Client_Name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [MS_RAS_Client_Version] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] GO SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS OFF GO ....continued on next post |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TS:MS SQL Server@ 2008,Implementation and Maintenance:70-432 exam | test4actual | ms-sqlserver | 0 | 10-11-2009 08:01 AM |
| KB948110/MS08-040, SQL 2000 & sa authentication | Database Administrator | ms-sqlserver | 11 | 08-01-2008 06:06 PM |
| MS08-040 won't install on Windows Vista SP1 | Database Administrator | ms-sqlserver | 8 | 07-21-2008 04:42 AM |
| sql server stop working | Database Administrator | sqlserver-server | 4 | 12-13-2007 11:04 AM |
| store result of query in variable | Database Administrator | Oracle Server | 6 | 12-04-2007 01:34 PM |
All times are GMT -4. The time now is 03:41 AM.




Linear Mode
