mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
improve slapacl
This commit is contained in:
parent
30f697beeb
commit
4d3a49b33f
2 changed files with 4 additions and 2 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue