Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvand committed Mar 13, 2019
1 parent e7c3d8a commit 2c7b0de
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions LDAPCP/LDAPCP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1167,12 +1167,6 @@ protected virtual List<SPClaim> GetGroupsFromActiveDirectory(LDAPConnection ldap
{
List<SPClaim> groups = new List<SPClaim>();
string path = ldapConnection.Path;
if (ldapConnection.UserServerDirectoryEntry)
{
DirectoryEntry de = Domain.GetComputerDomain().GetDirectoryEntry();
path = de.Path;
de.Dispose();
}
string loggingMessage = $"[{ProviderInternalName}] Augmentation of user {currentContext.IncomingEntity.Value} in AD server \"{path}\" with AuthenticationType \"{ldapConnection.AuthenticationTypes}\" and authenticating ";
loggingMessage += ldapConnection.UserServerDirectoryEntry ? "as process identity" : $"with credentials \"{ldapConnection.Username}\"";
ClaimsProviderLogging.Log(loggingMessage, TraceSeverity.Verbose, EventSeverity.Information, TraceCategory.Augmentation);
Expand Down

0 comments on commit 2c7b0de

Please sign in to comment.