From bbd33e46aa6194c1086939f7cf8538c067186455 Mon Sep 17 00:00:00 2001 From: Jan Zeleny Date: Mon, 4 Jun 2012 12:06:53 -0400 Subject: Primary server support: basic support in failover code Now there are two list of servers for each service. If currently selected server is only backup, then an event will be scheduled which tries to get connection to one of primary servers and if it succeeds, it starts using this server instead of the one which is currently connected to. --- src/providers/krb5/krb5_common.c | 2 +- 1 file changed, 1 insertion(+), 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 e06827018..19fbd76ed 100644 --- a/src/providers/krb5/krb5_common.c +++ b/src/providers/krb5/krb5_common.c @@ -586,7 +586,7 @@ int krb5_service_init(TALLOC_CTX *memctx, struct be_ctx *ctx, } ret = be_fo_add_server(ctx, service_name, server_spec, (int) port, - list[i]); + list[i], true); if (ret && ret != EEXIST) { DEBUG(0, ("Failed to add server\n")); goto done; -- cgit