From ab45f99d35fdcf952ba56014a433bc814c56df8c Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 1 Oct 2010 12:34:54 -0400 Subject: Return offline instead of error When the failover code returns that there are no available servers while we are marked offline, we were returning an error to the PAM authentication code. Instead, we should return success with a result value of SDAP_UNAVAIL so that the PAM responder will mark the domain offline and attempt offline authentication. --- src/providers/ldap/ldap_auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/providers/ldap/ldap_auth.c') diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c index d39803ea6..4a4bfe17f 100644 --- a/src/providers/ldap/ldap_auth.c +++ b/src/providers/ldap/ldap_auth.c @@ -567,7 +567,8 @@ static void auth_resolve_done(struct tevent_req *subreq) if (ret) { /* all servers have been tried and none * was found good, go offline */ - tevent_req_error(req, EIO); + state->result = SDAP_UNAVAIL; + tevent_req_done(req); return; } -- cgit