API Reference
Class
NullSessionChecker
Validates anonymous SAM and null session configuration.
Inheritance
- Object
- NullSessionChecker
Constructors
public NullSessionChecker(Func<String, Boolean> anonymousSamAllowed = null, Func<String, Boolean> nullSessionAllowed = null, Func<IEnumerable<String>> enumerateDcs = null) #Initializes a new instance of the NullSessionChecker class.
Parameters
- anonymousSamAllowed System.Func{System.String,System.Boolean} = null
- Delegate used to determine if anonymous SAM is allowed.
- nullSessionAllowed System.Func{System.String,System.Boolean} = null
- Delegate used to determine if null session access is allowed.
- enumerateDcs System.Func{System.Collections.Generic.IEnumerable{System.String}} = null
- Delegate used to enumerate domain controllers.
Methods
public virtual Boolean IsAnonymousSamAllowed(String dcName) #Returns:
BooleanDetermines whether anonymous SAM enumeration is allowed on the specified domain controller.
Parameters
- dcName System.String
- Domain controller name.
Returns
true when anonymous SAM is allowed.
public virtual Boolean IsNullSessionAllowed(String dcName) #Returns:
BooleanDetermines whether null session access is allowed on the specified domain controller.
Parameters
- dcName System.String
- Domain controller name.
Returns
true when null session access is allowed.
public virtual Void ValidateDc(String dcName) #Returns:
VoidEmits warnings when insecure anonymous access is enabled on the domain controller.
Parameters
- dcName System.String
- Domain controller name.