Page 1 of 1

[RESOLVED] SSO self-service not working for all users

Published: September 27, 2023 - 6:03 PM
by tux
Wapt Linux 2.4 server.
Windows 10 client

Hello,

SSO on the self-service portal works with some Active Directory accounts but not with others on the same PC.

On the account where it doesn't work, it asks for the account login and password.
Once the credentials are entered, the user has access to the self-service portal, but they have to log in again each time.

Do you have any ideas? Are there any specific logs I should look at?



On the waptserver.ini side, the following parameters are correctly filled:
ldap_account_service_login = XXXXXX
ldap_account_service_password = XXXX
ldap_auth_server = XXXXXX
ldap_auth_base_dn = XXXXX
use_kerberos = True
ldap_auth_ssl_enabled = True
use_ssl_client_auth = True


On the client side, in the agent configuration, I have:
service_auth_type = waptserver-ldap
use_kerberos = True

Re: SSO self-service not working for all users

Published: October 2, 2023 - 3:00 PM
by tux
Hello,

after investigation, the problem is related to the Kerberos ticket size.
SSO on the self-service portal seems to have a Kerberos ticket size limit that is smaller than that of Windows.

Re: SSO self-service not working for all users

Published: October 2, 2023 - 4:31 PM
by sfonteneau
Hello,

thank you for your feedback.

Could you tell me if the user experiencing the problem accessing the URL https://srvwapt.mydomain.lan/api/v3/login_kerberos works from Firefox?

Note that in Firefox, you need to add the following to about:config:

network.negotiate-auth.delegation-uris mydomain.lan and
network.negotiate-auth.trusted-uris mydomain.lan.

This will help us determine if the issue lies with the nginx spnego module or with waptself.

Re: SSO self-service not working for all users

Published: October 2, 2023 - 5:12 PM
by tux
With a user who has a small Kerberos ticket, there's no problem.

With a user who has a large Kerberos ticket:

400 Bad Request
Request Header Or Cookie Too Large
nginx

Re: SSO self-service not working for all users

Published: October 2, 2023 - 5:21 PM
by sfonteneau
Based on the message, you can try adding the following to your Nginx configuration: `

large_client_header_buffers 4 16k;

` https://stackoverflow.com/questions/651 ... 7#65151807

If that works, we'll see about modifying the initial Nginx configuration of Wapt.

Re: SSO self-service not working for all users

Published: October 2, 2023 - 5:46 PM
by tux
Yes, it works.

Thank you

Re: SSO self-service not working for all users

Published: October 3, 2023 - 12:54 PM
by sfonteneau
Thanks, we just added the nginx configuration to the git branch master code here to handle the case.