mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Add -dn as a synonym for -dnt.
This commit is contained in:
parent
a847e20589
commit
c73f17fd6e
1 changed files with 2 additions and 0 deletions
|
|
@ -1034,6 +1034,8 @@ searchaction( LDAP *ld, char *buf, char *base, LDAPMessage *entry, char *dn,
|
|||
return( LDAP_PARAM_ERROR );
|
||||
} else if ( strcasecmp( attr, "-dnt" ) == 0 ) {
|
||||
value = dn;
|
||||
} else if ( strcasecmp( attr, "-dn" ) == 0 ) {
|
||||
value = dn;
|
||||
} else if (( vals = ldap_get_values( ld, entry, attr )) != NULL ) {
|
||||
value = vals[ 0 ];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue