Lines Matching refs:err

154 const char *idmap_error_string(enum idmap_error_code err)
156 switch (err) {
541 enum idmap_error_code err;
549 err = sss_idmap_check_collision_ex(dom->name, dom->sid,
556 if (err != IDMAP_SUCCESS) {
557 return err;
568 enum idmap_error_code err;
577 err = sss_idmap_check_collision_ex(dom->name, dom->sid,
587 if (err != IDMAP_SUCCESS) {
588 return err;
628 enum idmap_error_code err;
637 err = sss_idmap_calculate_range(ctx, slice_name, NULL, &tmp_range);
638 if (err != IDMAP_SUCCESS) {
640 return err;
660 static enum idmap_error_code err;
667 err = IDMAP_OUT_OF_MEMORY;
671 err = generate_slice(ctx, secondary_name, first_rid, &slice);
672 if (err != IDMAP_SUCCESS) {
698 return err;
710 enum idmap_error_code err;
739 err = IDMAP_OUT_OF_MEMORY;
746 err = IDMAP_OUT_OF_MEMORY;
757 err = IDMAP_OUT_OF_MEMORY;
765 err = dom_check_collision(ctx->idmap_domain_info, dom);
766 if (err != IDMAP_SUCCESS) {
778 return err;
792 enum idmap_error_code err;
794 err = sss_idmap_add_domain_ex(ctx, domain_name, domain_sid, range,
796 if (err != IDMAP_SUCCESS) {
797 return err;
822 err = get_helpers(ctx, domain_sid, rid,
824 if (err == IDMAP_SUCCESS) {
830 if (err == IDMAP_OUT_OF_SLICES) {
831 err = IDMAP_SUCCESS;
839 return err;
920 enum idmap_error_code err;
929 err = IDMAP_OUT_OF_MEMORY;
936 err = construct_range(ctx, helper, secondary_name, &range);
939 err = generate_slice(ctx, secondary_name, first_rid, &range);
942 if (err != IDMAP_SUCCESS) {
951 return err;
960 static enum idmap_error_code err;
966 err = sss_idmap_add_domain_ex(ctx,
971 if (err != IDMAP_SUCCESS) {
972 return err;
1000 err = it->cb(it->name,
1007 if (err != IDMAP_SUCCESS) {
1008 return err;
1021 enum idmap_error_code err;
1026 err = IDMAP_SID_INVALID;
1030 err = get_range(ctx, matched_dom->helpers, matched_dom->sid, rid, &range);
1031 if (err != IDMAP_SUCCESS) {
1035 err = spawn_dom(ctx, matched_dom, range);
1036 if (err != IDMAP_SUCCESS) {
1041 err = IDMAP_ERROR;
1045 err = IDMAP_SUCCESS;
1052 return err;
1186 enum idmap_error_code err;
1226 err = spawn_dom(ctx, idmap_domain_info, it);
1227 if (err != IDMAP_SUCCESS) {
1228 return err;
1245 enum idmap_error_code err;
1250 err = sss_idmap_dom_sid_to_sid(ctx, dom_sid, &sid);
1251 if (err != IDMAP_SUCCESS) {
1255 err = sss_idmap_sid_to_unix(ctx, sid, id);
1260 return err;
1268 enum idmap_error_code err;
1273 err = sss_idmap_bin_sid_to_sid(ctx, bin_sid, length, &sid);
1274 if (err != IDMAP_SUCCESS) {
1278 err = sss_idmap_sid_to_unix(ctx, sid, id);
1283 return err;
1290 enum idmap_error_code err;
1295 err = sss_idmap_smb_sid_to_sid(ctx, smb_sid, &sid);
1296 if (err != IDMAP_SUCCESS) {
1300 err = sss_idmap_sid_to_unix(ctx, sid, id);
1305 return err;
1312 enum idmap_error_code err;
1317 err = sss_idmap_dom_sid_to_sid(ctx, dom_sid, &sid);
1318 if (err != IDMAP_SUCCESS) {
1322 err = sss_idmap_check_sid_unix(ctx, sid, id);
1327 return err;
1335 enum idmap_error_code err;
1340 err = sss_idmap_bin_sid_to_sid(ctx, bin_sid, length, &sid);
1341 if (err != IDMAP_SUCCESS) {
1345 err = sss_idmap_check_sid_unix(ctx, sid, id);
1350 return err;
1357 enum idmap_error_code err;
1362 err = sss_idmap_smb_sid_to_sid(ctx, smb_sid, &sid);
1363 if (err != IDMAP_SUCCESS) {
1367 err = sss_idmap_check_sid_unix(ctx, sid, id);
1372 return err;
1378 enum idmap_error_code err;
1384 err = sss_idmap_unix_to_sid(ctx, id, &sid);
1385 if (err != IDMAP_SUCCESS) {
1389 err = sss_idmap_sid_to_dom_sid(ctx, sid, &dom_sid);
1390 if (err != IDMAP_SUCCESS) {
1395 err = IDMAP_SUCCESS;
1399 if (err != IDMAP_SUCCESS) {
1403 return err;
1411 enum idmap_error_code err;
1418 err = sss_idmap_unix_to_sid(ctx, id, &sid);
1419 if (err != IDMAP_SUCCESS) {
1423 err = sss_idmap_sid_to_bin_sid(ctx, sid, &bin_sid, &length);
1424 if (err != IDMAP_SUCCESS) {
1430 err = IDMAP_SUCCESS;
1434 if (err != IDMAP_SUCCESS) {
1438 return err;