ber_int_t vlvPos;
ber_int_t vlvCount;
struct berval *vlvContext;
-#ifdef LDAP_CONTROL_AUTHZID_REQUEST
static int bauthzid;
-#endif /* LDAP_CONTROL_AUTHZID_REQUEST */
LDAPControl *unknown_ctrls = NULL;
int unknown_ctrls_num = 0;
proxydn = ber_strdup( cvalue );
#endif /* LDAP_CONTROL_OBSOLETE_PROXY_AUTHZ */
-#ifdef LDAP_CONTROL_AUTHZID_REQUEST
} else if ( strcasecmp( control, "bauthzid" ) == 0 ) {
if( bauthzid ) {
fprintf( stderr, "bauthzid control previously specified\n");
usage();
}
bauthzid = 1 + crit;
-#endif
} else if ( ( strcasecmp( control, "relax" ) == 0 ) ||
( strcasecmp( control, "manageDIT" ) == 0 ) )
}
#endif
-#ifdef LDAP_CONTROL_AUTHZID_REQUEST
if ( bauthzid ) {
LDAPControl c;
sctrls[nsctrls] = &sctrl[nsctrls];
sctrls[++nsctrls] = NULL;
}
-#endif /* LDAP_CONTROL_AUTHZID_REQUEST */
#ifdef LDAP_CONTROL_X_SESSION_TRACKING
if ( sessionTracking ) {
}
#endif
-#ifdef LDAP_CONTROL_AUTHZID_REQUEST
if ( ctrls && bauthzid ) {
LDAPControl *ctrl;
tool_print_ctrls( ld, ctmp );
}
}
-#endif /* LDAP_CONTROL_AUTHZID_REQUEST */
if ( ctrls ) {
ldap_controls_free( ctrls );