mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-03 20:40:05 -05:00
ITS#10436 Check we understand the requested password hash early
This commit is contained in:
parent
4d64843b09
commit
0f940b5c3e
1 changed files with 6 additions and 0 deletions
|
|
@ -241,6 +241,12 @@ slappasswd( int argc, char *argv[] )
|
|||
}
|
||||
#endif
|
||||
|
||||
if ( !lutil_passwd_scheme( scheme ) ) {
|
||||
fprintf( stderr, "Password scheme not recognised\n" );
|
||||
rc = EXIT_FAILURE;
|
||||
goto destroy;
|
||||
}
|
||||
|
||||
if( pwfile != NULL ) {
|
||||
if( lutil_get_filed_password( pwfile, &passwd )) {
|
||||
rc = EXIT_FAILURE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue