int rc;
struct berval vals[2];
- static int lastmod = ON;
+ static int lastmod = 1;
static BackendInfo *bi = NULL;
static BackendDB *be = NULL;
if ( be ) {
be->be_flags &= ~SLAP_BFLAG_NOLASTMOD;
} else {
- lastmod = ON;
+ lastmod = 1;
}
} else {
if ( be ) {
be->be_flags |= SLAP_BFLAG_NOLASTMOD;
} else {
- lastmod = OFF;
+ lastmod = 0;
}
}
if ( rc )
return rc;
} else if ( !strcasecmp( cargv[0], "TLSVerifyClient" ) ) {
- i = atoi(cargv[1]);
- rc = ldap_pvt_tls_set_option( NULL,
+ if ( isdigit( cargv[1][0] ) ) {
+ i = atoi(cargv[1]);
+ rc = ldap_pvt_tls_set_option( NULL,
LDAP_OPT_X_TLS_REQUIRE_CERT,
&i );
+ } else {
+ rc = ldap_int_tls_config( NULL,
+ LDAP_OPT_X_TLS_REQUIRE_CERT,
+ cargv[1] );
+ }
+
if ( rc )
return rc;
if( p > buf && p[-1] == '\r' ) --p;
*p = '\0';
}
- if ( ! isspace( (unsigned char) buf[0] ) ) {
- return( line );
- }
+
+ /* trim off trailing \ and append the next line */
+ if ( line[ 0 ] != '\0'
+ && (p = line + strlen( line ) - 1)[ 0 ] == '\\'
+ && p[ -1 ] != '\\' ) {
+ p[ 0 ] = '\0';
+ lcur--;
- /* change leading whitespace to a space */
- buf[0] = ' ';
+ } else {
+ if ( ! isspace( (unsigned char) buf[0] ) ) {
+ return( line );
+ }
+
+ /* change leading whitespace to a space */
+ buf[0] = ' ';
+ }
CATLINE( buf );
(*lineno)++;