Username with Domain #73
Replies: 1 comment 1 reply
-
Hello @IdleThought, In all cases, you have to use the URL-encoded backslash Could you be more specific about the error you got when the connection failed with the username including domain, especially with the URL-encoded backslash? On my side, I tried the following configuration: Using Cassandra 5 image: In cassandra.yaml: authenticator:
class_name : org.apache.cassandra.auth.PasswordAuthenticator
authorizer: CassandraAuthorizer
role_manager: CassandraRoleManager In my database, I created the following role with the appropriate permissions: In liquibase.properties: liquibase.command.url: jdbc:cassandra://localhost:9042/testkeyspace?localdatacenter=datacenter1&user=domain%5cmyuser&password={password} And with this configuration, I successfully ran these commands:
|
Beta Was this translation helpful? Give feedback.
-
Hello:
I'm using Liquibase 4.25 so I wanted to use the 4.25 Cassandra wrapper, but ran into issue with a username with a backslash after the domain.
If I use my username that doesn't need a backslash, everything works fine, but when I use a username with domain\xxxx then the backslash becomes an invalid character for the driver. I have tried making the backslash the Unicode %5C but that also didn't work.
In IntelliJ if I create a Cassandra connection with this driver and tell it to use a username and password, then supply the username (that includes the domain and backslash) and password, and then omit the username and password from the JDBC URL, it works fine that way too.
Not sure what to do here, I sadly have to supply a JDBC URL with username (including domain) and password in it for my CI/CD pipeline at my company, but I cannot figure out how to get around this backslash issue.
Thank you for any assistance you might be able to provide.
Beta Was this translation helpful? Give feedback.
All reactions