/*
Winbind client API - SSSD version
Copyright (C) Sumit Bose <sbose@redhat.com> 2014
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Required Headers */
#include "sss_client/idmap/sss_nss_idmap.h"
#include "libwbclient.h"
#include "wbc_sssd_internal.h"
/* Convert a Windows SID to a Unix uid, allocating an uid if needed */
{
int ret;
char *sid_str;
if (!WBC_ERROR_IS_OK(wbc_status)) {
return wbc_status;
}
if (ret != 0) {
return WBC_ERR_UNKNOWN_FAILURE;
}
return WBC_ERR_UNKNOWN_GROUP;
}
return WBC_ERR_SUCCESS;
}
/* Convert a Unix uid to a Windows SID, allocating a SID if needed */
{
int ret;
char *str_sid;
if (ret != 0) {
return WBC_ERR_UNKNOWN_FAILURE;
}
return WBC_ERR_UNKNOWN_USER;
}
if (!WBC_ERROR_IS_OK(wbc_status)) {
return wbc_status;
}
return WBC_ERR_SUCCESS;
}
/** @brief Convert a Windows SID to a Unix gid, allocating a gid if needed
*
* @param *sid Pointer to the domain SID to be resolved
* @param *pgid Pointer to the resolved gid_t value
*
* @return #wbcErr
*
**/
{
int ret;
char *sid_str;
if (!WBC_ERROR_IS_OK(wbc_status)) {
return wbc_status;
}
if (ret != 0) {
return WBC_ERR_UNKNOWN_FAILURE;
}
return WBC_ERR_UNKNOWN_GROUP;
}
return WBC_ERR_SUCCESS;
}
/* Convert a Unix gid to a Windows SID, allocating a SID if needed */
{
int ret;
char *str_sid;
if (ret != 0) {
return WBC_ERR_UNKNOWN_FAILURE;
}
return WBC_ERR_UNKNOWN_USER;
}
if (!WBC_ERROR_IS_OK(wbc_status)) {
return wbc_status;
}
return WBC_ERR_SUCCESS;
}
/* Obtain a new uid from Winbind */
{
/* Not supported by SSSD */
}
/* Obtain a new gid from Winbind */
{
/* Not supported by SSSD */
}
/* Convert a list of SIDs */
{
int ret;
char *sid_str;
size_t c;
for (c = 0; c < num_sids; c++) {
if (WBC_ERROR_IS_OK(wbc_status)) {
if (ret != 0) {
}
}
switch (type) {
case SSS_ID_TYPE_UID:
break;
case SSS_ID_TYPE_GID:
break;
case SSS_ID_TYPE_BOTH:
break;
default:
}
}
return WBC_ERR_SUCCESS;
}
struct wbcDomainSid *sids)
{
size_t c;
for (c = 0; c < num_ids; c++) {
case WBC_ID_TYPE_UID:
break;
case WBC_ID_TYPE_GID:
break;
default:
}
if (!WBC_ERROR_IS_OK(wbc_status)) {
sids[c] = (struct wbcDomainSid){ 0 };
};
}
return WBC_ERR_SUCCESS;
}