Browse Source

Fixed erroneous assignment of ldapUserIdentityAttribute instead of ldapUserFullName

pull/4/head
ingo.junefjord 5 years ago
parent
commit
54360cca8d
  1. 2
      gitea-group-sync.go

2
gitea-group-sync.go

@ -160,7 +160,7 @@ func mainJob() {
ldapUserFullName = "sn" //change to cn if you need it ldapUserFullName = "sn" //change to cn if you need it
log.Println("By default LDAP_USER_FULL_NAME = 'sn'") log.Println("By default LDAP_USER_FULL_NAME = 'sn'")
} else { } else {
ldapUserIdentityAttribute = os.Getenv("LDAP_USER_FULL_NAME") ldapUserFullName = os.Getenv("LDAP_USER_FULL_NAME")
} }


var l *ldap.Conn var l *ldap.Conn

Loading…
Cancel
Save