Curl log in with username instead of client_credentials

Hi,
I have successfully made the oidc implementation work in Keycloak. I am able to get the Token using curl logging in with the client credentials.
Next step is to connect Keycloak to our LDAP. I have been testing with local users on Keycloak but I cannot really figure out how I can get the Token using user credentials.

Any configuration that has to be made in keycloak?
Is it possible?

This operation works and a session is created token returned.
curl -k --data "grant_type=client_credentials&client_id=testclient&client_secret=11111111-2222-3333-4444-5555555555555" http://192.168.1.3:8080/auth/realms/test/protocol/openid-connect/token

I am trying this but cannot make it work.
curl -k --data "grant_type=password&username=testuser1&password=testuser1" http://192.168.1.3:8080/auth/realms/test/protocol/openid-connect/token

Thanks! :slight_smile:

See: Getting started with Keycloak