"Fossies" - the Fresh Open Source Software Archive

Member "sssd-2.2.3/src/providers/ad/ad_access.h" (30 Nov 2019, 2036 Bytes) of package /linux/misc/sssd-2.2.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ad_access.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2     SSSD
    3 
    4     Authors:
    5         Stephen Gallagher <sgallagh@redhat.com>
    6 
    7     Copyright (C) 2012 Red Hat
    8 
    9     This program is free software; you can redistribute it and/or modify
   10     it under the terms of the GNU General Public License as published by
   11     the Free Software Foundation; either version 3 of the License, or
   12     (at your option) any later version.
   13 
   14     This program is distributed in the hope that it will be useful,
   15     but WITHOUT ANY WARRANTY; without even the implied warranty of
   16     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   17     GNU General Public License for more details.
   18 
   19     You should have received a copy of the GNU General Public License
   20     along with this program.  If not, see <http://www.gnu.org/licenses/>.
   21 */
   22 
   23 #ifndef AD_ACCESS_H_
   24 #define AD_ACCESS_H_
   25 
   26 #include "providers/data_provider.h"
   27 
   28 struct ad_access_ctx {
   29     struct dp_option *ad_options;
   30     struct sdap_access_ctx *sdap_access_ctx;
   31     struct ad_id_ctx *ad_id_ctx;
   32     /* supported GPO access control modes */
   33     enum gpo_access_control_mode {
   34         GPO_ACCESS_CONTROL_DISABLED,
   35         GPO_ACCESS_CONTROL_PERMISSIVE,
   36         GPO_ACCESS_CONTROL_ENFORCING
   37     } gpo_access_control_mode;
   38     int gpo_cache_timeout;
   39     /* supported GPO map options */
   40     enum gpo_map_type {
   41         GPO_MAP_INTERACTIVE = 0,
   42         GPO_MAP_REMOTE_INTERACTIVE,
   43         GPO_MAP_NETWORK,
   44         GPO_MAP_BATCH,
   45         GPO_MAP_SERVICE,
   46         GPO_MAP_PERMIT,
   47         GPO_MAP_DENY,
   48         GPO_MAP_NUM_OPTS
   49     } gpo_map_type;
   50     hash_table_t *gpo_map_options_table;
   51     enum gpo_map_type gpo_default_right;
   52 };
   53 
   54 struct tevent_req *
   55 ad_pam_access_handler_send(TALLOC_CTX *mem_ctx,
   56                            struct ad_access_ctx *access_ctx,
   57                            struct pam_data *pd,
   58                            struct dp_req_params *params);
   59 
   60 errno_t
   61 ad_pam_access_handler_recv(TALLOC_CTX *mem_ctx,
   62                              struct tevent_req *req,
   63                              struct pam_data **_data);
   64 
   65 #endif /* AD_ACCESS_H_ */