Lines Matching defs:dn

52 static int do_entry2text_search( LDAP *ld, char *dn, char *base,
62 static int output_dn( char *buf, char *dn, int width, int rdncount,
68 char *dn, struct ldap_tmplitem *tip, int labelwidth, int rdncount,
155 char *dn, **vals;
169 if (( dn = ldap_get_dn( ld, entry )) == NULL ) {
177 NSLDAPI_FREE( dn );
195 output_dn( buf, dn, 0, rdncount, writeproc, writeparm, "", NULL );
199 output_dn( buf, dn, 0, rdncount, writeproc, writeparm, "", NULL );
205 ( vals = ldap_explode_dn( dn, 0 )) != NULL ) {
234 strcat_escaped( buf, dn );
245 output_dn( buf, dn, 0, rdncount, writeproc, writeparm, "", NULL );
349 err = searchaction( ld, buf, base, entry, dn, colp,
375 NSLDAPI_FREE( dn );
388 char *dn, /* if NULL, use entry */
390 LDAPMessage *entry, /* if NULL, use dn */
403 return( do_entry2text_search( ld, dn, base, entry, tmpllist, defattrs,
413 char *dn, /* if NULL, use entry */
415 LDAPMessage *entry, /* if NULL, use dn */
429 return( do_entry2text_search( ld, dn, base, entry, tmpllist, defattrs,
437 char *dn, /* if NULL, use entry */
439 LDAPMessage *entry, /* if NULL, use dn */
461 if ( dn == NULL && entry == NULLMSG ) {
481 if ( dn == NULL ) {
482 if (( dn = ldap_get_dn( ld, entry )) == NULL ) {
500 err = cldap_search_s( ld, dn, LDAP_SCOPE_BASE,
504 err = ldap_search_st( ld, dn, LDAP_SCOPE_BASE,
534 err = cldap_search_s( ld, dn, LDAP_SCOPE_BASE, "objectClass=*",
538 err = ldap_search_st( ld, dn, LDAP_SCOPE_BASE, "objectClass=*",
542 NSLDAPI_FREE( dn );
838 output_dn( char *buf, char *dn, int width, int rdncount,
844 if (( dnrdns = ldap_explode_dn( dn, 1 )) == NULL ) {
850 strcat_escaped( buf, dn );
1037 searchaction( LDAP *ld, char *buf, char *base, LDAPMessage *entry, char *dn,
1068 value = dn;