| | 1 | | using System.DirectoryServices.Protocols; |
| | 2 | |
|
| | 3 | | namespace SharpHoundCommonLib |
| | 4 | | { |
| | 5 | | public class LDAPConfig |
| | 6 | | { |
| 102 | 7 | | public string Username { get; set; } = null; |
| 64 | 8 | | public string Password { get; set; } = null; |
| 69 | 9 | | public string Server { get; set; } = null; |
| 64 | 10 | | public int Port { get; set; } = 0; |
| 64 | 11 | | public bool SSL { get; set; } = false; |
| 64 | 12 | | public bool DisableSigning { get; set; } = false; |
| 64 | 13 | | public bool DisableCertVerification { get; set; } = false; |
| 69 | 14 | | public AuthType AuthType { get; set; } = AuthType.Kerberos; |
| | 15 | |
|
| | 16 | | public int GetPort() |
| 0 | 17 | | { |
| 0 | 18 | | return Port == 0 ? SSL ? 636 : 389 : Port; |
| 0 | 19 | | } |
| | 20 | | } |
| | 21 | | } |