mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Enable subordinate scope feature
This commit is contained in:
parent
51c4161ca9
commit
8b730300a2
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user