1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose ID-mapping plugin for winbind
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose Sumit Bose <sbose@redhat.com>
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose Copyright (C) 2016 Red Hat
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose This program is free software; you can redistribute it and/or modify
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose it under the terms of the GNU General Public License as published by
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose the Free Software Foundation; either version 3 of the License, or
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose (at your option) any later version.
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose This program is distributed in the hope that it will be useful,
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose but WITHOUT ANY WARRANTY; without even the implied warranty of
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose GNU General Public License for more details.
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose You should have received a copy of the GNU General Public License
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose along with this program. If not, see <http://www.gnu.org/licenses/>.
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose/* The following definitions are taken from the Samba header files
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose * and can be removed if the related Samba header files become public headers
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose * or if this plugin is build inside the Samba source tree. */
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose/* Filled out by IDMAP backends */
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose /* Called when backend is first loaded */
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose /* Map an array of uids/gids to SIDs. The caller specifies
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose the uid/gid and type. Gets back the SID. */
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose NTSTATUS (*unixids_to_sids)(struct idmap_domain *dom, struct id_map **ids);
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose /* Map an arry of SIDs to uids/gids. The caller sets the SID
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose and type and gets back a uid or gid. */
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose NTSTATUS (*sids_to_unixids)(struct idmap_domain *dom, struct id_map **ids);
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose /* Allocate a Unix-ID. */
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose NTSTATUS (*allocate_id)(struct idmap_domain *dom, struct unixid *id);
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit BoseNTSTATUS smb_register_idmap(int version, const char *name,
1d1a0a019d8d4d9ab0f51ada03604cd2cada287eSumit Bose#endif /* _WINBIND_SSS_IDMAP_H_ */