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

no UD_BASE to use for my_ldap_dn2ufn(). Comment out strstr(s,NULL).

parent 3908eae0
No related branches found
No related tags found
No related merge requests found
......@@ -405,15 +405,19 @@ isadn( char *s )
char *
my_ldap_dn2ufn( char *s )
{
#ifdef UD_BASE
register char **cpp;
static char short_DN[BUFSIZ];
if (strstr(s, NULL) == NULL)
if (strstr(s, UD_BASE) == NULL)
return(ldap_dn2ufn(s));
cpp = ldap_explode_dn(s, TRUE);
sprintf(short_DN, "%s, %s", *cpp, *(cpp + 1));
ldap_value_free(cpp);
return(short_DN);
#else
return(ldap_dn2ufn(s));
#endif
}
/* return TRUE if this attribute should be printed as a URL */
......
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