zhaow-de / pam-keycloak-oidc

PAM module connecting to Keycloak for user authentication using OpenID Connect/OAuth2, with MFA/2FA/TOTP support
MIT License
66 stars 14 forks source link

Auth fails if password contains !! #10

Open ondrej-m opened 1 year ago

ondrej-m commented 1 year ago

If passwor containins string "!!", its return Unauthorized even if right password is entered.

`export PAM_USER=user; echo 'test!!' | ./pam-keycloak-oidc

2023/08/22 21:44:49 [605d97de-1a1c-4a0f-a28a-eeeeee]-(user) oauth2: cannot fetch token: 401 Unauthorized. Response: {"error":"invalid_grant","error_description":"Invalid user credentials"`