You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnerrors.New("Kerberos configuration file not found. Please ensure krb5 configuration file is properly configured")
176
+
returnerrors.New("Kerberos proxy authentication setup failed because no valid Kerberos config file was found. Please ensure that a properly configured krb5.conf/krb5.ini file is available at the specified location.")
178
177
}
179
178
180
179
// Load krb5.conf to validate it's readable
181
-
_, err:=config.Load(krb5ConfPath)
180
+
krb5cfg, err:=config.Load(krb5ConfPath)
182
181
iferr!=nil {
183
-
returnerrors.New("failed to load Kerberos configuration. Please check the krb5 configuration file")
182
+
returnerrors.New("Kerberos proxy authentication setup failed because no valid Kerberos config file was found. Please ensure that a properly configured krb5.conf/krb5.ini file is available at the specified location.")
184
183
}
185
184
186
185
// Get default credential cache path if not specified
returnerrors.New("Kerberos credential cache not found. Please run 'kinit' to obtain Kerberos tickets first")
193
+
returnerrors.New("Kerberos proxy authentication setup failed because no Kerberos credential cache was found. Make sure to run 'kinit' to populate the cache before running this command.")
195
194
}
196
195
}
197
196
198
197
// Try to load credential cache to validate it's usable
199
198
cc, err:=credentials.LoadCCache(ccachePath)
200
199
iferr!=nil {
201
-
returnerrors.New("failed to load Kerberos credential cache. Please run 'kinit' to obtain valid Kerberos tickets")
202
-
}
203
-
204
-
// Try to create Kerberos client to validate tickets are valid
205
-
krb5cfg, err:=config.Load(krb5ConfPath)
206
-
iferr!=nil {
207
-
returnerrors.New("failed to reload Kerberos configuration")
200
+
returnerrors.New("Kerberos proxy authentication setup failed because no Kerberos credential cache was found. Make sure to run 'kinit' to populate the cache before running this command.")
208
201
}
209
202
210
203
_, err=client.NewFromCCache(cc, krb5cfg)
211
204
iferr!=nil {
212
-
returnerrors.New("failed to create Kerberos client. Please check your Kerberos tickets with 'klist'")
205
+
returnerrors.New("Failed to create Kerberos client. Please check your Kerberos tickets with 'klist'")
0 commit comments