Skip to content
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

Squid On Windows - Basic Authentication - LDAPS #90

Open
mitulgk opened this issue Oct 22, 2020 · 0 comments
Open

Squid On Windows - Basic Authentication - LDAPS #90

mitulgk opened this issue Oct 22, 2020 · 0 comments

Comments

@mitulgk
Copy link

mitulgk commented Oct 22, 2020

Hello,

We need some help to enable LDAPS for connection to Windows Active Directory for user authentication. We already have a working Squid 3.5.28 server on Windows 2019 with basic_ldap_auth.exe implemented which is using LDAP (not LDAPS) to connect to Windows Active Directory for user authentication.

-On Windows, with only LDAP (not LDAPS)
auth_param basic program /lib/squid/basic_ldap_auth.exe -R -b "dc=internaldomain=com" -D [email protected] -W /etc/squid/authpasswd -f "(|(userPrincipalName=%s)(sAMAccountName=%s))" -d -h domaincontroller1.internaldomain.com domaincontroller1.internaldomain.com

Our Windows 2019 Active Directory server is already configured with LDAPS and its working in production with various other applications as well as from another Squid server which is deployed on RHEL7 which also uses basic_ldap_auth for user authentication but connects to Windows 2019 Active Directory using LDAPS.

-On RHEL7, with LDAPS
auth_param basic program /usr/lib64/squid/basic_ldap_auth -b "dc=internaldomain,dc=com" -f "(|(userPrincipalName=%s)(sAMAccountName=%s))" -D "cn=Squid Auth Account,cn=Users,dc=internaldomain,dc=com" -W /etc/squid/ldapp -d -v 3 "ldaps://domaincontroller1.internaldomain.com:636","ldaps://domaincontroller2.internaldomain.com:636"

So we need some help on:
(1) Where to place root & intermediate certificates so basic_ldap_auth.exe will be able to trust the certificate of LDAPS ? On linux we placed it under /etc/openldap/cacerts/ and is working all fine but unable to identifiy similar location for Squid on Windows.
(2) Also do we need to have root & intermediate certificates in a specific format ? Our plan is to export those as 'Base-64 encoded X.509 (.CER)' from our Windows Local Computer Certificate store as they are already available there under Trusted Root Certification Authorities.

So please review and suggest.

Thanks in advance for all the help.

Do let us know if you need any more information on the same.

Thanks,
Mitul

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant