mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Do Kerberos authentication only if we got HAVE_KRB5
SVN revision: 2367
This commit is contained in:
parent
119c411b9c
commit
073623772d
@ -216,8 +216,11 @@ int auth_verify_password(LOGBOOK *lbs, const char *user, const char *password, c
|
||||
|
||||
error_str[0] = 0;
|
||||
getcfg(lbs->name, "Authentication", str, sizeof(str));
|
||||
|
||||
#ifdef HAVE_KRB5
|
||||
if (stricmp(str, "Kerberos") == 0)
|
||||
return auth_verify_password_krb5(lbs, user, password, error_str, error_size);
|
||||
#endif
|
||||
|
||||
return auth_verify_password_file(lbs, user, password, error_str, error_size);
|
||||
}
|
||||
@ -228,8 +231,11 @@ int auth_change_password(LOGBOOK *lbs, const char *user, const char *old_pwd, co
|
||||
|
||||
error_str[0] = 0;
|
||||
getcfg(lbs->name, "Authentication", str, sizeof(str));
|
||||
|
||||
#ifdef HAVE_KRB5
|
||||
if (stricmp(str, "Kerberos") == 0)
|
||||
return auth_change_password_krb5(lbs, user, old_pwd, new_pwd, error_str, error_size);
|
||||
#endif
|
||||
|
||||
return auth_change_password_file(lbs, user, old_pwd, new_pwd, error_str, error_size);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user