Hi Team,
Recently I updated Gerrit from 3.2.6 to 3.4.3, I found the following errors in error_log.
The weird, thing is I did not configure GSSAPI for Gerrit
[2022-03-18T07:18:18.026Z] [sshd-JGitSshClient[ddcbe34]-nio2-thread-7] WARN org.eclipse.jgit.internal.transport.sshd.GssApiWithMicAuthentication : GSS-API error for mechanism OID 1.2.840.113554.1.2.2
GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
The following are the LDAP and auth sections in Gerrit.config
[ldap]
accountFullName = cn
accountPattern = (&(objectClass=person)(uid=${username}))
accountBase = ou=Users,dc=xxxx,dc=com
server = ldap://
ldap.xxxx.xxxx.com groupBase = ou=Groups,dc=xxxx,dc=com
groupPattern = (&(objectClass=posixGroup)(cn=${groupname}))
[auth]
type = HTTP_LDAP
httpHeader = REMOTE_USER
The following is the authentication part for apache
<Location /gerrit/login/>
AuthType GSSAPI
AuthName "XXXX Kerberos login"
GssapiSSLonly On
GssapiBasicAuth Off
GssapiCredStore keytab:/etc/httpd/conf/httpd.keytab
GssapiLocalName On
Session On
SessionCookieName gerrit_gssapi_session path=/private;httponly;secure;
Require valid-user
</Location>
Is there anybody know why our gerrit looks like this?