Skip to content

Commit 4e9843a

Browse files
committed
Fix login name from options.
1 parent d816904 commit 4e9843a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Visus.DirectoryAuthentication/Services/LdapConnectionService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public LdapConnectionService(IOptions<LdapOptions> options,
4646
#region Public methods
4747
/// <inheritdoc />
4848
public LdapConnection Connect(LdapOptions options)
49-
=> this.Connect(null,
50-
null,
49+
=> this.Connect(options?.User,
50+
options?.Password,
5151
options ?? throw new ArgumentNullException(nameof(options)));
5252

5353
/// <inheritdoc />

Visus.DirectoryAuthentication/Visus.DirectoryAuthentication.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Updated dependencies.</PackageReleaseNotes>
1818
<NeutralLanguage>en</NeutralLanguage>
1919
<UserSecretsId>e07a7441-ba97-46b5-9ce1-391f2c978578</UserSecretsId>
2020
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
21-
<Version>2.3.0</Version>
21+
<Version>2.3.1</Version>
2222
<Nullable>enable</Nullable>
2323
</PropertyGroup>
2424

Visus.LdapAuthentication/Services/LdapConnectionService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public LdapConnectionService(IOptions<LdapOptions> options,
4646
#region Public methods
4747
/// <inheritdoc />
4848
public LdapConnection Connect(LdapOptions options)
49-
=> this.Connect(null,
50-
null,
49+
=> this.Connect(options?.User,
50+
options?.Password,
5151
options ?? throw new ArgumentNullException(nameof(options)));
5252

5353
/// <inheritdoc />

Visus.LdapAuthentication/Visus.LdapAuthentication.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<RepositoryUrl>https://github.com/UniStuttgart-VISUS/Visus.LdapAuthentication</RepositoryUrl>
1414
<PackageTags>ldap aspnet authentication net5</PackageTags>
1515
<NeutralLanguage>en</NeutralLanguage>
16-
<Version>2.3.0</Version>
16+
<Version>2.3.1</Version>
1717
<PackageReleaseNotes>Added support for fluent mapping.
1818
Improved performance of group mapping.
1919
Updated dependencies.</PackageReleaseNotes>

0 commit comments

Comments
 (0)