Ticket #6475: 002-krb5kdc-dir-to-etc.patch

File 002-krb5kdc-dir-to-etc.patch, 2.1 KB (added by W. Michael Petullo <mike@…>, 8 years ago)

Patch against krb5 source code to move persistent database to /etc

  • src/include/osconf.hin

    diff -u --recursive krb5-1.7-vanilla/src/include/osconf.hin krb5-1.7/src/include/osconf.hin
    old new  
    6161#define DEFAULT_LNAME_FILENAME  "@PREFIX/lib/krb5.aname" 
    6262#endif /* _WINDOWS  */ 
    6363 
    64 #define DEFAULT_KDB_FILE        "@LOCALSTATEDIR/krb5kdc/principal" 
    65 #define DEFAULT_KEYFILE_STUB    "@LOCALSTATEDIR/krb5kdc/.k5." 
    66 #define KRB5_DEFAULT_ADMIN_ACL  "@LOCALSTATEDIR/krb5kdc/krb5_adm.acl" 
     64#define DEFAULT_KDB_FILE        "/etc/krb5kdc/principal" 
     65#define DEFAULT_KEYFILE_STUB    "/etc/krb5kdc/.k5." 
     66#define KRB5_DEFAULT_ADMIN_ACL  "/etc/krb5kdc/krb5_adm.acl" 
    6767/* Used by old admin server */ 
    68 #define DEFAULT_ADMIN_ACL       "@LOCALSTATEDIR/krb5kdc/kadm_old.acl" 
     68#define DEFAULT_ADMIN_ACL       "/etc/krb5kdc/kadm_old.acl" 
    6969 
    7070/* Location of KDC profile */ 
    71 #define DEFAULT_KDC_PROFILE     "@LOCALSTATEDIR/krb5kdc/kdc.conf" 
     71#define DEFAULT_KDC_PROFILE     "/etc/krb5kdc/kdc.conf" 
    7272#define KDC_PROFILE_ENV         "KRB5_KDC_PROFILE" 
    7373 
    7474#if TARGET_OS_MAC 
     
    9797/* 
    9898 * Defaults for the KADM5 admin system. 
    9999 */ 
    100 #define DEFAULT_KADM5_KEYTAB    "@LOCALSTATEDIR/krb5kdc/kadm5.keytab" 
    101 #define DEFAULT_KADM5_ACL_FILE  "@LOCALSTATEDIR/krb5kdc/kadm5.acl" 
     100#define DEFAULT_KADM5_KEYTAB    "/etc/krb5kdc/kadm5.keytab" 
     101#define DEFAULT_KADM5_ACL_FILE  "/etc/krb5kdc/kadm5.acl" 
    102102#define DEFAULT_KADM5_PORT      749 /* assigned by IANA */ 
    103103 
    104104#define KRB5_DEFAULT_SUPPORTED_ENCTYPES                 \ 
     
    123123 * krb5 slave support follows 
    124124 */ 
    125125 
    126 #define KPROP_DEFAULT_FILE "@LOCALSTATEDIR/krb5kdc/slave_datatrans" 
    127 #define KPROPD_DEFAULT_FILE "@LOCALSTATEDIR/krb5kdc/from_master" 
     126#define KPROP_DEFAULT_FILE "/etc/krb5kdc/slave_datatrans" 
     127#define KPROPD_DEFAULT_FILE "/etc/krb5kdc/from_master" 
    128128#define KPROPD_DEFAULT_KDB5_UTIL "@SBINDIR/kdb5_util" 
    129129#define KPROPD_DEFAULT_KDB5_EDIT "@SBINDIR/kdb5_edit" 
    130130#define KPROPD_DEFAULT_KPROP "@SBINDIR/kprop" 
    131131#define KPROPD_DEFAULT_KRB_DB DEFAULT_KDB_FILE 
    132 #define KPROPD_ACL_FILE "@LOCALSTATEDIR/krb5kdc/kpropd.acl" 
     132#define KPROPD_ACL_FILE "/etc/krb5kdc/kpropd.acl" 
    133133 
    134134/* 
    135135 * GSS mechglue