diff options
author | Michal Zidek <mzidek@redhat.com> | 2012-08-13 16:37:13 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-15 13:51:22 +0200 |
commit | 9ab243b369ba317cc964080786dbcdebaf23d6be (patch) | |
tree | 7a08b9d00a11e2946a00bcee9b8fc093ee10b19f /src/providers/krb5 | |
parent | 4f76afc76610a26da85438e5657a6cb5e83c787a (diff) | |
download | sssd-9ab243b369ba317cc964080786dbcdebaf23d6be.tar.gz sssd-9ab243b369ba317cc964080786dbcdebaf23d6be.tar.bz2 sssd-9ab243b369ba317cc964080786dbcdebaf23d6be.zip |
Duplicate detection in fail over did not work.
https://fedorahosted.org/sssd/ticket/1472
Diffstat (limited to 'src/providers/krb5')
-rw-r--r-- | src/providers/krb5/krb5_common.c | 7 |
1 files changed, 6 insertions, 1 deletions
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; |