Lines Matching refs:ap
310 ns_ldap_attr_t **ap = NULL;
394 ap = (ns_ldap_attr_t **)calloc(ep->attr_count + 1,
396 if (ap == NULL) {
401 ep->attr_pair = ap;
405 ap[0] = (ns_ldap_attr_t *)calloc(1, sizeof (ns_ldap_attr_t));
406 if (ap[0] == NULL) {
414 if ((ap[0]->attrname = strdup("dn")) == NULL) {
421 ap[0]->value_count = 1;
422 if ((ap[0]->attrvalue = (char **)
432 ap[0]->attrvalue[0] = _cvtDN(service, dn);
434 ap[0]->attrvalue[0] = strdup(dn);
436 if (ap[0]->attrvalue[0] == NULL) {
449 &ap[0]->attrvalue[0],
464 if ((ap[j] = (ns_ldap_attr_t *)
493 if ((ap[j]->attrname = strdup(attr)) == NULL) {
511 ap[j]->attrname = strdup(attr);
514 ap[j]->attrname = strdup(mapping[0]);
516 if (ap[j]->attrname == NULL) {
617 if ((ap[j]->value_count =
623 ap[j]->attrvalue = (char **)
624 calloc(ap[j]->value_count+1,
626 if (ap[j]->attrvalue == NULL) {
641 schema_mapping_existed && ap[j]->attrname &&
642 strcasecmp(ap[j]->attrname, "objectclass") == 0) {
643 for (k = 0; k < ap[j]->value_count; k++) {
659 ap[j]->attrvalue[k] =
662 ap[j]->attrvalue[k] =
667 if (ap[j]->attrvalue[k] == NULL) {
680 for (k = 0; k < ap[j]->value_count; k++) {
681 if ((ap[j]->attrvalue[k] =
696 ap[j]->attrvalue[k] = NULL;
728 if (k != -1 && ap[k]->value_count > 0 &&
729 ap[k]->attrvalue[0] &&
730 strlen(ap[k]->attrvalue[0]) > 0) {
735 * ap with the data from the "gecos"
738 ap[nAttrs] = (ns_ldap_attr_t *)
741 if (ap[nAttrs] == NULL) {
746 ap[nAttrs]->attrvalue = (char **)calloc(
748 if (ap[nAttrs]->attrvalue == NULL) {
754 ap[nAttrs]->attrvalue[0] =
756 strlen(ap[f]->attrvalue[0]) +
758 if (ap[nAttrs]->attrvalue[0] == NULL) {
763 (void) strcpy(ap[nAttrs]->attrvalue[0],
764 ap[f]->attrvalue[0]);
766 ap[nAttrs]->attrname = strdup("gecos");
767 if (ap[nAttrs]->attrname == NULL) {
773 ap[nAttrs]->value_count = 1;
781 * ap[k]->attrvalue[0]
784 ap[nAttrs]->attrvalue[0],
785 strlen(ap[nAttrs]->
787 strlen(ap[k]->
794 ap[nAttrs]->attrvalue[0] = tmp;
795 (void) strcat(ap[nAttrs]->attrvalue[0],
797 (void) strcat(ap[nAttrs]->attrvalue[0],
798 ap[k]->attrvalue[0]);
4431 ns_auth_t **authpp = NULL, *ap;
4491 ap = __s_api_AuthEnumtoStruct((EnumAuthType_t)i);
4492 if (ap == NULL) {
4497 authpp[cnt++] = ap;