core: add user UID to API

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-05-05 11:48:16 +02:00
parent 2cad9a3d07
commit 446f104c90
3 changed files with 8 additions and 2 deletions

View File

@ -4,7 +4,6 @@ import (
"errors"
"fmt"
"net"
"strconv"
"strings"
"github.com/nmcclain/ldap"
@ -79,7 +78,7 @@ func (pi *ProviderInstance) Search(bindDN string, searchReq ldap.SearchRequest,
},
{
Name: "uid",
Values: []string{strconv.Itoa(int(u.Pk))},
Values: []string{u.UID},
},
{
Name: "name",