INTLMAuthenticationProvider.cs 963 B

12345678910111213141516171819202122232425262728293031
  1. /* Copyright (C) 2014 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.Text;
  10. using SMBLibrary.Authentication;
  11. namespace SMBLibrary.Server
  12. {
  13. public interface INTLMAuthenticationProvider
  14. {
  15. // CIFS style NTLM
  16. byte[] GenerateServerChallenge();
  17. User Authenticate(string accountNameToAuth, byte[] lmResponse, byte[] ntlmResponse);
  18. // SSPI style NTLM
  19. byte[] GetChallengeMessageBytes(byte[] negotiateMessageBytes);
  20. User Authenticate(byte[] authenticateMessageBytes);
  21. List<string> ListUsers();
  22. bool EnableGuestLogin
  23. {
  24. get;
  25. }
  26. }
  27. }