mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-22 02:00:03 +02:00
ldap support
This commit is contained in:
parent
8bab21d795
commit
79ea34e70e
11 changed files with 287 additions and 15 deletions
|
@ -30,7 +30,7 @@ func LoginUserLdap(name, passwd string) (*User, error) {
|
|||
Email: mail}
|
||||
_, err := RegisterUser(&user)
|
||||
if err != nil {
|
||||
log.Debug("LDAP local user %s fond (%s) ", name, err)
|
||||
log.Debug("LDAP local user %s found (%s) ", name, err)
|
||||
}
|
||||
// simulate local user login
|
||||
localUser, err2 := GetUserByName(user.Name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue