}
result = NULL;
+#ifdef LDAP_UFN
if ( strchr( key, ',' ) != NULL ) {
int ld_deref = LDAP_DEREF_FINDING;
ldap_set_option(ld, LDAP_OPT_DEREF, &ld_deref);
exit( -1 );
}
matches = ldap_count_entries( ld, result );
- } else {
+ } else
+#endif
+ {
for ( fi = ldap_getfirstfilter( filtd, "rp500", key );
fi != NULL; fi = ldap_getnextfilter( filtd ) ) {
if ( (rc = ldap_search_s( ld, base, LDAP_SCOPE_SUBTREE,
#define FINGER_DEREF LDAP_DEREF_FINDING
/* attribute to use when sorting results */
#define FINGER_SORT_ATTR SORT_ATTR
+#ifdef LDAP_UFN
/* enable ufn support */
#define FINGER_UFN
+#endif
/* timeout for searches */
#define FINGER_TIMEOUT 60
/* number of DN components to show in entry displays */
#define GO500_SORT_ATTR SORT_ATTR
/* timeout for searches */
#define GO500_TIMEOUT 180
+#ifdef LDAP_UFN
/* enable ufn support */
#define GO500_UFN
+#endif
/*
* only set and uncomment this if your hostname() does not return
* a fully qualified hostname
#define GO500GW_PORT 7777
/* timeout on all searches */
#define GO500GW_TIMEOUT 180
+#ifdef LDAP_UFN
/* enable ufn support */
#define GO500GW_UFN
+#endif
/* attribute to use when sorting results */
#define GO500GW_SORT_ATTR SORT_ATTR
/*
#define RCPT500_SORT_ATTR SORT_ATTR
/* max number of hits displayed in full before a list is presented */
#define RCPT500_LISTLIMIT 1
+#ifdef LDAP_UFN
/* enable ufn support */
#define RCPT500_UFN
+#endif
/* number of DN components to show in entry displays */
#define RCPT500_RDNCOUNT DEFAULT_RDNCOUNT
return NULL;
}
-#if 0
+#if LDAP_SEQORSET_BAILOUT
if( len == 0 ) {
return NULL;
}
#endif
-#if 0
+#if LBER_SEQORSET_AVOID_OVERRUN
/* set the length to avoid overrun */
rc = ber_set_option( ber, LBER_OPT_REMAINING_BYTES, &len );
if( rc != LBER_OPT_SUCCESS ) {
assert( entry != NULL );
assert( ber != NULL );
-#if 0
+#if LDAP_SEQORSET_BAILOUT
if ( ber_pvt_ber_remaining( ber ) == 0 ) {
return NULL;
}