From: Pierangelo Masarati Date: Tue, 20 Apr 2004 14:55:02 +0000 (+0000) Subject: improve slapacl X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~461 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d3a49b33fd536708fedb05009b2760be993d6f6;p=openldap improve slapacl --- diff --git a/servers/slapd/slapacl.c b/servers/slapd/slapacl.c index 6caf938af5..a6b7ccd883 100644 --- a/servers/slapd/slapacl.c +++ b/servers/slapd/slapacl.c @@ -56,8 +56,6 @@ slapacl( int argc, char **argv ) connection_fake_init( &conn, &op, &conn ); - assert( be != NULL ); - if ( !BER_BVISNULL( &authcID ) ) { rc = slap_sasl_getdn( &conn, &op, &authcID, NULL, &authcDN, SLAP_GETDN_AUTHCID ); if ( rc != LDAP_SUCCESS ) { diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index a42b652890..05ba7e8e19 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -432,6 +432,10 @@ slap_tool_init( be = select_backend( &nbase, 0, 0 ); ber_memfree( nbase.bv_val ); + if ( tool == SLAPACL ) { + goto startup; + } + if( be == NULL ) { fprintf( stderr, "%s: slap_init no backend for \"%s\"\n", progname, base.bv_val );