From c73f17fd6e39f774fcda5b11ec74ef9f9bc30604 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 2 Aug 1999 17:19:05 +0000 Subject: [PATCH] Add -dn as a synonym for -dnt. --- libraries/libldap/tmplout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/libldap/tmplout.c b/libraries/libldap/tmplout.c index 74e7d48cc7..ead67ea075 100644 --- a/libraries/libldap/tmplout.c +++ b/libraries/libldap/tmplout.c @@ -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 { -- 2.39.5