From 54360cca8dcf28214f7068586363eba8868ba71e Mon Sep 17 00:00:00 2001 From: "ingo.junefjord" Date: Fri, 5 Jun 2020 15:27:53 +0200 Subject: [PATCH] Fixed erroneous assignment of ldapUserIdentityAttribute instead of ldapUserFullName --- gitea-group-sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitea-group-sync.go b/gitea-group-sync.go index 7f2ff70..5fe8051 100644 --- a/gitea-group-sync.go +++ b/gitea-group-sync.go @@ -160,7 +160,7 @@ func mainJob() { ldapUserFullName = "sn" //change to cn if you need it log.Println("By default LDAP_USER_FULL_NAME = 'sn'") } else { - ldapUserIdentityAttribute = os.Getenv("LDAP_USER_FULL_NAME") + ldapUserFullName = os.Getenv("LDAP_USER_FULL_NAME") } var l *ldap.Conn