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.confis properly configured")
179
+
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.")
192
180
}
193
181
194
182
// Load krb5.conf to validate it's readable
195
-
_, err:=config.Load(krb5ConfPath)
183
+
krb5cfg, err:=config.Load(krb5ConfPath)
196
184
iferr!=nil {
197
-
returnerrors.New("failed to load Kerberos configuration. Please check the krb5.conf file")
185
+
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.")
198
186
}
199
187
200
188
// Get default credential cache path if not specified
returnerrors.New("Kerberos credential cache not found. Please run 'kinit' to obtain Kerberos tickets first")
196
+
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.")
209
197
}
210
198
}
211
199
212
200
// Try to load credential cache to validate it's usable
213
201
cc, err:=credentials.LoadCCache(ccachePath)
214
202
iferr!=nil {
215
-
returnerrors.New("failed to load Kerberos credential cache. Please run 'kinit' to obtain valid Kerberos tickets")
216
-
}
217
-
218
-
// Try to create Kerberos client to validate tickets are valid
219
-
krb5cfg, err:=config.Load(krb5ConfPath)
220
-
iferr!=nil {
221
-
returnerrors.New("failed to reload Kerberos configuration")
203
+
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.")
222
204
}
223
205
224
206
_, err=client.NewFromCCache(cc, krb5cfg)
225
207
iferr!=nil {
226
-
returnerrors.New("failed to create Kerberos client. Please check your Kerberos tickets with 'klist'")
208
+
returnerrors.New("Failed to create Kerberos client. Please check your Kerberos tickets with 'klist'")
0 commit comments