SecurityMode.cs 881 B

1234567891011121314151617181920212223
  1. using System;
  2. namespace SMBLibrary.SMB1
  3. {
  4. [Flags]
  5. public enum SecurityMode : byte
  6. {
  7. /// <summary>
  8. /// If clear, the server supports only Share Level access control.
  9. /// If set, the server supports only User Level access control.
  10. /// </summary>
  11. UserSecurityMode = 0x01, // NEGOTIATE_USER_SECURITY
  12. /// <summary>
  13. /// If clear, the server supports only plaintext password authentication.
  14. /// If set, the server supports challenge/response authentication.
  15. /// Note: Windows 2000 and above do not support plain-text passwords by default.
  16. /// </summary>
  17. EncryptPasswords = 0x02, // NEGOTIATE_ENCRYPT_PASSWORDS
  18. SecuritySignaturesEnabled = 0x04, // NEGOTIATE_SECURITY_SIGNATURES_ENABLED
  19. SecuritySignaturesRequired = 0x08, // NEGOTIATE_SECURITY_SIGNATURES_REQUIRED
  20. }
  21. }