Commit 29b5ed5d authored by Francesc Guasch's avatar Francesc Guasch
Browse files

test(auth): check stored PDKDF2

issue #1208
parent 5d05ca7f
...@@ -251,6 +251,8 @@ sub test_user_bind { ...@@ -251,6 +251,8 @@ sub test_user_bind {
is($mcnulty->{_auth}, 'bind'); is($mcnulty->{_auth}, 'bind');
test_uid_cn($user, $with_posix_group);
unlink $file_config_bind; unlink $file_config_bind;
$ravada = Ravada->new(config => $file_config $ravada = Ravada->new(config => $file_config
...@@ -490,7 +492,7 @@ sub test_pass_storage($with_posix_group) { ...@@ -490,7 +492,7 @@ sub test_pass_storage($with_posix_group) {
$name = 'test_pbk'; $name = 'test_pbk';
$new_user = test_user($name, $with_posix_group, $$, 'PBKDF2'); $new_user = test_user($name, $with_posix_group, $$, 'PBKDF2');
like($new_user->{_ldap_entry}->get_value('userPassword'), qr/^{PBKDF2}/); like($new_user->{_ldap_entry}->get_value('userPassword'), qr/^{PBKDF2/);
_remove_user_ldap($name); _remove_user_ldap($name);
} }
...@@ -536,8 +538,6 @@ SKIP: { ...@@ -536,8 +538,6 @@ SKIP: {
test_user_bind($user, $fly_config, $with_posix_group); test_user_bind($user, $fly_config, $with_posix_group);
test_uid_cn($user, $with_posix_group);
remove_users(); remove_users();
}; };
unlink($fly_config) if -e $fly_config; unlink($fly_config) if -e $fly_config;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment