+2002-01-08 Sam Hartman <hartmans@mit.edu>
+
+ * ovsec_kadmd.c (main): Get random data from /dev/random
+ (main): If we can't set gssapi names, hint that the keytab might be at fault
+
2001-10-26 Ezra Peisach <epeisach@mit.edu>
* schpw.c (process_chpw_request): Use GETSOCKNAME_ARG3_TYPE
krb5_klog_init(context, "admin_server", whoami, 1);
+
+ krb5_klog_syslog(LOG_INFO, "Seeding random number generator");
+ ret = krb5_c_random_os_entropy(context, 1, NULL);
+ if(ret) {
+ krb5_klog_syslog(LOG_ERR, "Error getting random seed: %s, aborting",
+ error_message(ret));
+ exit(1);
+ }
+
if((ret = kadm5_init("kadmind", NULL,
NULL, ¶ms,
KADM5_STRUCT_VERSION,
oldnames++;
if (!oldnames && _svcauth_gssapi_set_names(names, 2) == FALSE) {
krb5_klog_syslog(LOG_ERR,
- "Cannot set GSS-API authentication names, "
+ "Cannot set GSS-API authentication names (keytab not present?), "
"failing.");
fprintf(stderr, "%s: Cannot set GSS-API authentication names.\n",
whoami);