Skip to content
Snippets Groups Projects
Commit 15fc0ccc authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Don't bother with friendly name

parent 88e34546
No related branches found
No related tags found
No related merge requests found
......@@ -37,9 +37,6 @@
void
printbase( char *lead, char *s )
{
register char **cp;
char **rdns;
#ifdef DEBUG
if (debug & D_TRACE)
printf("->printbase(%s, %s)\n", lead, s);
......@@ -52,19 +49,7 @@ printbase( char *lead, char *s )
printf("%sroot\n", lead);
return;
}
printf("%s", lead);
rdns = ldap_explode_dn(s, TRUE);
for (cp = rdns; ; ) {
printf("%s", friendly_name(*cp));
cp++;
if (*cp == NULL) {
printf("\n");
break;
}
else
printf(", ");
}
ldap_value_free(rdns);
printf("%s%s\n", lead, s);
return;
}
......@@ -361,18 +346,6 @@ code_to_str( int i )
}
}
char *
friendly_name( char *s )
{
static LDAPFriendlyMap *map = NULL;
static char *cp;
cp = ldap_friendly_name(FRIENDLYFILE, s, &map);
if (cp == NULL)
return(s);
return(cp);
}
#ifdef UOFM
/* return TRUE if s has the syntax of a uniqname */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment