From 10989431e533bd60de242dbd78c4b62c4ace7812 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 20 Oct 2005 10:10:40 +0000 Subject: r11215: Remove no-op prompter intended to work around bugs in old kerberos libs. I'm also worried this might cause loops, if we get a 'force password change', and the prompter tries to 'deal with it'. Andrew Bartlett (This used to be commit 5bc10c4e472b45c5b5b0ea0c3dd100be6f4dabca) --- source4/auth/kerberos/kerberos.c | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'source4/auth/kerberos/kerberos.c') diff --git a/source4/auth/kerberos/kerberos.c b/source4/auth/kerberos/kerberos.c index 62614f7081..71d9859df6 100644 --- a/source4/auth/kerberos/kerberos.c +++ b/source4/auth/kerberos/kerberos.c @@ -34,32 +34,6 @@ #define LIBADS_CCACHE_NAME "MEMORY:libads" -/* - we use a prompter to avoid a crash bug in the kerberos libs when - dealing with empty passwords - this prompter is just a string copy ... -*/ -static krb5_error_code -kerb_prompter(krb5_context ctx, void *data, - const char *name, - const char *banner, - int num_prompts, - krb5_prompt prompts[]) -{ - if (num_prompts == 0) return 0; - - memset(prompts[0].reply->data, '\0', prompts[0].reply->length); - if (prompts[0].reply->length > 0) { - if (data) { - strncpy(prompts[0].reply->data, data, prompts[0].reply->length-1); - prompts[0].reply->length = strlen(prompts[0].reply->data); - } else { - prompts[0].reply->length = 0; - } - } - return 0; -} - /* simulate a kinit, putting the tgt in the given credentials cache. Orignally by remus@snapserver.com @@ -120,7 +94,7 @@ kerb_prompter(krb5_context ctx, void *data, krb5_get_init_creds_opt_init(&options); if ((code = krb5_get_init_creds_password(ctx, &my_creds, principal, password, - kerb_prompter, + NULL, NULL, 0, NULL, &options))) { return code; } -- cgit