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