Commit 8b730300 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Enable subordinate scope feature

parent 51c4161c
......@@ -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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment