Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions src/CommonLib/Processors/LdapPropertyProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,21 @@
ret["whencreated"] = Helpers.ConvertTimestampToUnixEpoch(wc);
}

if (entry.TryGetByteProperty(LDAPProperties.objectguid, out var objectguid)) {

Check failure on line 56 in src/CommonLib/Processors/LdapPropertyProcessor.cs

View workflow job for this annotation

GitHub Actions / build

'LDAPProperties' does not contain a definition for 'objectguid'

Check failure on line 56 in src/CommonLib/Processors/LdapPropertyProcessor.cs

View workflow job for this annotation

GitHub Actions / build

'LDAPProperties' does not contain a definition for 'objectguid'
if (objectguid != null && objectguid.Length == 16)
{
try
{
Guid guid = new Guid(objectguid);
ret["objectguid"](LDAPProperties.ObjectGUID, guid.ToString().ToUpper());

Check failure on line 62 in src/CommonLib/Processors/LdapPropertyProcessor.cs

View workflow job for this annotation

GitHub Actions / build

Method name expected

Check failure on line 62 in src/CommonLib/Processors/LdapPropertyProcessor.cs

View workflow job for this annotation

GitHub Actions / build

Method name expected
}
Comment thread
StephenHinck marked this conversation as resolved.
Outdated
catch
{
// Skip malformed GUID bytes
}
}
}

return ret;
}

Expand Down Expand Up @@ -441,20 +456,6 @@
}
}

var objectGuidBytes = entry.GetByteProperty(LDAPProperties.ObjectGUID);
if (objectGuidBytes != null && objectGuidBytes.Length == 16)
{
try
{
Guid guid = new Guid(objectGuidBytes);
props.Add(LDAPProperties.ObjectGUID, guid.ToString().ToUpper());
}
catch
{
// Skip malformed GUID bytes
}
}

compProps.DumpSMSAPassword = smsaPrincipals.ToArray();

compProps.Props = props;
Expand Down
Loading