Enable subordinate scope feature

This commit is contained in:
Kurt Zeilenga 2005-01-26 03:30:22 +00:00
parent 51c4161ca9
commit 8b730300a2
2 changed files with 5 additions and 5 deletions

View File

@ -1125,7 +1125,7 @@ re_encode_request( LDAP *ld,
scope = LDAP_SCOPE_BASE;
break;
case LDAP_SCOPE_SUBTREE:
#ifdef LDAP_FEATURE_SUBORDINATE_SCOPE
#ifdef LDAP_SCOPE_SUBORDINATE
case LDAP_SCOPE_SUBORDINATE:
#endif
scope = LDAP_SCOPE_SUBTREE;

View File

@ -509,7 +509,7 @@ desc2str_len( LDAPURLDesc *u )
case LDAP_SCOPE_BASE:
case LDAP_SCOPE_ONELEVEL:
case LDAP_SCOPE_SUBTREE:
#ifdef LDAP_FEATURE_SUBORDINATE_SCOPE
#ifdef LDAP_SCOPE_SUBORDINATE
case LDAP_SCOPE_SUBORDINATE:
#endif
switch ( u->lud_scope ) {
@ -525,7 +525,7 @@ desc2str_len( LDAPURLDesc *u )
len += STRLENOF( "sub" );
break;
#ifdef LDAP_FEATURE_SUBORDINATE_SCOPE
#ifdef LDAP_SCOPE_SUBORDINATE
case LDAP_SCOPE_SUBORDINATE:
len += STRLENOF( "subordinate" );
break;
@ -597,7 +597,7 @@ desc2str( LDAPURLDesc *u, char *s, int len )
case LDAP_SCOPE_BASE:
case LDAP_SCOPE_ONELEVEL:
case LDAP_SCOPE_SUBTREE:
#ifdef LDAP_FEATURE_SUBORDINATE_SCOPE
#ifdef LDAP_SCOPE_SUBORDINATE
case LDAP_SCOPE_SUBORDINATE:
#endif
gotscope = 1;
@ -690,7 +690,7 @@ desc2str( LDAPURLDesc *u, char *s, int len )
len -= STRLENOF("sub");
break;
#ifdef LDAP_FEATURE_SUBORDINATE_SCOPE
#ifdef LDAP_SCOPE_SUBORDINATE
case LDAP_SCOPE_SUBORDINATE:
strcpy( &s[sofar], "children" );
sofar += STRLENOF("children");