From 9ab243b369ba317cc964080786dbcdebaf23d6be Mon Sep 17 00:00:00 2001 From: Michal Zidek Date: Mon, 13 Aug 2012 16:37:13 +0200 Subject: Duplicate detection in fail over did not work. https://fedorahosted.org/sssd/ticket/1472 --- src/providers/krb5/krb5_common.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/providers/krb5/krb5_common.c') diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c index 98a2f7da..bd7a3021 100644 --- a/src/providers/krb5/krb5_common.c +++ b/src/providers/krb5/krb5_common.c @@ -579,6 +579,11 @@ done: return ret; } +static int krb5_user_data_cmp(void *ud1, void *ud2) +{ + return strcasecmp((char*) ud1, (char*) ud2); +} + int krb5_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx, const char *service_name, const char *primary_servers, @@ -600,7 +605,7 @@ int krb5_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx, goto done; } - ret = be_fo_add_service(ctx, service_name); + ret = be_fo_add_service(ctx, service_name, krb5_user_data_cmp); if (ret != EOK) { DEBUG(1, ("Failed to create failover service!\n")); goto done; -- cgit