Lines Matching refs:new_dn
85 const char *service, const char *dn, char **new_dn) in replace_mapped_attr_in_dn() argument
94 *new_dn = NULL; in replace_mapped_attr_in_dn()
139 *new_dn = (char *)calloc(1, len); in replace_mapped_attr_in_dn()
140 if (*new_dn == NULL) { in replace_mapped_attr_in_dn()
146 (void) snprintf(*new_dn, len, "%s=%s", mappedattr[0], dn + orig_len +1); in replace_mapped_attr_in_dn()
1363 char *new_dn = NULL; in __ns_ldap_addEntry() local
1387 rc = replace_mapped_attr_in_dn(service, dn, &new_dn); in __ns_ldap_addEntry()
1394 new_dn ? new_dn : (char *)dn, mods, cred, flags, errorp); in __ns_ldap_addEntry()
1396 if (new_dn) in __ns_ldap_addEntry()
1397 free(new_dn); in __ns_ldap_addEntry()
3972 __s_api_append_default_basedn(const char *dn, char **new_dn, int *allocated, in __s_api_append_default_basedn() argument
3981 *new_dn = NULL; in __s_api_append_default_basedn()
3998 *new_dn = (char *)malloc(len); in __s_api_append_default_basedn()
3999 if (*new_dn == NULL) { in __s_api_append_default_basedn()
4005 (void) strcpy(*new_dn, dn); in __s_api_append_default_basedn()
4006 (void) strcat(*new_dn, str); in __s_api_append_default_basedn()