require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&__KADM5_ADMIN_H__)) {
    eval 'sub __KADM5_ADMIN_H__ () {1;}' unless defined(&__KADM5_ADMIN_H__);
    eval 'sub KADM5_API_VERSION_1 () {1;}' unless defined(&KADM5_API_VERSION_1);
    eval 'sub KADM5_API_VERSION_2 () {2;}' unless defined(&KADM5_API_VERSION_2);
    unless(defined(&USE_KADM5_API_VERSION)) {
	eval 'sub USE_KADM5_API_VERSION () { &KADM5_API_VERSION_2;}' unless defined(&USE_KADM5_API_VERSION);
    }
    if((defined(&USE_KADM5_API_VERSION) ? &USE_KADM5_API_VERSION : 0) != (defined(&KADM5_API_VERSION_2) ? &KADM5_API_VERSION_2 : 0)) {
	die("No\ support\ for\ API\ versions\ other\ than\ 2");
    }
    eval 'sub KADM5_STRUCT_VERSION () {0;}' unless defined(&KADM5_STRUCT_VERSION);
    require 'krb5.ph';
    eval 'sub KRB5_KDB_DISALLOW_POSTDATED () {0x1;}' unless defined(&KRB5_KDB_DISALLOW_POSTDATED);
    eval 'sub KRB5_KDB_DISALLOW_FORWARDABLE () {0x2;}' unless defined(&KRB5_KDB_DISALLOW_FORWARDABLE);
    eval 'sub KRB5_KDB_DISALLOW_TGT_BASED () {0x4;}' unless defined(&KRB5_KDB_DISALLOW_TGT_BASED);
    eval 'sub KRB5_KDB_DISALLOW_RENEWABLE () {0x8;}' unless defined(&KRB5_KDB_DISALLOW_RENEWABLE);
    eval 'sub KRB5_KDB_DISALLOW_PROXIABLE () {0x10;}' unless defined(&KRB5_KDB_DISALLOW_PROXIABLE);
    eval 'sub KRB5_KDB_DISALLOW_DUP_SKEY () {0x20;}' unless defined(&KRB5_KDB_DISALLOW_DUP_SKEY);
    eval 'sub KRB5_KDB_DISALLOW_ALL_TIX () {0x40;}' unless defined(&KRB5_KDB_DISALLOW_ALL_TIX);
    eval 'sub KRB5_KDB_REQUIRES_PRE_AUTH () {0x80;}' unless defined(&KRB5_KDB_REQUIRES_PRE_AUTH);
    eval 'sub KRB5_KDB_REQUIRES_HW_AUTH () {0x100;}' unless defined(&KRB5_KDB_REQUIRES_HW_AUTH);
    eval 'sub KRB5_KDB_REQUIRES_PWCHANGE () {0x200;}' unless defined(&KRB5_KDB_REQUIRES_PWCHANGE);
    eval 'sub KRB5_KDB_DISALLOW_SVR () {0x1000;}' unless defined(&KRB5_KDB_DISALLOW_SVR);
    eval 'sub KRB5_KDB_PWCHANGE_SERVICE () {0x2000;}' unless defined(&KRB5_KDB_PWCHANGE_SERVICE);
    eval 'sub KRB5_KDB_SUPPORT_DESMD5 () {0x4000;}' unless defined(&KRB5_KDB_SUPPORT_DESMD5);
    eval 'sub KRB5_KDB_NEW_PRINC () {0x8000;}' unless defined(&KRB5_KDB_NEW_PRINC);
    eval 'sub KRB5_KDB_OK_AS_DELEGATE () {0x10000;}' unless defined(&KRB5_KDB_OK_AS_DELEGATE);
    eval 'sub KADM5_PRINCIPAL () {0x1;}' unless defined(&KADM5_PRINCIPAL);
    eval 'sub KADM5_PRINC_EXPIRE_TIME () {0x2;}' unless defined(&KADM5_PRINC_EXPIRE_TIME);
    eval 'sub KADM5_PW_EXPIRATION () {0x4;}' unless defined(&KADM5_PW_EXPIRATION);
    eval 'sub KADM5_LAST_PWD_CHANGE () {0x8;}' unless defined(&KADM5_LAST_PWD_CHANGE);
    eval 'sub KADM5_ATTRIBUTES () {0x10;}' unless defined(&KADM5_ATTRIBUTES);
    eval 'sub KADM5_MAX_LIFE () {0x20;}' unless defined(&KADM5_MAX_LIFE);
    eval 'sub KADM5_MOD_TIME () {0x40;}' unless defined(&KADM5_MOD_TIME);
    eval 'sub KADM5_MOD_NAME () {0x80;}' unless defined(&KADM5_MOD_NAME);
    eval 'sub KADM5_KVNO () {0x100;}' unless defined(&KADM5_KVNO);
    eval 'sub KADM5_MKVNO () {0x200;}' unless defined(&KADM5_MKVNO);
    eval 'sub KADM5_AUX_ATTRIBUTES () {0x400;}' unless defined(&KADM5_AUX_ATTRIBUTES);
    eval 'sub KADM5_POLICY () {0x800;}' unless defined(&KADM5_POLICY);
    eval 'sub KADM5_POLICY_CLR () {0x1000;}' unless defined(&KADM5_POLICY_CLR);
    eval 'sub KADM5_MAX_RLIFE () {0x2000;}' unless defined(&KADM5_MAX_RLIFE);
    eval 'sub KADM5_LAST_SUCCESS () {0x4000;}' unless defined(&KADM5_LAST_SUCCESS);
    eval 'sub KADM5_LAST_FAILED () {0x8000;}' unless defined(&KADM5_LAST_FAILED);
    eval 'sub KADM5_FAIL_AUTH_COUNT () {0x10000;}' unless defined(&KADM5_FAIL_AUTH_COUNT);
    eval 'sub KADM5_KEY_DATA () {0x20000;}' unless defined(&KADM5_KEY_DATA);
    eval 'sub KADM5_TL_DATA () {0x40000;}' unless defined(&KADM5_TL_DATA);
    eval 'sub KADM5_PRINCIPAL_NORMAL_MASK () {(~( &KADM5_KEY_DATA |  &KADM5_TL_DATA));}' unless defined(&KADM5_PRINCIPAL_NORMAL_MASK);
    eval 'sub KADM5_PW_MAX_LIFE () {0x4000;}' unless defined(&KADM5_PW_MAX_LIFE);
    eval 'sub KADM5_PW_MIN_LIFE () {0x8000;}' unless defined(&KADM5_PW_MIN_LIFE);
    eval 'sub KADM5_PW_MIN_LENGTH () {0x10000;}' unless defined(&KADM5_PW_MIN_LENGTH);
    eval 'sub KADM5_PW_MIN_CLASSES () {0x20000;}' unless defined(&KADM5_PW_MIN_CLASSES);
    eval 'sub KADM5_PW_HISTORY_NUM () {0x40000;}' unless defined(&KADM5_PW_HISTORY_NUM);
    eval 'sub KADM5_REF_COUNT () {0x80000;}' unless defined(&KADM5_REF_COUNT);
    eval 'sub KADM5_POLICY_NORMAL_MASK () {(~0);}' unless defined(&KADM5_POLICY_NORMAL_MASK);
    eval 'sub KADM5_ADMIN_SERVICE () {"kadmin/admin";}' unless defined(&KADM5_ADMIN_SERVICE);
    eval 'sub KADM5_HIST_PRINCIPAL () {"kadmin/history";}' unless defined(&KADM5_HIST_PRINCIPAL);
    eval 'sub KADM5_CHANGEPW_SERVICE () {"kadmin/changepw";}' unless defined(&KADM5_CHANGEPW_SERVICE);
    eval 'sub KRB5_TL_LAST_PWD_CHANGE () {0x1;}' unless defined(&KRB5_TL_LAST_PWD_CHANGE);
    eval 'sub KRB5_TL_MOD_PRINC () {0x2;}' unless defined(&KRB5_TL_MOD_PRINC);
    eval 'sub KRB5_TL_KADM_DATA () {0x3;}' unless defined(&KRB5_TL_KADM_DATA);
    eval 'sub KRB5_TL_KADM5_E_DATA () {0x4;}' unless defined(&KRB5_TL_KADM5_E_DATA);
    eval 'sub KRB5_TL_RB1_CHALLENGE () {0x5;}' unless defined(&KRB5_TL_RB1_CHALLENGE);
    eval 'sub KRB5_TL_SECURID_STATE () {0x6;}' unless defined(&KRB5_TL_SECURID_STATE);
    eval 'sub KADM5_CONFIG_REALM () {(1<< 0);}' unless defined(&KADM5_CONFIG_REALM);
    eval 'sub KADM5_CONFIG_PROFILE () {(1<< 1);}' unless defined(&KADM5_CONFIG_PROFILE);
    eval 'sub KADM5_CONFIG_KADMIND_PORT () {(1<< 2);}' unless defined(&KADM5_CONFIG_KADMIND_PORT);
    eval 'sub KADM5_CONFIG_ADMIN_SERVER () {(1<< 3);}' unless defined(&KADM5_CONFIG_ADMIN_SERVER);
    eval 'sub KADM5_CONFIG_DBNAME () {(1<< 4);}' unless defined(&KADM5_CONFIG_DBNAME);
    eval 'sub KADM5_CONFIG_ADBNAME () {(1<< 5);}' unless defined(&KADM5_CONFIG_ADBNAME);
    eval 'sub KADM5_CONFIG_ADB_LOCKFILE () {(1<< 6);}' unless defined(&KADM5_CONFIG_ADB_LOCKFILE);
    eval 'sub KADM5_CONFIG_ACL_FILE () {(1<< 7);}' unless defined(&KADM5_CONFIG_ACL_FILE);
    eval 'sub KADM5_CONFIG_DICT_FILE () {(1<< 8);}' unless defined(&KADM5_CONFIG_DICT_FILE);
    eval 'sub KADM5_CONFIG_ADMIN_KEYTAB () {(1<< 9);}' unless defined(&KADM5_CONFIG_ADMIN_KEYTAB);
    eval 'sub KADM5_CONFIG_MKEY_FROM_KEYBOARD () {(1<< 10);}' unless defined(&KADM5_CONFIG_MKEY_FROM_KEYBOARD);
    eval 'sub KADM5_CONFIG_STASH_FILE () {(1<< 11);}' unless defined(&KADM5_CONFIG_STASH_FILE);
    eval 'sub KADM5_CONFIG_MKEY_NAME () {(1<< 12);}' unless defined(&KADM5_CONFIG_MKEY_NAME);
    eval 'sub KADM5_CONFIG_ENCTYPE () {(1<< 13);}' unless defined(&KADM5_CONFIG_ENCTYPE);
    eval 'sub KADM5_CONFIG_MAX_LIFE () {(1<< 14);}' unless defined(&KADM5_CONFIG_MAX_LIFE);
    eval 'sub KADM5_CONFIG_MAX_RLIFE () {(1<< 15);}' unless defined(&KADM5_CONFIG_MAX_RLIFE);
    eval 'sub KADM5_CONFIG_EXPIRATION () {(1<< 16);}' unless defined(&KADM5_CONFIG_EXPIRATION);
    eval 'sub KADM5_CONFIG_FLAGS () {(1<< 17);}' unless defined(&KADM5_CONFIG_FLAGS);
    eval 'sub KADM5_CONFIG_ENCTYPES () {(1<< 18);}' unless defined(&KADM5_CONFIG_ENCTYPES);
    eval 'sub KADM5_PRIV_GET () {(1<< 0);}' unless defined(&KADM5_PRIV_GET);
    eval 'sub KADM5_PRIV_ADD () {(1<< 1);}' unless defined(&KADM5_PRIV_ADD);
    eval 'sub KADM5_PRIV_MODIFY () {(1<< 2);}' unless defined(&KADM5_PRIV_MODIFY);
    eval 'sub KADM5_PRIV_DELETE () {(1<< 3);}' unless defined(&KADM5_PRIV_DELETE);
    eval 'sub KADM5_PRIV_LIST () {(1<< 4);}' unless defined(&KADM5_PRIV_LIST);
    eval 'sub KADM5_PRIV_CPW () {(1<< 5);}' unless defined(&KADM5_PRIV_CPW);
    eval 'sub KADM5_PRIV_ALL () {( &KADM5_PRIV_GET |  &KADM5_PRIV_ADD |  &KADM5_PRIV_MODIFY |  &KADM5_PRIV_DELETE |  &KADM5_PRIV_LIST |  &KADM5_PRIV_CPW);}' unless defined(&KADM5_PRIV_ALL);
    require 'kadm5-protos.ph';
    if(0) {
    }
}
1;
