From 9197a1e626345437f00fbf401325146259980634 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 17 Feb 2010 03:27:39 +0100 Subject: Updated for new boost release & new kadm5 API Included boost patch (needed for boost < 1.42) --- src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp | 8 ++++---- src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.h | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src/modules/UserConfigBackendKrb5') diff --git a/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp b/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp index 72c8160..5f4e3cf 100644 --- a/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp +++ b/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.cpp @@ -64,8 +64,8 @@ void UserConfigBackendKrb5::_connect() { princ += "@" + realm; if(!password.isEmpty() && keytab.isEmpty()) { - krb5_error_code err = kadm5_init_with_password(const_cast(princ.toLocale().c_str()), const_cast(password.toLocale().c_str()), - const_cast(KADM5_ADMIN_SERVICE), ¶ms, KADM5_STRUCT_VERSION, KADM5_API_VERSION_2, 0, &handle); + krb5_error_code err = kadm5_init_with_password(context, const_cast(princ.toLocale().c_str()), const_cast(password.toLocale().c_str()), + const_cast(KADM5_ADMIN_SERVICE), ¶ms, KADM5_STRUCT_VERSION, KADM5_API_VERSION_3, 0, &handle); if(err) { application->log(Core::Logger::LOG_USER, Core::Logger::LOG_ERROR, Core::Format("kadm5_init_with_password: %1%") % krb5_get_error_message(context, err)); @@ -80,8 +80,8 @@ void UserConfigBackendKrb5::_connect() { keytabName = const_cast(keytabStr.c_str()); } - krb5_error_code err = kadm5_init_with_skey(const_cast(princ.toLocale().c_str()), keytabName, - const_cast(KADM5_ADMIN_SERVICE), ¶ms, KADM5_STRUCT_VERSION, KADM5_API_VERSION_2, 0, &handle); + krb5_error_code err = kadm5_init_with_skey(context, const_cast(princ.toLocale().c_str()), keytabName, + const_cast(KADM5_ADMIN_SERVICE), ¶ms, KADM5_STRUCT_VERSION, KADM5_API_VERSION_3, 0, &handle); if(err) { application->log(Core::Logger::LOG_USER, Core::Logger::LOG_ERROR, Core::Format("kadm5_init_with_skey: %1%") % krb5_get_error_message(context, err)); diff --git a/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.h b/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.h index c02f868..34ab14c 100644 --- a/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.h +++ b/src/modules/UserConfigBackendKrb5/UserConfigBackendKrb5.h @@ -27,8 +27,6 @@ #include #include - -#define USE_KADM5_API_VERSION 2 #include namespace Mad { -- cgit v1.2.3