mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-06 02:58:04 +02:00
commit
3871a01a96
@ -35,8 +35,8 @@ type Auth struct{}
|
|||||||
|
|
||||||
const metaChars = "&|!=~*<>()"
|
const metaChars = "&|!=~*<>()"
|
||||||
|
|
||||||
// Authenticate checks user's credential agains LDAP based on basedn template and LDAP URL,
|
// Authenticate checks user's credential against LDAP based on basedn template and LDAP URL,
|
||||||
// if the check is successful a dummy record will be insert into DB, such that this user can
|
// if the check is successful a dummy record will be inserted into DB, such that this user can
|
||||||
// be associated to other entities in the system.
|
// be associated to other entities in the system.
|
||||||
func (l *Auth) Authenticate(m models.AuthModel) (*models.User, error) {
|
func (l *Auth) Authenticate(m models.AuthModel) (*models.User, error) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user