-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local PAM auth example #75
Comments
Agree, this would be great! Maybe I present my specific case.. rdgw-auth
The service itself:
I did tries with mstsc and xfreerdp.
I set Before I took care of the certificates, I had at least TLS errors in the rdpgw log, but now I don't get anything anymore. Thanks! |
So you need a valid cert and tokenauth disabled and yes you then see a 404 page it you visit the page the only still enabled page is /tokeninfo but the rest is only needed for oidc |
Thank you! |
Is there a proxy infront or just direct? |
It's a direct connection inside the local network. |
With a valid cert? |
I created a ca root that i added to the trust store in the client. Then i created and signed a certificate for the host. |
Have you tried to use oidc to just check if everything else works? |
So, I finally got a setup running with openid by keycloak in a container. Wasn't that easy, I ended up using the docker example and comparing configs. Turns out I should keep the config file small. Switching back to local didn't bring any messages, so I tried with kerberos. At some point I wanted to AD authentication anyway, so that I tried this, without success so far I have to admit. Sorry for switching over... Using xfreerdp I get this similar message:
The mstsc always returned to the login prompt for the gateway. But in this case I got a message on the rdpgw log:
As of the keytabs file, I tried to authenticate:
That looks good to me, so far. I can't understand the message "no kdcs found" from the rdpgw log, yet. To make sure I had any specific problems I repeated the process on a second machine with the same results. |
How to use local PAM auth , is there an example available now? |
Sadly there is no example and i also would like to get this to work with local auth but no response from @bolkedebruin. |
There is now a docker compose file (docker-compose-local.yml) that exemplifies how this could be done. |
I think you forgot to upload the docker-compose-local.yml file |
good catch, fixed. |
I have it setup with a lets encrypt cert with certbot with the fullchain & privkey files like in the docker-compose-local.yml. Only that the address is the domain with port 443. The reverse proxy is in tcp passthrough mode and I can reach the rdpgw container trough the subdomain. I don't know what I am doing wrong. I just get the signin promt over and over again for the gateway with this log message when i login with admin:admin: |
The docker compose works out of the box. Start there. What are you connecting with? Remove other components before adding complexity. Reverse proxy introduces complexity you do not want for an initial setup |
I also can't get it working if i set it up to listen on port 444 with a valid cert on the domain. Hove you tested it with the original RDP client on windows? And what settings did you use? |
Did you try the original docker-compose-local with a Mac client? Or a NOT mstsc? Yes it was tested with a windows client and a valid certificate. But start simple first |
It works on the Android App of the microsoft RDP client even with the tcp proxy in front. |
Apologies, what I probably forgot is that |
Kerberos is also username password right? Is there a ldap to kerberos "proxy"? |
Keycloak does proxying for LDAP afaik with OpenID Connect, i'm not sure about Kerberos. Active Directory is basically LDAP+Kerberos which you can get with a real windows host or SAMBA. There might be others. |
There seams to be a guide from ubuntu: https://ubuntu.com/server/docs/service-kerberos-with-openldap-backend Will try that. |
Hello i can't find an example on a full setup of the local/pam authetication in the documentation for both docker/bare metal install could you maybe add one so i can see where i wen't wrong?
The text was updated successfully, but these errors were encountered: