krb5: Allow login with email address
This commit is contained in:
parent
6323d96b60
commit
ebd09e8270
@ -64,6 +64,8 @@ func checkAuthKrb5(c *gin.Context) {
|
||||
cnf.LibDefaults.DefaultTktEnctypeIDs = parseETypes(cnf.LibDefaults.DefaultTktEnctypes, cnf.LibDefaults.AllowWeakCrypto)
|
||||
cnf.LibDefaults.PermittedEnctypeIDs = parseETypes(cnf.LibDefaults.PermittedEnctypes, cnf.LibDefaults.AllowWeakCrypto)
|
||||
|
||||
lf.Login = strings.TrimSuffix(lf.Login, "@epita.fr")
|
||||
|
||||
cl := client.NewWithPassword(lf.Login, "CRI.EPITA.FR", lf.Password, cnf)
|
||||
if err := cl.Login(); err != nil {
|
||||
if errk, ok := err.(krberror.Krberror); ok {
|
||||
|
Reference in New Issue
Block a user