diff --git a/.gitignore b/.gitignore index 98b8228..e2a5b73 100644 --- a/.gitignore +++ b/.gitignore @@ -428,7 +428,7 @@ PublishScripts/ *.nuget.targets # Nuget personal access tokens and Credentials -nuget.config +#nuget.config # Microsoft Azure Build Output csx/ diff --git a/Sharphound.csproj b/Sharphound.csproj index cee86b2..842c76b 100644 --- a/Sharphound.csproj +++ b/Sharphound.csproj @@ -24,15 +24,16 @@ - + + - + - + diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..21f2f07 --- /dev/null +++ b/nuget.config @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/Producers/LdapProducer.cs b/src/Producers/LdapProducer.cs index 6d712ef..78feaf4 100644 --- a/src/Producers/LdapProducer.cs +++ b/src/Producers/LdapProducer.cs @@ -31,6 +31,12 @@ public override async Task Produce() var log = Context.Logger; var utils = Context.LDAPUtils; + if (Context.Flags.CollectAllProperties) + { + log.LogDebug("CollectAllProperties set. Changing LDAP properties to *"); + ldapData.Props = new[] { "*" }; + } + foreach (var domain in Context.Domains) { Context.Logger.LogInformation("Beginning LDAP search for {Domain}", domain); diff --git a/src/Runtime/ObjectProcessors.cs b/src/Runtime/ObjectProcessors.cs index 45e4723..3282a68 100644 --- a/src/Runtime/ObjectProcessors.cs +++ b/src/Runtime/ObjectProcessors.cs @@ -10,6 +10,9 @@ using SharpHoundCommonLib.Enums; using SharpHoundCommonLib.OutputTypes; using SharpHoundCommonLib.Processors; +using Container = SharpHoundCommonLib.OutputTypes.Container; +using Group = SharpHoundCommonLib.OutputTypes.Group; +using Label = SharpHoundCommonLib.Enums.Label; namespace Sharphound.Runtime {