Lines Matching defs:dn

209  * dn: cn-sm=aaa+iphostnumber-sm=9.9.9.9,dc=central,dc=sun,dc=com
211 * dn: cn=aaa+iphostnumber=9.9.9.9,dc=central,dc=sun,dc=com
214 * dn: the value of a distinguished name
219 _cvtDN(const char *service, const char *dn) {
224 if (service == NULL || dn == NULL)
227 if ((rdns = ldap_explode_dn(dn, 0)) == NULL)
250 new_dn = strdup(dn);
254 * Reconstruct dn from RDNs.
315 char *dn;
404 dn = ldap_get_dn(ld, e);
407 ldap_memfree(dn);
408 dn = NULL;
414 if ((ap[0]->attrname = strdup("dn")) == NULL) {
415 ldap_memfree(dn);
416 dn = NULL;
424 ldap_memfree(dn);
425 dn = NULL;
432 ap[0]->attrvalue[0] = _cvtDN(service, dn);
434 ap[0]->attrvalue[0] = strdup(dn);
437 ldap_memfree(dn);
438 dn = NULL;
443 ldap_memfree(dn);
444 dn = NULL;
3598 find_domainname(const char *dn, char **domainname, const ns_cred_t *cred,
3645 /* search base is dn */
3646 dptr->basedn = strdup(dn);
3697 __s_api_find_domainname(const char *dn, char **domainname,
3708 rc = find_domainname(dn, domainname, cred, errorp, cu);
4226 value = __ns_ldap_getAttr(result->entry, "dn");
4305 value = __ns_ldap_getAttr(result->entry, "dn");
4314 __ns_ldap_dn2domain(const char *dn,
4330 if ((dn == NULL) || (dn[0] == '\0'))
4334 * break dn into rdns
4336 dn1 = strdup(dn);
4357 /* construct a semi-normalized dn, newdn */
4400 * dn to domain mapping(s)
4521 * to AAA. So dn could appers as
4522 * dn: AAA=auto_home,ou=bar,dc=foo,dc=com
4523 * dn: automountKey=user_01,AAA=auto_home,ou=bar,dc=foo,dc=com
4524 * dn: automountKey=user_02,AAA=auto_home,ou=bar,dc=foo,dc=com
4531 __s_api_convert_automountmapname(const char *service, char **dn,
4542 * dn is an input/out parameter, check it first
4545 if (service == NULL || dn == NULL || *dn == NULL)
4595 * Locate the mapped attribute in the dn
4601 (const char *) *dn, &buffer);
4609 * a new dn is returned
4610 * If no mapped attribute is in dn,
4617 free(*dn);
4618 *dn = buffer;
4625 * If the mapped attr is found in the dn,
4636 const char *dn, char **new_dn) {
4647 * seperate dn into individual componets
4651 dnArray = ldap_explode_dn(dn, 0);
4654 * This will find "mapped attr=value" in dn.
4662 * Any ill formatted dn should be rejected
4679 * The new length is *dn length + (difference between
4688 dn_len = strlen(dn);
4697 * Locate the mapped attr in the dn.
4703 cur = strstr(dn, dnArray[i]);
4705 /* copy the portion before mapped attr in dn */
4707 tmp_len = cur - dn;
4708 (void) memcpy((void *) start, (const void*) dn, tmp_len);
4714 start = start + (cur - dn); /* move cursor in buffer */
4718 * Copy the portion after mapped attr in dn
4720 cur = cur + mapped_len; /* move cursor in dn */
4966 * cn:dn:1.2.3.4
5049 * [type][':dn'][':'oid]':='value
5058 if (strcasecmp(s2, ":dn") == 0) {
5063 if (strcasecmp(s3, ":dn") != 0) {