1
0
mirror of https://github.com/bitwarden/directory-connector synced 2025-12-18 01:03:22 +00:00

tweaks for ldap

This commit is contained in:
Kyle Spearrin
2017-05-17 16:35:24 -04:00
parent 203876a527
commit 4b6b2884cb
4 changed files with 64 additions and 19 deletions

View File

@@ -21,8 +21,14 @@ namespace Bit.Core.Models
public DirectoryEntry GetDirectoryEntry()
{
var entry = new DirectoryEntry(ServerPath, Username, Password.DecryptToString(), AuthenticationTypes.None);
return entry;
if(Password == null && string.IsNullOrWhiteSpace(Username))
{
return new DirectoryEntry(ServerPath);
}
else
{
return new DirectoryEntry(ServerPath, Username, Password.DecryptToString(), AuthenticationTypes.None);
}
}
}
}