Skip to content

Commit 031b4e8

Browse files
author
Gregory House
committed
CN replaced with UID (Username)
1 parent b770b11 commit 031b4e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/auth/ldap.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ func AuthenticateUser(username, password, searchbase string) bool {
6161

6262
/* Searching by username */
6363
/* for uid -> fmt.Sprintf("(uid=%s)", username), */
64-
fmt.Sprintf("(cn=%s)", username),
64+
// fmt.Sprintf("(cn=%s)", username),
65+
fmt.Sprintf("(uid=%s)", username),
6566

6667
/* We only need the DN */
6768
[]string{"dn"},

0 commit comments

Comments
 (0)