From 5dcb64b8b69c8c4c33b28d75d1b4e51af0b52a77 Mon Sep 17 00:00:00 2001 From: "Jakob A. Dam" Date: Fri, 10 Apr 2015 09:14:21 +0200 Subject: [PATCH] Removed the bundled radar-radius. Added the original as submodule --- .gitmodules | 3 + CICRadarR/CICRadarR.sln | 22 ++ CICRadarR/CICRadarR.vb | 8 +- CICRadarR/CICRadarR.vbproj | 13 +- CICRadarR/NASAuthList.vb | 17 - CICRadarR/RADIUSAttributes.vb | 312 ------------------ CICRadarR/RADIUSPacket.vb | 253 -------------- CICRadarR/RADIUSServer.vb | 161 --------- CICRadarR/UDPServer.vb | 57 ---- CICRadarR/VendorSpefic.vb | 142 -------- CICRadarR/bin/Debug/CICRadarR.ini | 30 +- .../bin/Debug/CICRadarR.vshost.exe.manifest | 48 --- CICRadarR/bin/Debug/CICRadarR.xml | 66 ---- CICRadarR/handlers/CitrixHandler.vb | 1 + CICRadarR/handlers/RDSHandler.vb | 3 +- radar-radius | 1 + 16 files changed, 52 insertions(+), 1085 deletions(-) create mode 100644 .gitmodules delete mode 100644 CICRadarR/NASAuthList.vb delete mode 100644 CICRadarR/RADIUSAttributes.vb delete mode 100644 CICRadarR/RADIUSPacket.vb delete mode 100644 CICRadarR/RADIUSServer.vb delete mode 100644 CICRadarR/UDPServer.vb delete mode 100644 CICRadarR/VendorSpefic.vb delete mode 100644 CICRadarR/bin/Debug/CICRadarR.vshost.exe.manifest delete mode 100644 CICRadarR/bin/Debug/CICRadarR.xml create mode 160000 radar-radius diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..e3bbf12 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "radar-radius"] + path = radar-radius + url = https://github.com/jakobadam/radar-radius diff --git a/CICRadarR/CICRadarR.sln b/CICRadarR/CICRadarR.sln index 118995a..c5c3255 100644 --- a/CICRadarR/CICRadarR.sln +++ b/CICRadarR/CICRadarR.sln @@ -5,16 +5,38 @@ VisualStudioVersion = 12.0.31101.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "CICRadarR", "CICRadarR.vbproj", "{04C6C533-9FEA-41B2-B554-A166C7C7FE32}" EndProject +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "RADAR", "..\radar-radius\RADAR\RADAR.vbproj", "{3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|Mixed Platforms = Debug|Mixed Platforms Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|Mixed Platforms = Release|Mixed Platforms Release|x86 = Release|x86 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution + {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Debug|Any CPU.ActiveCfg = Debug|x86 + {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Debug|Mixed Platforms.ActiveCfg = Debug|x86 + {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Debug|Mixed Platforms.Build.0 = Debug|x86 {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Debug|x86.ActiveCfg = Debug|x86 {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Debug|x86.Build.0 = Debug|x86 + {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Release|Any CPU.ActiveCfg = Release|x86 + {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Release|Mixed Platforms.ActiveCfg = Release|x86 + {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Release|Mixed Platforms.Build.0 = Release|x86 {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Release|x86.ActiveCfg = Release|x86 {04C6C533-9FEA-41B2-B554-A166C7C7FE32}.Release|x86.Build.0 = Release|x86 + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Debug|x86.ActiveCfg = Debug|Any CPU + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Release|Any CPU.Build.0 = Release|Any CPU + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Release|Mixed Platforms.Build.0 = Release|Any CPU + {3AB08A4E-C4FA-4571-A5D4-32BBA807C31D}.Release|x86.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/CICRadarR/CICRadarR.vb b/CICRadarR/CICRadarR.vb index 6cc60e4..704b211 100644 --- a/CICRadarR/CICRadarR.vb +++ b/CICRadarR/CICRadarR.vb @@ -7,7 +7,7 @@ Imports System.Security.Cryptography Imports System.Text Imports System Imports System.Net.Mail - +Imports RADAR Public Class CICRadarR @@ -15,7 +15,9 @@ Public Class CICRadarR Public Shared ADField As String = "" Public Shared ADMailField As String = "" Public Shared EnableOTP As Boolean - ' TODO: What this? + + ' Shared key: used for challange encryption + ' TODO: Fix Public Shared encCode As String = "gewsyy#sjs2!" Private Shared DEBUG As Boolean @@ -163,8 +165,6 @@ Public Class CICRadarR End Sub Public Shared Function GenerateCode() As String - - Dim dummy As Integer = 0 Dim ordRand As New System.Random() diff --git a/CICRadarR/CICRadarR.vbproj b/CICRadarR/CICRadarR.vbproj index f01b331..397dd34 100644 --- a/CICRadarR/CICRadarR.vbproj +++ b/CICRadarR/CICRadarR.vbproj @@ -77,12 +77,10 @@ - - @@ -107,16 +105,12 @@ Settings.settings True - ProjectInstaller.vb Component - - - TestService.vb @@ -124,7 +118,6 @@ Form - @@ -155,6 +148,12 @@ Settings.Designer.vb + + + {3ab08a4e-c4fa-4571-a5d4-32bba807c31d} + RADAR + + - - - - - - - - - - - - - - - - - - - diff --git a/CICRadarR/bin/Debug/CICRadarR.xml b/CICRadarR/bin/Debug/CICRadarR.xml deleted file mode 100644 index 202a90a..0000000 --- a/CICRadarR/bin/Debug/CICRadarR.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - -CICRadarR - - - - - - Returns the cached ResourceManager instance used by this class. - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - Returns the username supplied in an Access Request. Returns - Nothing if a User-Name attribute is missing or the packet is not an - Access Request. - - - - - - - Returns the password supplied in an Access Request. Returns - Nothing is a User-Password attribute is missing or the packet is not - an Access Request. - - - - - - - Deprecated. User the UserName and UserPassword properties instead. - - - - - - - - Accept the access request. - - - - - Accept the access request and include the specified attributes in the RADIUS response. - - The RADIUS attributes to include with the response. - - - - Reject the access request. - - - - - \ No newline at end of file diff --git a/CICRadarR/handlers/CitrixHandler.vb b/CICRadarR/handlers/CitrixHandler.vb index 13c4a5e..ff34dc6 100644 --- a/CICRadarR/handlers/CitrixHandler.vb +++ b/CICRadarR/handlers/CitrixHandler.vb @@ -1,4 +1,5 @@ Imports System.DirectoryServices +Imports RADAR ' TODO: I don't use this! It's a leftover, moved out of the way ' from the CICRadarR.vb diff --git a/CICRadarR/handlers/RDSHandler.vb b/CICRadarR/handlers/RDSHandler.vb index a0bf888..625b48f 100644 --- a/CICRadarR/handlers/RDSHandler.vb +++ b/CICRadarR/handlers/RDSHandler.vb @@ -1,4 +1,5 @@ Imports System.DirectoryServices +Imports RADAR Public Class RDSHandler @@ -227,7 +228,7 @@ Public Class RDSHandler attributes.Add(attr) attributes.Add(state) - mPacket.SendAccessChallenge(attributes) + mPacket.SendAccessChallange(attributes) End Sub Private Function Authenticate() As System.DirectoryServices.SearchResult diff --git a/radar-radius b/radar-radius new file mode 160000 index 0000000..62c83c7 --- /dev/null +++ b/radar-radius @@ -0,0 +1 @@ +Subproject commit 62c83c7d8c7c6245e9ab13d4c1435dbb5c1ccc11