outposts/ldap: add sAMAccountName field for compatibility

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-09 21:00:02 +02:00
parent 281a460960
commit 1f821521c6
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ func (pi *ProviderInstance) UserEntry(u api.User) *ldap.Entry {
Name: "cn", Name: "cn",
Values: []string{u.Username}, Values: []string{u.Username},
}, },
{
Name: "sAMAccountName",
Values: []string{u.Username},
},
{ {
Name: "uid", Name: "uid",
Values: []string{u.Uid}, Values: []string{u.Uid},