mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-05-15 17:06:59 +02:00
Improved NTLM authentication API
This commit is contained in:
parent
05f49c3128
commit
217451d18f
23 changed files with 602 additions and 526 deletions
|
@ -17,8 +17,9 @@ using System.Text;
|
|||
using System.Windows.Forms;
|
||||
using System.Xml;
|
||||
using SMBLibrary;
|
||||
using SMBLibrary.Authentication.NTLM;
|
||||
using SMBLibrary.Server;
|
||||
using SMBLibrary.Server.Win32;
|
||||
using SMBLibrary.Win32.Security;
|
||||
using Utilities;
|
||||
|
||||
namespace SMBServer
|
||||
|
@ -61,10 +62,10 @@ namespace SMBServer
|
|||
transportType = SMBTransportType.DirectTCPTransport;
|
||||
}
|
||||
|
||||
INTLMAuthenticationProvider provider;
|
||||
NTLMAuthenticationProviderBase provider;
|
||||
if (chkIntegratedWindowsAuthentication.Checked)
|
||||
{
|
||||
provider = new Win32UserCollection();
|
||||
provider = new IntegratedNTLMAuthenticationProvider();
|
||||
|
||||
}
|
||||
else
|
||||
|
@ -80,7 +81,7 @@ namespace SMBServer
|
|||
return;
|
||||
}
|
||||
|
||||
provider = new IndependentUserCollection(users);
|
||||
provider = new IndependentNTLMAuthenticationProvider(users.GetUserPassword);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue