00001 /* 00002 SSSD 00003 00004 NSS Responder ID-mapping interface 00005 00006 Authors: 00007 Sumit Bose <sbose@redhat.com> 00008 00009 Copyright (C) 2013 Red Hat 00010 00011 This program is free software; you can redistribute it and/or modify 00012 it under the terms of the GNU General Public License as published by 00013 the Free Software Foundation; either version 3 of the License, or 00014 (at your option) any later version. 00015 00016 This program is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 GNU General Public License for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with this program. If not, see <http://www.gnu.org/licenses/>. 00023 */ 00024 00025 #ifndef SSS_NSS_IDMAP_H_ 00026 #define SSS_NSS_IDMAP_H_ 00027 00028 #include <stdint.h> 00029 00033 enum sss_id_type { 00034 SSS_ID_TYPE_NOT_SPECIFIED = 0, 00035 SSS_ID_TYPE_UID, 00036 SSS_ID_TYPE_GID, 00037 SSS_ID_TYPE_BOTH /* used for user or magic private groups */ 00038 }; 00039 00057 int sss_nss_getsidbyname(const char *fq_name, char **sid, 00058 enum sss_id_type *type); 00059 00071 int sss_nss_getsidbyid(uint32_t id, char **sid, enum sss_id_type *type); 00072 00084 int sss_nss_getnamebysid(const char *sid, char **fq_name, 00085 enum sss_id_type *type); 00086 00097 int sss_nss_getidbysid(const char *sid, uint32_t *id, 00098 enum sss_id_type *id_type); 00099 00100 #endif /* SSS_NSS_IDMAP_H_ */
1.6.1