cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose/*
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose SSSD - header files for AD specific enhancement in the common LDAP/SDAP
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose code
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose Authors:
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose Sumit Bose <sbose@redhat.com>
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose Copyright (C) 2016 Red Hat
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose This program is free software; you can redistribute it and/or modify
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose it under the terms of the GNU General Public License as published by
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose the Free Software Foundation; either version 3 of the License, or
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose (at your option) any later version.
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose This program is distributed in the hope that it will be useful,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose but WITHOUT ANY WARRANTY; without even the implied warranty of
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose GNU General Public License for more details.
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose You should have received a copy of the GNU General Public License
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose along with this program. If not, see <http://www.gnu.org/licenses/>.
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose*/
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose#ifndef SDAP_ASYNC_AD_H_
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose#define SDAP_ASYNC_AD_H_
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose
7cf0f78d832c7a09b59ee9f91cedc427c0253cd4Sumit Boseerrno_t sdap_ad_save_group_membership_with_idmapping(const char *username,
7cf0f78d832c7a09b59ee9f91cedc427c0253cd4Sumit Bose struct sss_domain_info *user_dom,
7cf0f78d832c7a09b59ee9f91cedc427c0253cd4Sumit Bose struct sdap_idmap_ctx *idmap_ctx,
7cf0f78d832c7a09b59ee9f91cedc427c0253cd4Sumit Bose size_t num_sids,
7cf0f78d832c7a09b59ee9f91cedc427c0253cd4Sumit Bose char **sids);
7cf0f78d832c7a09b59ee9f91cedc427c0253cd4Sumit Bose
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Boseerrno_t
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bosesdap_ad_tokengroups_get_posix_members(TALLOC_CTX *mem_ctx,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose struct sss_domain_info *user_domain,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose size_t num_sids,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose char **sids,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose size_t *_num_missing,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose char ***_missing,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose size_t *_num_valid,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose char ***_valid_groups);
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Boseerrno_t
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bosesdap_ad_tokengroups_update_members(const char *username,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose struct sysdb_ctx *sysdb,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose struct sss_domain_info *domain,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose char **ldap_groups);
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bosestruct tevent_req *
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bosesdap_ad_resolve_sids_send(TALLOC_CTX *mem_ctx,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose struct tevent_context *ev,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose struct sdap_id_ctx *id_ctx,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose struct sdap_id_conn_ctx *conn,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose struct sdap_options *opts,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose struct sss_domain_info *domain,
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose char **sids);
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Boseerrno_t sdap_ad_resolve_sids_recv(struct tevent_req *req);
cce3e8526176ce2fe9baa5bda1bb457b996b7bcfSumit Bose#endif /* SDAP_ASYNC_AD_H_ */