How can I connect to a Samba 4 server from a Django application installed on IIS 7 using LDAPS?

189 views
Skip to first unread message

Buena Música Cubana

unread,
Mar 15, 2018, 8:56:31 AM3/15/18
to django-auth-ldap
I have a very specific problem. I had to install a Django application in Windows Server 2008 with IIS 7. For authentication I used the django-auth-ldap package and connected to the Samba 4 server via LDAP without difficulty. The problem begins when the LDAPS connection is tried because I do not know how to configure the application to recognize the security certificate in Windows. In Debian I know the procedure, I need to configure settings.py for this purpose. Thanks for the help.

Peter Sagerson

unread,
Mar 15, 2018, 11:23:58 AM3/15/18
to django-a...@googlegroups.com
This sounds like a question for python-ldap. django-auth-ldap doesn't do anything special for TLS, it just passes your URI to python-ldap. If you find that you need to configure any python-ldap options, you can use AUTH_LDAP_GLOBAL_OPTIONS[1] and AUTH_LDAP_CONNECTION_OPTIONS[2].

Thanks,
Peter




On Mar 15, 2018, at 5:56 AM, Buena Música Cubana <reto...@gmail.com> wrote:

I have a very specific problem. I had to install a Django application in Windows Server 2008 with IIS 7. For authentication I used the django-auth-ldap package and connected to the Samba 4 server via LDAP without difficulty. The problem begins when the LDAPS connection is tried because I do not know how to configure the application to recognize the security certificate in Windows. In Debian I know the procedure, I need to configure settings.py for this purpose. Thanks for the help.

--
You received this message because you are subscribed to the Google Groups "django-auth-ldap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-auth-ld...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Buena Música Cubana

unread,
Mar 15, 2018, 2:20:36 PM3/15/18
to django-auth-ldap
As I said, the problem is when I configure the parameter (ldap.OPT_X_TLS_CACERTDIR) of AUTH_LDAP_GLOBAL_OPTIONS. In Debian it works without problems. But in Windows it is a headache to define the address where the certificate is located and also I do not know how to tell the IIS to recognize it, even when I install it correctly and add it by the established ways. There is something wrong with my deployment. Thanks Peter

Di majo

unread,
May 12, 2024, 4:37:36 AM5/12/24
to django-auth-ldap
MT103/202 DIRECT WIRE TRANSFER
PAYPAL TRANSFER
CASHAPP TRANSFER
ZELLE TRANSFER
LOAN DEAL
TRANSFER WISE
WESTERN UNION TRANSFER
BITCOIN FLASHING
BANK ACCOUNT LOADING/FLASHING
IBAN TO IBAN TRANSFER
MONEYGRAM TRANSFER
IPIP/DTC
SLBC PROVIDER
CREDIT CARD TOP UP
DUMPS/ PINS
SEPA TRANSFER
WIRE TRANSFER
BITCOIN TOP UP
GLOBALPAY INC US
SKRILL USA
UNIONPAY RECEIVER

Thanks.


NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT.

DM ME ON WHATSAPP
+44 7529 555638

Reply all
Reply to author
Forward
0 new messages