Lines Matching refs:attr

113 	char	**attrs, **mapped_attrs, **mapp, *type, *value, *attr;
145 if ((attr = (char *)calloc(1, len)) == NULL) {
149 (void) snprintf(attr, len, "%s=%s",
151 mapped_attrs[i] = attr;
312 char *attr = NULL;
377 nAttrs = 1; /* start with 1 for the DN attr */
378 for (attr = ldap_first_attribute(ld, e, &ber); attr != NULL;
379 attr = ldap_next_attribute(ld, e, ber)) {
381 ldap_memfree(attr);
382 attr = NULL;
459 for (attr = ldap_first_attribute(ld, e, &ber), j = 1;
460 attr != NULL && j != nAttrs;
461 attr = ldap_next_attribute(ld, e, ber), j++) {
462 /* allocate new attr name */
479 mapping = __ns_ldap_getOrigAttribute(service, attr);
490 attr);
493 if ((ap[j]->attrname = strdup(attr)) == NULL) {
511 ap[j]->attrname = strdup(attr);
553 mapping[0], attr);
573 * 3rd attr in the mapping list?
579 attr) == 0) {
597 mapping[0], attr);
615 if ((vals = ldap_get_values(ld, e, attr)) != NULL) {
701 ldap_memfree(attr);
702 attr = NULL;
4526 * This function is called to covert the mapped attr back to
4527 * orig attr when the entries are searched and returned
4570 * if the mapped attribute is found and attr is not empty,
4608 * If mapped attr is found(buffer != NULL)
4625 * If the mapped attr is found in the dn,
4627 * If no mapped attr is found,
4654 * This will find "mapped attr=value" in dn.
4655 * It won't find match if mapped attr appears
4680 * orig attr and mapped attr) + 1 ;
4697 * Locate the mapped attr in the dn.
4705 /* copy the portion before mapped attr in dn */
4712 * This replaces mapped attr with orig attr
4718 * Copy the portion after mapped attr in dn