Skip to content

Commit 993f9d2

Browse files
committed
ccm/cluster: add support to enable authentication
1 parent a253772 commit 993f9d2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scylla/tests/ccm_integration/ccm/cluster.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,15 @@ impl Cluster {
705705
self.updateconf(args).await
706706
}
707707

708+
/// Enables the `PasswordAuthenticator` for the cluster.
709+
// Consider making it accept an enum in the future. Supported authenticators:
710+
// https://github.com/scylladb/scylladb/blob/529ff3efa57553eef6b0239b03b81581b70fb9ed/db/config.cc#L1045-L1051.
711+
pub(crate) async fn enable_password_authentication(&self) -> Result<(), Error> {
712+
let args = [("authenticator", "PasswordAuthenticator")];
713+
714+
self.updateconf(args).await
715+
}
716+
708717
fn get_ccm_env(&self) -> HashMap<String, String> {
709718
let mut env: HashMap<String, String> = HashMap::new();
710719
env.insert(

0 commit comments

Comments
 (0)