mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
improve slapacl
This commit is contained in:
parent
30f697beeb
commit
4d3a49b33f
@ -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 New Issue
Block a user