< Summary

Class:SharpHoundCommonLib.LDAPConfig
Assembly:SharpHoundCommonLib
File(s):D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\LDAPConfig.cs
Covered lines:8
Uncovered lines:3
Coverable lines:11
Total lines:21
Line coverage:72.7% (8 of 11)
Covered branches:0
Total branches:4
Branch coverage:0% (0 of 4)

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
GetPort()0%400%

File(s)

D:\a\SharpHoundCommon\SharpHoundCommon\src\CommonLib\LDAPConfig.cs

#LineLine coverage
 1using System.DirectoryServices.Protocols;
 2
 3namespace SharpHoundCommonLib
 4{
 5    public class LDAPConfig
 6    {
 1027        public string Username { get; set; } = null;
 648        public string Password { get; set; } = null;
 699        public string Server { get; set; } = null;
 6410        public int Port { get; set; } = 0;
 6411        public bool SSL { get; set; } = false;
 6412        public bool DisableSigning { get; set; } = false;
 6413        public bool DisableCertVerification { get; set; } = false;
 6914        public AuthType AuthType { get; set; } = AuthType.Kerberos;
 15
 16        public int GetPort()
 017        {
 018            return Port == 0 ? SSL ? 636 : 389 : Port;
 019        }
 20    }
 21}