LCOV - code coverage report
Current view: top level - providers/ipa - ipa_autofs.c (source / functions) Hit Total Coverage
Test: .coverage.total Lines: 0 10 0.0 %
Date: 2015-10-19 Functions: 0 1 0.0 %

          Line data    Source code
       1             : /*
       2             :     SSSD
       3             : 
       4             :     IPA Provider Initialization functions
       5             : 
       6             :     Authors:
       7             :         Simo Sorce <ssorce@redhat.com>
       8             : 
       9             :     Copyright (C) 2009 Red Hat
      10             : 
      11             :     This program is free software; you can redistribute it and/or modify
      12             :     it under the terms of the GNU General Public License as published by
      13             :     the Free Software Foundation; either version 3 of the License, or
      14             :     (at your option) any later version.
      15             : 
      16             :     This program is distributed in the hope that it will be useful,
      17             :     but WITHOUT ANY WARRANTY; without even the implied warranty of
      18             :     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19             :     GNU General Public License for more details.
      20             : 
      21             :     You should have received a copy of the GNU General Public License
      22             :     along with this program.  If not, see <http://www.gnu.org/licenses/>.
      23             : */
      24             : 
      25             : #include "util/child_common.h"
      26             : #include "providers/ipa/ipa_common.h"
      27             : #include "providers/krb5/krb5_auth.h"
      28             : #include "providers/ipa/ipa_id.h"
      29             : #include "providers/ipa/ipa_auth.h"
      30             : #include "providers/ipa/ipa_access.h"
      31             : #include "providers/ipa/ipa_dyndns.h"
      32             : #include "providers/ipa/ipa_selinux.h"
      33             : 
      34             : struct bet_ops ipa_autofs_ops = {
      35             :     .handler = sdap_autofs_handler,
      36             :     .finalize = NULL,
      37             :     .check_online = sdap_check_online
      38             : };
      39             : 
      40           0 : int ipa_autofs_init(struct be_ctx *be_ctx,
      41             :                     struct ipa_id_ctx *id_ctx,
      42             :                     struct bet_ops **ops,
      43             :                     void **pvt_data)
      44             : {
      45             :     int ret;
      46             : 
      47           0 :     DEBUG(SSSDBG_TRACE_INTERNAL, "Initializing autofs LDAP back end\n");
      48             : 
      49           0 :     *ops = &ipa_autofs_ops;
      50           0 :     *pvt_data = id_ctx->sdap_id_ctx;
      51             : 
      52           0 :     ret = ipa_get_autofs_options(id_ctx->ipa_options, be_ctx->cdb,
      53           0 :                                  be_ctx->conf_path, &id_ctx->sdap_id_ctx->opts);
      54           0 :     if (ret != EOK) {
      55           0 :         DEBUG(SSSDBG_CRIT_FAILURE, "Cannot get IPA autofs options\n");
      56           0 :         return ret;
      57             :     }
      58             : 
      59           0 :     return ret;
      60             : }

Generated by: LCOV version 1.10