INTLMAuthenticationProvider.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright (C) 2014-2017 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. ChallengeMessage GetChallengeMessage(NegotiateMessage negotiateMessage);
  16. bool Authenticate(AuthenticateMessage authenticateMessage);
  17. /// <summary>
  18. /// Permit access to this user via the guest user account if the normal authentication process fails.
  19. /// </summary>
  20. /// <remarks>
  21. /// Windows will permit fallback when these conditions are met:
  22. /// 1. The guest user account is enabled.
  23. /// 2. The guest user account does not have a password set.
  24. /// 3. The specified account does not exist.
  25. /// OR:
  26. /// The password is correct but 'limitblankpassworduse' is set to 1 (logon over a network is disabled for accounts without a password).
  27. /// </remarks>
  28. bool FallbackToGuest(string userName);
  29. List<string> ListUsers();
  30. }
  31. }