Lines Matching defs:rc

113 	int			rc	= 0;
135 rc = 0;
138 if (rc == 0) {
140 rc = yp_parse_ldap_default_conf(&proxyInfo, &ldapConfig,
151 if (rc == 0 && config_file != NULL) {
156 rc = yp_parse_ldap_config_file(config_file, &proxyInfo,
163 if (rc == 0 && (config_info.config_dn != NULL) &&
165 rc = parse_ldap_config_dn_attrs(&proxyInfo,
172 if (rc == 0 && got_config_data == FALSE)
173 rc = 1;
177 if (yp2ldap == 1 && rc == 0) {
178 rc = second_parser_pass(&ldapTableMapping);
179 if (rc == 0)
180 rc = final_parser_pass(&ldapTableMapping, &ypDomains);
181 if (rc == -2)
185 if (rc == 0)
186 rc = finish_parse(&proxyInfo, &ldapTableMapping);
188 if (rc == 0)
189 rc = linked2hash(ldapTableMapping);
191 if ((rc == 0) && yptol_mode)
192 rc = map_id_list_init();
194 if (rc != 0) {
198 return (rc);
208 int rc = 0;
246 rc = -1;
271 rc = add_bind_attribute(attrib_num,
274 rc = add_operation_attribute(attrib_num,
280 rc = -1;
288 return (rc);
371 int rc = 0;
394 rc = add_config_attribute(attrib_num,
397 rc = add_bind_attribute(attrib_num,
400 rc = add_operation_attribute(attrib_num,
403 rc = add_ypdomains_attribute(attrib_num,
406 rc = add_mapping_attribute(attrib_num,
409 rc = -1;
413 if (rc < 0) {
429 rc = -1;
433 return (rc);
534 int rc = 0;
662 int rc = 0;
692 rc = add_bind_attribute(attrib_num, attr_val,
695 rc = add_operation_attribute(attrib_num,
698 rc = add_mapping_attribute(attrib_num, attr_val,
705 rc = add_bind_attribute(attrib_num, attr_val,
708 rc = add_operation_attribute(attrib_num,
711 rc = add_mapping_attribute(attrib_num, attr_val,
745 rc = -1;
746 return (rc);
771 int rc;
776 if ((rc = ldap_url_parse(url, &ludpp)) != LDAP_SUCCESS)
811 rc = -1;
813 rc = process_ldap_config_result(ld, resultMsg, proxy_info,
822 return (rc);
851 int rc;
853 rc = ldap_parse_result(ld, resultMsg, &errCode, NULL, NULL, &referralsp,
856 if (rc != LDAP_SUCCESS || errCode != LDAP_REFERRAL) {
859 rc = -1;
862 rc = process_ldap_referral(referralsp[i], attrs,
865 if (rc <= 0)
872 if (rc > 0) {
881 return (rc);
904 int rc = 0;
955 rc = process_ldap_referral_msg(ld, resultMsg,
961 rc = -1;
963 rc = process_ldap_config_result(ld, resultMsg, proxy_info,
972 return (rc);