Skip to content

Commit 7158ea1

Browse files
committed
few more improvements
1 parent 1e7613a commit 7158ea1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ADEffectiveAccess/DirectoryEntryBuilder.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ internal DirectoryEntry Create(string? server = null, string? searchBase = null)
4141
_ => $"LDAP://{server}/{searchBase}"
4242
};
4343

44-
return new(path, _username, _password, _authenticationTypes);
44+
return path is null
45+
? RootEntry
46+
: new DirectoryEntry(path, _username, _password, _authenticationTypes);
4547
}
4648

4749
public void Dispose()

0 commit comments

Comments
 (0)