Skip to content

Commit 5385318

Browse files
PythonHacker24Gregory House
authored andcommitted
CN replaced with UID (Username)
1 parent 8541a10 commit 5385318

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)