Lines Matching defs:rc

331 	int		k, rc, vlen;
461 rc = init_bval_mod(mods[i], mod_op,
463 if (rc != 0)
497 rc = init_bval_mod(mods[i], mod_op,
499 if (rc != 0)
522 rc = init_bval_mod(mods[i], mod_op,
524 if (rc != 0)
550 rc = init_bval_mod(mods[i], mod_op,
552 if (rc != 0)
584 rc = init_bval_mod(mods[i], mod_op,
586 if (rc != 0)
726 int rc = NS_LDAP_SUCCESS;
786 rc = __s_api_toFollowReferrals(flags,
788 if (rc != NS_LDAP_SUCCESS) {
789 return_rc = rc;
795 rc = __s_api_append_default_basedn(
800 if (rc != NS_LDAP_SUCCESS) {
801 return_rc = rc;
811 rc = __s_api_getConnection(NULL,
819 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
822 * Reset rc to NS_LDAP_SUCCESS.
824 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
827 rc = NS_LDAP_SUCCESS;
830 if (rc != NS_LDAP_SUCCESS) {
831 return_rc = rc;
857 rc = ldap_add_ext_s(conp->ld, target_dn,
862 rc = ldap_delete_ext_s(conp->ld, target_dn,
867 rc = ldap_modify_ext_s(conp->ld, target_dn,
872 rc = ldap_add_ext(conp->ld, target_dn,
877 rc = ldap_delete_ext(conp->ld, target_dn,
882 rc = ldap_modify_ext(conp->ld, target_dn,
887 if (rc != LDAP_SUCCESS) {
890 (rc == LDAP_BUSY ||
891 rc == LDAP_UNAVAILABLE ||
892 rc == LDAP_UNWILLING_TO_PERFORM ||
893 rc == LDAP_CONNECT_ERROR ||
894 rc == LDAP_SERVER_DOWN ||
895 rc == LDAP_REFERRAL ||
896 rc == LDAP_TIMEOUT)) {
901 Errno = rc;
928 rc = ldap_result(conp->ld, msgid, 1,
931 if (rc == -1) {
937 if (rc == LDAP_RES_ADD || rc == LDAP_RES_MODIFY ||
938 rc == LDAP_RES_DELETE) {
942 return_rc = rc;
952 rc = ldap_parse_result(conp->ld, res, &Errno,
974 rc = __s_api_addReferral(&referral_list,
977 if (rc != NS_LDAP_SUCCESS) {
983 if (rc != NS_LDAP_MEMORY)
984 rc = NS_LDAP_INTERNAL;
985 return_rc = rc;
1032 rc = __s_api_getConnection(ref_info->refHost,
1040 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
1043 * Reset rc to NS_LDAP_SUCCESS.
1045 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
1048 rc = NS_LDAP_SUCCESS;
1051 if (rc != NS_LDAP_SUCCESS) {
1052 return_rc = rc;
1162 " (state = %d, rc = %d)."),
1233 int rc = 0;
1246 rc = do_cachemgr_operation(dn, (ns_ldap_attr_t **)attr, errorp,
1248 return (rc);
1262 if ((rc = get_admin_passwd((ns_cred_t *)cred, errorp)) !=
1264 return (rc);
1272 rc = write_state_machine(LDAP_REQ_MODIFY,
1276 return (rc);
1290 int rc = 0;
1303 rc = do_cachemgr_operation(dn, (ns_ldap_attr_t **)attr, errorp,
1305 return (rc);
1319 if ((rc = get_admin_passwd((ns_cred_t *)cred, errorp)) !=
1321 return (rc);
1329 rc = write_state_machine(LDAP_REQ_MODIFY,
1333 return (rc);
1341 int rc, ldaprc;
1363 rc = NS_LDAP_CONFIG;
1367 rc = NS_LDAP_MEMORY;
1368 return (rc);
1376 rc = NS_LDAP_CONFIG;
1380 rc = NS_LDAP_MEMORY;
1381 return (rc);
1433 int rc = 0;
1446 rc = do_cachemgr_operation(dn, (ns_ldap_attr_t **)attr, errorp,
1448 return (rc);
1462 if ((rc = get_admin_passwd((ns_cred_t *)cred, errorp)) !=
1464 return (rc);
1471 rc = write_state_machine(LDAP_REQ_MODIFY,
1475 return (rc);
1491 int rc = 0;
1506 rc = do_cachemgr_operation(dn, (ns_ldap_attr_t **)attr,
1508 return (rc);
1522 if ((rc = get_admin_passwd((ns_cred_t *)cred, errorp)) !=
1524 return (rc);
1540 rc = replace_mapped_attr_in_dn(service, dn, &new_dn);
1541 if (rc != NS_LDAP_SUCCESS) {
1543 return (rc);
1546 rc = write_state_machine(LDAP_REQ_ADD,
1552 return (rc);
1564 int rc;
1575 rc = do_cachemgr_operation(dn, NULL, errorp,
1577 return (rc);
1591 if ((rc = get_admin_passwd((ns_cred_t *)cred, errorp)) !=
1593 return (rc);
1596 rc = write_state_machine(LDAP_REQ_DELETE,
1599 return (rc);
1724 int rc;
1764 rc = __s_add_attr(e, "uid", ptr->pw_name);
1765 if (rc != NS_LDAP_SUCCESS) {
1767 return (rc);
1769 rc = __s_add_attr(e, "cn", ptr->pw_name);
1770 if (rc != NS_LDAP_SUCCESS) {
1772 return (rc);
1777 rc = __s_add_attr(e, "userPassword", ptr->pw_passwd);
1778 if (rc != NS_LDAP_SUCCESS) {
1780 return (rc);
1785 rc = __s_add_attr(e, "uidNumber", ibuf);
1786 if (rc != NS_LDAP_SUCCESS) {
1788 return (rc);
1792 rc = __s_add_attr(e, "gidNumber", ibuf);
1793 if (rc != NS_LDAP_SUCCESS) {
1795 return (rc);
1799 rc = __s_add_attr(e, "gecos", ptr->pw_gecos);
1800 if (rc != NS_LDAP_SUCCESS) {
1802 return (rc);
1806 rc = __s_add_attr(e, "homeDirectory", ptr->pw_dir);
1807 if (rc != NS_LDAP_SUCCESS) {
1809 return (rc);
1813 rc = __s_add_attr(e, "loginShell", ptr->pw_shell);
1814 if (rc != NS_LDAP_SUCCESS) {
1816 return (rc);
1866 int rc;
1907 rc = __s_add_attr(e, "SolarisProjectName", ptr->pj_name);
1908 if (rc != NS_LDAP_SUCCESS) {
1910 return (rc);
1922 rc = __s_add_attr(e, "SolarisProjectID", ibuf);
1923 if (rc != NS_LDAP_SUCCESS) {
1925 return (rc);
1930 rc = __s_add_attr(e, "description", ptr->pj_comment);
1931 if (rc != NS_LDAP_SUCCESS) {
1933 return (rc);
1939 rc = __s_add_attr(e, "SolarisProjectAttr", ptr->pj_attr);
1940 if (rc != NS_LDAP_SUCCESS) {
1942 return (rc);
1948 rc = __s_add_attrlist(e, "memberUid", ptr->pj_users);
1949 if (rc != NS_LDAP_SUCCESS) {
1951 return (rc);
1957 rc = __s_add_attrlist(e, "memberGid", ptr->pj_groups);
1958 if (rc != NS_LDAP_SUCCESS) {
1960 return (rc);
1978 int rc;
2017 rc = __s_add_attr(e, "uid", ptr->sp_namp);
2018 if (rc != NS_LDAP_SUCCESS) {
2020 return (rc);
2027 rc = __s_add_attr(e, "userPassword", ptr->sp_pwdp);
2028 if (rc != NS_LDAP_SUCCESS) {
2030 return (rc);
2035 rc = __s_add_attr(e, "shadowLastChange", ibuf);
2036 if (rc != NS_LDAP_SUCCESS) {
2038 return (rc);
2043 rc = __s_add_attr(e, "shadowMin", ibuf);
2044 if (rc != NS_LDAP_SUCCESS) {
2046 return (rc);
2051 rc = __s_add_attr(e, "shadowMax", ibuf);
2052 if (rc != NS_LDAP_SUCCESS) {
2054 return (rc);
2059 rc = __s_add_attr(e, "shadowWarning", ibuf);
2060 if (rc != NS_LDAP_SUCCESS) {
2062 return (rc);
2071 rc = __s_add_attr(e, "shadowInactive", ibuf);
2072 if (rc != NS_LDAP_SUCCESS) {
2074 return (rc);
2084 rc = __s_add_attr(e, "shadowExpire", ibuf);
2085 if (rc != NS_LDAP_SUCCESS) {
2087 return (rc);
2092 rc = __s_add_attr(e, "shadowFlag", ibuf);
2093 if (rc != NS_LDAP_SUCCESS) {
2095 return (rc);
2112 int rc;
2151 rc = __s_add_attr(e, "cn", ptr->gr_name);
2152 if (rc != NS_LDAP_SUCCESS) {
2154 return (rc);
2158 rc = __s_add_attr(e, "gidNumber", ibuf);
2159 if (rc != NS_LDAP_SUCCESS) {
2161 return (rc);
2164 rc = __s_add_attr(e, "userPassword", ptr->gr_passwd);
2165 if (rc != NS_LDAP_SUCCESS) {
2167 return (rc);
2191 rc = __s_add_attrlist(e, "memberUid", nm);
2197 if (rc != NS_LDAP_SUCCESS) {
2199 return (rc);
2216 int rc;
2275 rc = __s_add_attrlist(e, "cn", nm);
2277 if (rc != NS_LDAP_SUCCESS) {
2280 return (rc);
2286 rc = __s_add_attrlist(e, "description", nm);
2290 if (rc != NS_LDAP_SUCCESS) {
2292 return (rc);
2295 rc = __s_add_attr(e, "cn", ptr->h_name);
2296 if (rc != NS_LDAP_SUCCESS) {
2298 return (rc);
2322 rc = __s_add_attrlist(e, "ipHostNumber", nm);
2328 if (rc != NS_LDAP_SUCCESS) {
2330 return (rc);
2350 int rc;
2402 rc = __s_add_attrlist(e, "cn", nm);
2405 if (rc != NS_LDAP_SUCCESS) {
2407 return (rc);
2410 rc = __s_add_attr(e, "cn", ptr->r_name);
2411 if (rc != NS_LDAP_SUCCESS) {
2413 return (rc);
2419 rc = __s_add_attr(e, "oncRpcNumber", ibuf);
2420 if (rc != NS_LDAP_SUCCESS) {
2422 return (rc);
2440 int rc;
2492 rc = __s_add_attrlist(e, "cn", nm);
2495 if (rc != NS_LDAP_SUCCESS) {
2497 return (rc);
2500 rc = __s_add_attr(e, "cn", ptr->p_name);
2501 if (rc != NS_LDAP_SUCCESS) {
2503 return (rc);
2508 rc = __s_add_attr(e, "ipProtocolNumber", ibuf);
2509 if (rc != NS_LDAP_SUCCESS) {
2511 return (rc);
2528 int rc;
2592 rc = __s_add_attrlist(e, "cn", nm);
2595 if (rc != NS_LDAP_SUCCESS) {
2597 return (rc);
2600 rc = __s_add_attr(e, "cn", ptr->s_name);
2601 if (rc != NS_LDAP_SUCCESS) {
2603 return (rc);
2608 rc = __s_add_attr(e, "ipServicePort", ibuf);
2609 if (rc != NS_LDAP_SUCCESS) {
2611 return (rc);
2613 rc = __s_add_attr(e, "ipServiceProtocol", ptr->s_proto);
2614 if (rc != NS_LDAP_SUCCESS) {
2616 return (rc);
2632 int rc;
2690 rc = __s_add_attrlist(e, "cn", nm);
2693 if (rc != NS_LDAP_SUCCESS) {
2695 return (rc);
2698 rc = __s_add_attr(e, "cn", ptr->n_name);
2699 if (rc != NS_LDAP_SUCCESS) {
2701 return (rc);
2705 rc = __s_add_attr(e, "ipNetworkNumber", cp);
2706 if (rc != NS_LDAP_SUCCESS) {
2708 return (rc);
2724 int rc;
2760 rc = __s_add_attr(e, "ipNetworkNumber", ptr->netnumber);
2761 if (rc != NS_LDAP_SUCCESS) {
2763 return (rc);
2767 rc = __s_add_attr(e, "ipNetmaskNumber", ptr->netmask);
2768 if (rc != NS_LDAP_SUCCESS) {
2770 return (rc);
2787 int rc;
2825 rc = __s_add_attr(e, "cn", ptr->name);
2826 if (rc != NS_LDAP_SUCCESS) {
2828 return (rc);
2845 rc = __s_add_attrlist(e, "nisNetgroupTriple", nm);
2848 if (rc != NS_LDAP_SUCCESS) {
2850 return (rc);
2865 rc = __s_add_attrlist(e, "memberNisNetgroup", nm);
2868 if (rc != NS_LDAP_SUCCESS) {
2870 return (rc);
2885 int rc;
2924 rc = __s_add_attr(e, "cn", ptr->name);
2925 if (rc != NS_LDAP_SUCCESS) {
2927 return (rc);
2944 rc = __s_add_attrlist(e, "bootParameter", nm);
2947 if (rc != NS_LDAP_SUCCESS) {
2949 return (rc);
2966 int rc;
3003 rc = __s_add_attr(e, "cn", ptr->name);
3004 if (rc != NS_LDAP_SUCCESS) {
3006 return (rc);
3009 rc = __s_add_attr(e, "macAddress", ptr->ether);
3010 if (rc != NS_LDAP_SUCCESS) {
3012 return (rc);
3046 int rc = 0;
3076 rc = __ns_ldap_list(service, filter, NULL, (const char **)NULL,
3080 switch (rc) {
3086 rc = NS_LDAP_INTERNAL;
3106 rc = NS_LDAP_OP_FAILED;
3113 rc = __ns_ldap_addAttr(service, fulldn, aptr, cred, flags,
3126 return (rc);
3139 int rc;
3178 rc = __s_add_attr(e, "nisPublickey", ptr->pubkey);
3179 if (rc != NS_LDAP_SUCCESS) {
3181 return (rc);
3184 rc = __s_add_attr(e, "nisSecretkey", ptr->privkey);
3185 if (rc != NS_LDAP_SUCCESS) {
3187 return (rc);
3202 int rc;
3240 rc = __s_add_attr(e, "mail", (char *)ptr->alias);
3241 if (rc != NS_LDAP_SUCCESS) {
3243 return (rc);
3260 rc = __s_add_attrlist(e, "mgrpRFC822MailMember", nm);
3263 if (rc != NS_LDAP_SUCCESS) {
3265 return (rc);
3282 int rc;
3300 rc = __ns_ldap_getParam(NS_LDAP_FILE_VERSION_P, &paramVal, errorp);
3306 if (rc && errorp)
3339 rc = __s_add_attr(e, version1 ? "cn" : "automountKey",
3341 if (rc != NS_LDAP_SUCCESS) {
3343 return (rc);
3347 rc = __s_add_attr(e, version1 ? "nisMapEntry" : "automountInformation",
3349 if (rc != NS_LDAP_SUCCESS) {
3351 return (rc);
3366 rc = __s_add_attr(e, "nisMapName", (char *)ptr->mapname);
3367 if (rc != NS_LDAP_SUCCESS) {
3369 return (rc);
3385 int rc;
3421 rc = __s_add_attr(e, "cn", ptr->name);
3422 if (rc != NS_LDAP_SUCCESS) {
3424 return (rc);
3427 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attr);
3428 if (rc != NS_LDAP_SUCCESS) {
3430 return (rc);
3434 rc = __s_add_attr(e, "SolarisAttrReserved1", ptr->res1);
3435 if (rc != NS_LDAP_SUCCESS) {
3437 return (rc);
3442 rc = __s_add_attr(e, "SolarisAttrReserved2", ptr->res2);
3443 if (rc != NS_LDAP_SUCCESS) {
3445 return (rc);
3450 rc = __s_add_attr(e, "SolarisAttrShortDesc", ptr->short_desc);
3451 if (rc != NS_LDAP_SUCCESS) {
3453 return (rc);
3458 rc = __s_add_attr(e, "SolarisAttrLongDesc", ptr->long_desc);
3459 if (rc != NS_LDAP_SUCCESS) {
3461 return (rc);
3477 int rc;
3530 rc = __s_add_attr(e, "cn", ptr->name);
3531 if (rc != NS_LDAP_SUCCESS) {
3533 return (rc);
3536 rc = __s_add_attr(e, "SolarisKernelSecurityPolicy", ptr->policy);
3537 if (rc != NS_LDAP_SUCCESS) {
3539 return (rc);
3542 rc = __s_add_attr(e, "SolarisProfileType", ptr->type);
3543 if (rc != NS_LDAP_SUCCESS) {
3545 return (rc);
3548 rc = __s_add_attr(e, "SolarisProfileId", ptr->id);
3549 if (rc != NS_LDAP_SUCCESS) {
3551 return (rc);
3554 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attr);
3555 if (rc != NS_LDAP_SUCCESS) {
3557 return (rc);
3561 rc = __s_add_attr(e, "SolarisAttrRes1", ptr->res1);
3562 if (rc != NS_LDAP_SUCCESS) {
3564 return (rc);
3569 rc = __s_add_attr(e, "SolarisAttrRes2", ptr->res2);
3570 if (rc != NS_LDAP_SUCCESS) {
3572 return (rc);
3588 int rc;
3624 rc = __s_add_attr(e, "cn", ptr->name);
3625 if (rc != NS_LDAP_SUCCESS) {
3627 return (rc);
3630 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attr);
3631 if (rc != NS_LDAP_SUCCESS) {
3633 return (rc);
3637 rc = __s_add_attr(e, "SolarisAttrReserved1", ptr->res1);
3638 if (rc != NS_LDAP_SUCCESS) {
3640 return (rc);
3645 rc = __s_add_attr(e, "SolarisAttrReserved2", ptr->res2);
3646 if (rc != NS_LDAP_SUCCESS) {
3648 return (rc);
3653 rc = __s_add_attr(e, "SolarisAttrLongDesc", ptr->desc);
3654 if (rc != NS_LDAP_SUCCESS) {
3656 return (rc);
3672 int rc;
3712 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attr);
3713 if (rc != NS_LDAP_SUCCESS) {
3715 return (rc);
3719 rc = __s_add_attr(e, "SolarisUserQualifier", ptr->qualifier);
3720 if (rc != NS_LDAP_SUCCESS) {
3722 return (rc);
3727 rc = __s_add_attr(e, "SolarisAttrReserved1", ptr->res1);
3728 if (rc != NS_LDAP_SUCCESS) {
3730 return (rc);
3735 rc = __s_add_attr(e, "SolarisAttrReserved2", ptr->res2);
3736 if (rc != NS_LDAP_SUCCESS) {
3738 return (rc);
3754 int rc;
3794 rc = __s_add_attr(e, "SolarisAuditAlways", ptr->au_always);
3795 if (rc != NS_LDAP_SUCCESS) {
3797 return (rc);
3802 rc = __s_add_attr(e, "SolarisAuditNever", ptr->au_never);
3803 if (rc != NS_LDAP_SUCCESS) {
3805 return (rc);
3821 int rc;
3867 rc = __s_add_attr(e, "ipTnetTemplateName", ptr->tpstr_template);
3868 if (rc != NS_LDAP_SUCCESS) {
3870 return (rc);
3873 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attrs);
3874 if (rc != NS_LDAP_SUCCESS) {
3876 return (rc);
3891 int rc;
3929 rc = __s_add_attr(e, "ipTnetNumber", ptr->address);
3930 if (rc != NS_LDAP_SUCCESS) {
3932 return (rc);
3935 rc = __s_add_attr(e, "ipTnetTemplateName", ptr->rhstr_template);
3936 if (rc != NS_LDAP_SUCCESS) {
3938 return (rc);
4007 int rc = 0;
4011 rc = NS_LDAP_OP_FAILED;
4027 return (rc);
4030 rc = (*__s_cvtlist[s].cvt_rtn)(data, &rdn, &entry, errorp);
4031 if (rc != NS_LDAP_SUCCESS) {
4033 return (rc);
4052 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
4054 if (rc != NS_LDAP_SUCCESS) {
4056 return (rc);
4060 rc = __s_api_getDNs(&dns, service, errorp);
4061 if (rc != NS_LDAP_SUCCESS) {
4067 return (rc);
4082 rc = __ns_ldap_getParam(NS_LDAP_SEARCH_BASEDN_P,
4084 if (rc != NS_LDAP_SUCCESS) {
4086 return (rc);
4138 rc = __ns_ldap_repAttr(service, fulldn,
4141 rc = __ns_ldap_addAttr(service, fulldn, modattrlist,
4145 rc = __ns_ldap_repAttr(service, fulldn, modattrlist,
4147 if (rc == NS_LDAP_INTERNAL && *errorp &&
4150 rc = __ns_ldap_addEntry(service, fulldn,
4152 if (rc == NS_LDAP_INTERNAL && *errorp &&
4160 rc = __ns_ldap_addEntry(service, fulldn, entry,
4162 if (rc == NS_LDAP_INTERNAL && *errorp &&
4166 rc = modify_ethers_bootp(service, rdn, fulldn,
4175 return (rc);
4191 int rc = NS_LDAP_SUCCESS, len = 0;
4201 rc = __ns_ldap_getParam(NS_LDAP_SEARCH_BASEDN_P,
4204 if (rc != NS_LDAP_SUCCESS) {
4207 return (rc);
4363 int rc;
4400 rc = NS_LDAP_SUCCESS;
4402 rc = admin_result->ns_err;
4416 return (rc);