mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-15 03:01:09 +08:00
no UD_BASE to use for my_ldap_dn2ufn(). Comment out strstr(s,NULL).
This commit is contained in:
parent
3908eae03f
commit
eb000d9e6a
@ -405,15 +405,19 @@ isadn( char *s )
|
|||||||
char *
|
char *
|
||||||
my_ldap_dn2ufn( char *s )
|
my_ldap_dn2ufn( char *s )
|
||||||
{
|
{
|
||||||
|
#ifdef UD_BASE
|
||||||
register char **cpp;
|
register char **cpp;
|
||||||
static char short_DN[BUFSIZ];
|
static char short_DN[BUFSIZ];
|
||||||
|
|
||||||
if (strstr(s, NULL) == NULL)
|
if (strstr(s, UD_BASE) == NULL)
|
||||||
return(ldap_dn2ufn(s));
|
return(ldap_dn2ufn(s));
|
||||||
cpp = ldap_explode_dn(s, TRUE);
|
cpp = ldap_explode_dn(s, TRUE);
|
||||||
sprintf(short_DN, "%s, %s", *cpp, *(cpp + 1));
|
sprintf(short_DN, "%s, %s", *cpp, *(cpp + 1));
|
||||||
ldap_value_free(cpp);
|
ldap_value_free(cpp);
|
||||||
return(short_DN);
|
return(short_DN);
|
||||||
|
#else
|
||||||
|
return(ldap_dn2ufn(s));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* return TRUE if this attribute should be printed as a URL */
|
/* return TRUE if this attribute should be printed as a URL */
|
||||||
|
Loading…
Reference in New Issue
Block a user