summaryrefslogtreecommitdiff
path: root/server/providers/ldap
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-10-13 13:53:32 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-11-05 14:55:19 -0500
commitff85dca17f68cc002adf753d71a9b7183ead1c1b (patch)
treefb989de859f3884b6e5faf79446e1d09e2f560b5 /server/providers/ldap
parent73df935dab319ce413a8927bbae0a991008b5d07 (diff)
downloadsssd-ff85dca17f68cc002adf753d71a9b7183ead1c1b.tar.gz
sssd-ff85dca17f68cc002adf753d71a9b7183ead1c1b.tar.bz2
sssd-ff85dca17f68cc002adf753d71a9b7183ead1c1b.zip
add replacements for missing Kerberos calls
Diffstat (limited to 'server/providers/ldap')
-rw-r--r--server/providers/ldap/sdap_async.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/providers/ldap/sdap_async.c b/server/providers/ldap/sdap_async.c
index dfdd267e..bce25419 100644
--- a/server/providers/ldap/sdap_async.c
+++ b/server/providers/ldap/sdap_async.c
@@ -20,11 +20,11 @@
*/
#include <ctype.h>
#include <sasl/sasl.h>
-#include <krb5/krb5.h>
#include "db/sysdb.h"
#include "providers/ldap/sdap_async.h"
#include "util/util.h"
+#include "util/sss_krb5.h"
#define REALM_SEPARATOR '@'
@@ -991,7 +991,7 @@ static int sdap_krb5_get_tgt_sync(TALLOC_CTX *memctx,
krberr = krb5_get_default_realm(context, &realm_name);
if (krberr) {
DEBUG(2, ("Failed to get default realm name: %s\n",
- krb5_get_error_message(context, krberr)));
+ sss_krb5_get_error_message(context, krberr)));
ret = EFAULT;
goto done;
}
@@ -1032,7 +1032,7 @@ static int sdap_krb5_get_tgt_sync(TALLOC_CTX *memctx,
krberr = krb5_parse_name(context, full_princ, &kprinc);
if (krberr) {
DEBUG(2, ("Unable to build principal: %s\n",
- krb5_get_error_message(context, krberr)));
+ sss_krb5_get_error_message(context, krberr)));
ret = EFAULT;
goto done;
}
@@ -1044,7 +1044,7 @@ static int sdap_krb5_get_tgt_sync(TALLOC_CTX *memctx,
}
if (krberr) {
DEBUG(2, ("Failed to read keytab file: %s\n",
- krb5_get_error_message(context, krberr)));
+ sss_krb5_get_error_message(context, krberr)));
ret = EFAULT;
goto done;
}
@@ -1065,7 +1065,7 @@ static int sdap_krb5_get_tgt_sync(TALLOC_CTX *memctx,
krberr = krb5_cc_resolve(context, ccname, &ccache);
if (krberr) {
DEBUG(2, ("Failed to set cache name: %s\n",
- krb5_get_error_message(context, krberr)));
+ sss_krb5_get_error_message(context, krberr)));
ret = EFAULT;
goto done;
}
@@ -1084,7 +1084,7 @@ static int sdap_krb5_get_tgt_sync(TALLOC_CTX *memctx,
if (krberr) {
DEBUG(2, ("Failed to init credentials: %s\n",
- krb5_get_error_message(context, krberr)));
+ sss_krb5_get_error_message(context, krberr)));
ret = EFAULT;
goto done;
}
@@ -1092,7 +1092,7 @@ static int sdap_krb5_get_tgt_sync(TALLOC_CTX *memctx,
krberr = krb5_cc_initialize(context, ccache, kprinc);
if (krberr) {
DEBUG(2, ("Failed to init ccache: %s\n",
- krb5_get_error_message(context, krberr)));
+ sss_krb5_get_error_message(context, krberr)));
ret = EFAULT;
goto done;
}
@@ -1100,7 +1100,7 @@ static int sdap_krb5_get_tgt_sync(TALLOC_CTX *memctx,
krberr = krb5_cc_store_cred(context, ccache, &my_creds);
if (krberr) {
DEBUG(2, ("Failed to store creds: %s\n",
- krb5_get_error_message(context, krberr)));
+ sss_krb5_get_error_message(context, krberr)));
ret = EFAULT;
goto done;
}