Lines Matching refs:rc

278 	int		k, rc, vlen;
409 rc = init_bval_mod(mods[i], mod_op,
411 if (rc != 0)
445 rc = init_bval_mod(mods[i], mod_op,
447 if (rc != 0)
470 rc = init_bval_mod(mods[i], mod_op,
472 if (rc != 0)
498 rc = init_bval_mod(mods[i], mod_op,
500 if (rc != 0)
532 rc = init_bval_mod(mods[i], mod_op,
534 if (rc != 0)
672 int rc = NS_LDAP_SUCCESS;
727 rc = __s_api_toFollowReferrals(flags,
729 if (rc != NS_LDAP_SUCCESS) {
730 return_rc = rc;
736 rc = __s_api_append_default_basedn(
741 if (rc != NS_LDAP_SUCCESS) {
742 return_rc = rc;
752 rc = __s_api_getConnection(NULL,
760 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
763 * Reset rc to NS_LDAP_SUCCESS.
765 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
768 rc = NS_LDAP_SUCCESS;
771 if (rc != NS_LDAP_SUCCESS) {
772 return_rc = rc;
798 rc = ldap_add_ext_s(conp->ld, target_dn,
803 rc = ldap_delete_ext_s(conp->ld, target_dn,
808 rc = ldap_modify_ext_s(conp->ld, target_dn,
813 rc = ldap_add_ext(conp->ld, target_dn,
818 rc = ldap_delete_ext(conp->ld, target_dn,
823 rc = ldap_modify_ext(conp->ld, target_dn,
828 if (rc != LDAP_SUCCESS) {
829 Errno = rc;
857 rc = ldap_result(conp->ld, msgid, 1,
860 if (rc == -1) {
866 if (rc == LDAP_RES_ADD || rc == LDAP_RES_MODIFY ||
867 rc == LDAP_RES_DELETE) {
871 return_rc = rc;
881 rc = ldap_parse_result(conp->ld, res, &Errno,
903 rc = __s_api_addRefInfo(&ref_list,
906 if (rc != NS_LDAP_SUCCESS) {
914 if (rc != NS_LDAP_MEMORY)
915 rc = NS_LDAP_INTERNAL;
916 return_rc = rc;
957 rc = __s_api_getConnection(current_ref->refHost,
965 * e.g. rc == NS_LDAP_SUCCESS_WITH_INFO,
968 * Reset rc to NS_LDAP_SUCCESS.
970 if (rc == NS_LDAP_SUCCESS_WITH_INFO) {
973 rc = NS_LDAP_SUCCESS;
976 if (rc != NS_LDAP_SUCCESS) {
977 return_rc = rc;
1085 " (state = %d, rc = %d)."),
1123 int rc = 0;
1140 rc = write_state_machine(LDAP_REQ_MODIFY,
1144 return (rc);
1159 int rc = 0;
1176 rc = write_state_machine(LDAP_REQ_MODIFY,
1180 return (rc);
1188 int rc, ldaprc;
1210 rc = NS_LDAP_CONFIG;
1214 rc = NS_LDAP_MEMORY;
1215 return (rc);
1223 rc = NS_LDAP_CONFIG;
1227 rc = NS_LDAP_MEMORY;
1228 return (rc);
1280 int rc = 0;
1320 rc = send_to_cachemgr(dn, (ns_ldap_attr_t **)attr, errorp);
1321 return (rc);
1335 if ((rc = get_admin_passwd((ns_cred_t *)cred, errorp)) !=
1337 return (rc);
1344 rc = write_state_machine(LDAP_REQ_MODIFY,
1348 return (rc);
1365 int rc = 0;
1385 rc = replace_mapped_attr_in_dn(service, dn, &new_dn);
1386 if (rc != NS_LDAP_SUCCESS) {
1388 return (rc);
1391 rc = write_state_machine(LDAP_REQ_ADD,
1397 return (rc);
1410 int rc;
1420 rc = write_state_machine(LDAP_REQ_DELETE,
1423 return (rc);
1529 int rc;
1569 rc = __s_add_attr(e, "uid", ptr->pw_name);
1570 if (rc != NS_LDAP_SUCCESS) {
1572 return (rc);
1574 rc = __s_add_attr(e, "cn", ptr->pw_name);
1575 if (rc != NS_LDAP_SUCCESS) {
1577 return (rc);
1582 rc = __s_add_attr(e, "userPassword", ptr->pw_passwd);
1583 if (rc != NS_LDAP_SUCCESS) {
1585 return (rc);
1590 rc = __s_add_attr(e, "uidNumber", ibuf);
1591 if (rc != NS_LDAP_SUCCESS) {
1593 return (rc);
1597 rc = __s_add_attr(e, "gidNumber", ibuf);
1598 if (rc != NS_LDAP_SUCCESS) {
1600 return (rc);
1604 rc = __s_add_attr(e, "gecos", ptr->pw_gecos);
1605 if (rc != NS_LDAP_SUCCESS) {
1607 return (rc);
1611 rc = __s_add_attr(e, "homeDirectory", ptr->pw_dir);
1612 if (rc != NS_LDAP_SUCCESS) {
1614 return (rc);
1618 rc = __s_add_attr(e, "loginShell", ptr->pw_shell);
1619 if (rc != NS_LDAP_SUCCESS) {
1621 return (rc);
1671 int rc;
1712 rc = __s_add_attr(e, "SolarisProjectName", ptr->pj_name);
1713 if (rc != NS_LDAP_SUCCESS) {
1715 return (rc);
1727 rc = __s_add_attr(e, "SolarisProjectID", ibuf);
1728 if (rc != NS_LDAP_SUCCESS) {
1730 return (rc);
1735 rc = __s_add_attr(e, "description", ptr->pj_comment);
1736 if (rc != NS_LDAP_SUCCESS) {
1738 return (rc);
1744 rc = __s_add_attr(e, "SolarisProjectAttr", ptr->pj_attr);
1745 if (rc != NS_LDAP_SUCCESS) {
1747 return (rc);
1753 rc = __s_add_attrlist(e, "memberUid", ptr->pj_users);
1754 if (rc != NS_LDAP_SUCCESS) {
1756 return (rc);
1762 rc = __s_add_attrlist(e, "memberGid", ptr->pj_groups);
1763 if (rc != NS_LDAP_SUCCESS) {
1765 return (rc);
1783 int rc;
1822 rc = __s_add_attr(e, "uid", ptr->sp_namp);
1823 if (rc != NS_LDAP_SUCCESS) {
1825 return (rc);
1832 rc = __s_add_attr(e, "userPassword", ptr->sp_pwdp);
1833 if (rc != NS_LDAP_SUCCESS) {
1835 return (rc);
1840 rc = __s_add_attr(e, "shadowLastChange", ibuf);
1841 if (rc != NS_LDAP_SUCCESS) {
1843 return (rc);
1848 rc = __s_add_attr(e, "shadowMin", ibuf);
1849 if (rc != NS_LDAP_SUCCESS) {
1851 return (rc);
1856 rc = __s_add_attr(e, "shadowMax", ibuf);
1857 if (rc != NS_LDAP_SUCCESS) {
1859 return (rc);
1864 rc = __s_add_attr(e, "shadowWarning", ibuf);
1865 if (rc != NS_LDAP_SUCCESS) {
1867 return (rc);
1872 rc = __s_add_attr(e, "shadowInactive", ibuf);
1873 if (rc != NS_LDAP_SUCCESS) {
1875 return (rc);
1880 rc = __s_add_attr(e, "shadowExpire", ibuf);
1881 if (rc != NS_LDAP_SUCCESS) {
1883 return (rc);
1887 rc = __s_add_attr(e, "shadowFlag", ibuf);
1888 if (rc != NS_LDAP_SUCCESS) {
1890 return (rc);
1907 int rc;
1946 rc = __s_add_attr(e, "cn", ptr->gr_name);
1947 if (rc != NS_LDAP_SUCCESS) {
1949 return (rc);
1953 rc = __s_add_attr(e, "gidNumber", ibuf);
1954 if (rc != NS_LDAP_SUCCESS) {
1956 return (rc);
1959 rc = __s_add_attr(e, "userPassword", ptr->gr_passwd);
1960 if (rc != NS_LDAP_SUCCESS) {
1962 return (rc);
1986 rc = __s_add_attrlist(e, "memberUid", nm);
1992 if (rc != NS_LDAP_SUCCESS) {
1994 return (rc);
2011 int rc;
2070 rc = __s_add_attrlist(e, "cn", nm);
2072 if (rc != NS_LDAP_SUCCESS) {
2075 return (rc);
2081 rc = __s_add_attrlist(e, "description", nm);
2085 if (rc != NS_LDAP_SUCCESS) {
2087 return (rc);
2090 rc = __s_add_attr(e, "cn", ptr->h_name);
2091 if (rc != NS_LDAP_SUCCESS) {
2093 return (rc);
2117 rc = __s_add_attrlist(e, "ipHostNumber", nm);
2123 if (rc != NS_LDAP_SUCCESS) {
2125 return (rc);
2145 int rc;
2197 rc = __s_add_attrlist(e, "cn", nm);
2200 if (rc != NS_LDAP_SUCCESS) {
2202 return (rc);
2205 rc = __s_add_attr(e, "cn", ptr->r_name);
2206 if (rc != NS_LDAP_SUCCESS) {
2208 return (rc);
2214 rc = __s_add_attr(e, "oncRpcNumber", ibuf);
2215 if (rc != NS_LDAP_SUCCESS) {
2217 return (rc);
2235 int rc;
2287 rc = __s_add_attrlist(e, "cn", nm);
2290 if (rc != NS_LDAP_SUCCESS) {
2292 return (rc);
2295 rc = __s_add_attr(e, "cn", ptr->p_name);
2296 if (rc != NS_LDAP_SUCCESS) {
2298 return (rc);
2303 rc = __s_add_attr(e, "ipProtocolNumber", ibuf);
2304 if (rc != NS_LDAP_SUCCESS) {
2306 return (rc);
2323 int rc;
2387 rc = __s_add_attrlist(e, "cn", nm);
2390 if (rc != NS_LDAP_SUCCESS) {
2392 return (rc);
2395 rc = __s_add_attr(e, "cn", ptr->s_name);
2396 if (rc != NS_LDAP_SUCCESS) {
2398 return (rc);
2403 rc = __s_add_attr(e, "ipServicePort", ibuf);
2404 if (rc != NS_LDAP_SUCCESS) {
2406 return (rc);
2408 rc = __s_add_attr(e, "ipServiceProtocol", ptr->s_proto);
2409 if (rc != NS_LDAP_SUCCESS) {
2411 return (rc);
2427 int rc;
2485 rc = __s_add_attrlist(e, "cn", nm);
2488 if (rc != NS_LDAP_SUCCESS) {
2490 return (rc);
2493 rc = __s_add_attr(e, "cn", ptr->n_name);
2494 if (rc != NS_LDAP_SUCCESS) {
2496 return (rc);
2500 rc = __s_add_attr(e, "ipNetworkNumber", cp);
2501 if (rc != NS_LDAP_SUCCESS) {
2503 return (rc);
2519 int rc;
2555 rc = __s_add_attr(e, "ipNetworkNumber", ptr->netnumber);
2556 if (rc != NS_LDAP_SUCCESS) {
2558 return (rc);
2562 rc = __s_add_attr(e, "ipNetmaskNumber", ptr->netmask);
2563 if (rc != NS_LDAP_SUCCESS) {
2565 return (rc);
2582 int rc;
2620 rc = __s_add_attr(e, "cn", ptr->name);
2621 if (rc != NS_LDAP_SUCCESS) {
2623 return (rc);
2640 rc = __s_add_attrlist(e, "nisNetgroupTriple", nm);
2643 if (rc != NS_LDAP_SUCCESS) {
2645 return (rc);
2660 rc = __s_add_attrlist(e, "memberNisNetgroup", nm);
2663 if (rc != NS_LDAP_SUCCESS) {
2665 return (rc);
2680 int rc;
2719 rc = __s_add_attr(e, "cn", ptr->name);
2720 if (rc != NS_LDAP_SUCCESS) {
2722 return (rc);
2739 rc = __s_add_attrlist(e, "bootParameter", nm);
2742 if (rc != NS_LDAP_SUCCESS) {
2744 return (rc);
2761 int rc;
2798 rc = __s_add_attr(e, "cn", ptr->name);
2799 if (rc != NS_LDAP_SUCCESS) {
2801 return (rc);
2804 rc = __s_add_attr(e, "macAddress", ptr->ether);
2805 if (rc != NS_LDAP_SUCCESS) {
2807 return (rc);
2841 int rc = 0;
2871 rc = __ns_ldap_list(service, filter, NULL, (const char **)NULL,
2875 switch (rc) {
2881 rc = NS_LDAP_INTERNAL;
2901 rc = NS_LDAP_OP_FAILED;
2908 rc = __ns_ldap_addAttr(service, fulldn, aptr, cred, flags,
2921 return (rc);
2934 int rc;
2973 rc = __s_add_attr(e, "nisPublickey", ptr->pubkey);
2974 if (rc != NS_LDAP_SUCCESS) {
2976 return (rc);
2979 rc = __s_add_attr(e, "nisSecretkey", ptr->privkey);
2980 if (rc != NS_LDAP_SUCCESS) {
2982 return (rc);
2997 int rc;
3035 rc = __s_add_attr(e, "mail", (char *)ptr->alias);
3036 if (rc != NS_LDAP_SUCCESS) {
3038 return (rc);
3055 rc = __s_add_attrlist(e, "mgrpRFC822MailMember", nm);
3058 if (rc != NS_LDAP_SUCCESS) {
3060 return (rc);
3077 int rc;
3095 rc = __ns_ldap_getParam(NS_LDAP_FILE_VERSION_P, &paramVal, errorp);
3101 if (rc && errorp)
3134 rc = __s_add_attr(e, version1 ? "cn" : "automountKey",
3136 if (rc != NS_LDAP_SUCCESS) {
3138 return (rc);
3142 rc = __s_add_attr(e, version1 ? "nisMapEntry" : "automountInformation",
3144 if (rc != NS_LDAP_SUCCESS) {
3146 return (rc);
3161 rc = __s_add_attr(e, "nisMapName", (char *)ptr->mapname);
3162 if (rc != NS_LDAP_SUCCESS) {
3164 return (rc);
3180 int rc;
3216 rc = __s_add_attr(e, "cn", ptr->name);
3217 if (rc != NS_LDAP_SUCCESS) {
3219 return (rc);
3222 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attr);
3223 if (rc != NS_LDAP_SUCCESS) {
3225 return (rc);
3229 rc = __s_add_attr(e, "SolarisAttrReserved1", ptr->res1);
3230 if (rc != NS_LDAP_SUCCESS) {
3232 return (rc);
3237 rc = __s_add_attr(e, "SolarisAttrReserved2", ptr->res2);
3238 if (rc != NS_LDAP_SUCCESS) {
3240 return (rc);
3245 rc = __s_add_attr(e, "SolarisAttrShortDesc", ptr->short_desc);
3246 if (rc != NS_LDAP_SUCCESS) {
3248 return (rc);
3253 rc = __s_add_attr(e, "SolarisAttrLongDesc", ptr->long_desc);
3254 if (rc != NS_LDAP_SUCCESS) {
3256 return (rc);
3272 int rc;
3325 rc = __s_add_attr(e, "cn", ptr->name);
3326 if (rc != NS_LDAP_SUCCESS) {
3328 return (rc);
3331 rc = __s_add_attr(e, "SolarisKernelSecurityPolicy", ptr->policy);
3332 if (rc != NS_LDAP_SUCCESS) {
3334 return (rc);
3337 rc = __s_add_attr(e, "SolarisProfileType", ptr->type);
3338 if (rc != NS_LDAP_SUCCESS) {
3340 return (rc);
3343 rc = __s_add_attr(e, "SolarisProfileId", ptr->id);
3344 if (rc != NS_LDAP_SUCCESS) {
3346 return (rc);
3349 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attr);
3350 if (rc != NS_LDAP_SUCCESS) {
3352 return (rc);
3356 rc = __s_add_attr(e, "SolarisAttrRes1", ptr->res1);
3357 if (rc != NS_LDAP_SUCCESS) {
3359 return (rc);
3364 rc = __s_add_attr(e, "SolarisAttrRes2", ptr->res2);
3365 if (rc != NS_LDAP_SUCCESS) {
3367 return (rc);
3383 int rc;
3419 rc = __s_add_attr(e, "cn", ptr->name);
3420 if (rc != NS_LDAP_SUCCESS) {
3422 return (rc);
3425 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attr);
3426 if (rc != NS_LDAP_SUCCESS) {
3428 return (rc);
3432 rc = __s_add_attr(e, "SolarisAttrReserved1", ptr->res1);
3433 if (rc != NS_LDAP_SUCCESS) {
3435 return (rc);
3440 rc = __s_add_attr(e, "SolarisAttrReserved2", ptr->res2);
3441 if (rc != NS_LDAP_SUCCESS) {
3443 return (rc);
3448 rc = __s_add_attr(e, "SolarisAttrLongDesc", ptr->desc);
3449 if (rc != NS_LDAP_SUCCESS) {
3451 return (rc);
3467 int rc;
3507 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attr);
3508 if (rc != NS_LDAP_SUCCESS) {
3510 return (rc);
3514 rc = __s_add_attr(e, "SolarisUserQualifier", ptr->qualifier);
3515 if (rc != NS_LDAP_SUCCESS) {
3517 return (rc);
3522 rc = __s_add_attr(e, "SolarisAttrReserved1", ptr->res1);
3523 if (rc != NS_LDAP_SUCCESS) {
3525 return (rc);
3530 rc = __s_add_attr(e, "SolarisAttrReserved2", ptr->res2);
3531 if (rc != NS_LDAP_SUCCESS) {
3533 return (rc);
3549 int rc;
3589 rc = __s_add_attr(e, "SolarisAuditAlways", ptr->au_always);
3590 if (rc != NS_LDAP_SUCCESS) {
3592 return (rc);
3597 rc = __s_add_attr(e, "SolarisAuditNever", ptr->au_never);
3598 if (rc != NS_LDAP_SUCCESS) {
3600 return (rc);
3616 int rc;
3662 rc = __s_add_attr(e, "ipTnetTemplateName", ptr->template);
3663 if (rc != NS_LDAP_SUCCESS) {
3665 return (rc);
3668 rc = __s_add_attr(e, "SolarisAttrKeyValue", ptr->attrs);
3669 if (rc != NS_LDAP_SUCCESS) {
3671 return (rc);
3686 int rc;
3724 rc = __s_add_attr(e, "ipTnetNumber", ptr->address);
3725 if (rc != NS_LDAP_SUCCESS) {
3727 return (rc);
3730 rc = __s_add_attr(e, "ipTnetTemplateName", ptr->template);
3731 if (rc != NS_LDAP_SUCCESS) {
3733 return (rc);
3802 int rc = 0;
3806 rc = NS_LDAP_OP_FAILED;
3822 return (rc);
3825 rc = (*__s_cvtlist[s].cvt_rtn)(data, &rdn, &entry, errorp);
3826 if (rc != NS_LDAP_SUCCESS) {
3828 return (rc);
3847 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
3849 if (rc != NS_LDAP_SUCCESS) {
3851 return (rc);
3855 rc = __s_api_getDNs(&dns, service, errorp);
3856 if (rc != NS_LDAP_SUCCESS) {
3862 return (rc);
3877 rc = __ns_ldap_getParam(NS_LDAP_SEARCH_BASEDN_P,
3879 if (rc != NS_LDAP_SUCCESS) {
3881 return (rc);
3932 rc = __ns_ldap_addAttr(service, fulldn, modattrlist,
3935 rc = __ns_ldap_repAttr(service, fulldn, modattrlist,
3937 if (rc == NS_LDAP_INTERNAL && *errorp &&
3940 rc = __ns_ldap_addEntry(service, fulldn,
3942 if (rc == NS_LDAP_INTERNAL && *errorp &&
3950 rc = __ns_ldap_addEntry(service, fulldn, entry,
3952 if (rc == NS_LDAP_INTERNAL && *errorp &&
3956 rc = modify_ethers_bootp(service, rdn, fulldn,
3965 return (rc);
3982 int rc = NS_LDAP_SUCCESS, len = 0;
3992 rc = __ns_ldap_getParam(NS_LDAP_SEARCH_BASEDN_P,
3995 if (rc != NS_LDAP_SUCCESS) {
3998 return (rc);
4119 int rc;
4152 rc = NS_LDAP_SUCCESS;
4154 rc = admin_result->ns_err;
4168 return (rc);