sudosrv.c revision 2827b0d03f7b6bafa504d22a5d7ca39cbda048b3
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek Pavel Březina <pbrezina@redhat.com>
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek Copyright (C) 2011 Red Hat
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek This program is free software; you can redistribute it and/or modify
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek it under the terms of the GNU General Public License as published by
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek the Free Software Foundation; either version 3 of the License, or
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek (at your option) any later version.
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek This program is distributed in the hope that it will be useful,
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek but WITHOUT ANY WARRANTY; without even the implied warranty of
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek GNU General Public License for more details.
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek You should have received a copy of the GNU General Public License
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek along with this program. If not, see <http://www.gnu.org/licenses/>.
1a542b3698d8c42cf075b722f8838f106eb09fccPavel Březina { MON_CLI_METHOD_RES_INIT, monitor_common_res_init },
44749ce0c1fee9babee80060fa0db99eebb2ab51Pavel Březina { MON_CLI_METHOD_ROTATE, responder_logrotate },
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozekstruct sbus_interface monitor_sudo_interface = {
f6171b2bc954a367f316853ab71090eb213bdee3Pavel Březinastatic void sudo_dp_reconnect_init(struct sbus_connection *conn,
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek struct be_conn *be_conn = talloc_get_type(pvt, struct be_conn);
c9aab1c04c399ca2d1abef74f6df22ced34983dcPavel Březina /* Did we reconnect successfully? */
c9aab1c04c399ca2d1abef74f6df22ced34983dcPavel Březina DEBUG(SSSDBG_TRACE_FUNC, ("Reconnected to the Data Provider.\n"));
c9aab1c04c399ca2d1abef74f6df22ced34983dcPavel Březina /* Identify ourselves to the data provider */
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek /* all fine */
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek /* Failed to reconnect */
3f98cdc011bb4e8cd22c088f288b0bcdb6452492Jakub Hrozek DEBUG(SSSDBG_FATAL_FAILURE, ("Could not reconnect to %s provider.\n",
b0fa48b0d612b46a86e45f8e4b5d9feae9784c2bSimo Sorce sudo_ctx = talloc_zero(mem_ctx, struct sudo_ctx);
f5d4b05027acce06e3509ecb68869d1c7ef37180Pavel Březina DEBUG(SSSDBG_FATAL_FAILURE, ("fatal error initializing sudo_ctx\n"));
return ret;
return ret;
return EOK;
int opt;
int ret;
switch(opt) {