Skip Menu |
 

From: austinj@mit.edu
Subject: SVN Commit
Applying Apple patch:
AJ-5242016_kinit_should_not_fail_when_krb5conf_is_missing.patch

kinit fails if the krb5 config file is missing. This should not happen if DNS can be used to configure Kerberos.

Commit By: austinj



Revision: 19765
Changed Files:
U users/austinj/kinit_should_not_fail_when_krb5conf_is_missing/src/util/profile/prof_init.c
Subject: kinit should not fail when krb5 is missing
Patch from Apple to allow the "no config file" case. Necessary for zero-config support.
Only in ./KerberosFramework/Kerberos5/Sources/lib/krb5/os: .init_os_ctx.c.swp
diff -ur ../Kerberos.orig/KerberosFramework/Kerberos5/Sources/util/profile/prof_init.c ./KerberosFramework/Kerberos5/Sources/util/profile/prof_init.c
--- ../Kerberos.orig/KerberosFramework/Kerberos5/Sources/util/profile/prof_init.c 2007-03-28 13:07:50.000000000 -0700
+++ ./KerberosFramework/Kerberos5/Sources/util/profile/prof_init.c 2007-06-21 16:38:53.000000000 -0700
@@ -34,8 +34,11 @@
memset(profile, 0, sizeof(struct _profile_t));
profile->magic = PROF_MAGIC_PROFILE;

- /* if the filenames list is not specified return an empty profile */
- if ( files ) {
+ /*
+ * If the filenames list is not specified or empty, return an empty
+ * profile.
+ */
+ if ( files && !PROFILE_LAST_FILESPEC(*files) ) {
for (fs = files; !PROFILE_LAST_FILESPEC(*fs); fs++) {
retval = profile_open_file(*fs, &new_file);
/* if this file is missing, skip to the next */
Only in .: cscope.out
From: tlyu@mit.edu
Subject: SVN Commit

Apply patch from Apple to handle missing krb5.conf for zeroconf
situations.


Commit By: tlyu



Revision: 20509
Changed Files:
_U trunk/
U trunk/src/util/profile/prof_init.c
From: tlyu@mit.edu
Subject: SVN Commit

pull up r20509 from trunk

r20509@cathode-dark-space: tlyu | 2008-07-09 22:04:03 -0400
ticket: 5632

Apply patch from Apple to handle missing krb5.conf for zeroconf
situations.




Commit By: tlyu



Revision: 20518
Changed Files:
_U branches/krb5-1-6/
U branches/krb5-1-6/src/util/profile/prof_init.c