]> git.sur5r.net Git - openldap/commitdiff
improve slapacl
authorPierangelo Masarati <ando@openldap.org>
Tue, 20 Apr 2004 14:55:02 +0000 (14:55 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 20 Apr 2004 14:55:02 +0000 (14:55 +0000)
servers/slapd/slapacl.c
servers/slapd/slapcommon.c

index 6caf938af5dfba40fcd37aaae910a47a5fe46b5f..a6b7ccd883fdbb3bb5a0f8bfe6e827256a6907a8 100644 (file)
@@ -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 ) {
index a42b652890ff21556c1b9dbbd5ce3b37a28f15e2..05ba7e8e1916c26f6ba0df5c8cb38d5662da1c0b 100644 (file)
@@ -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 );