-
Notifications
You must be signed in to change notification settings - Fork 16
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
LDAP authentication over SSL issue #24
Comments
Hello, First, what is the version of the plugin you are using ? Regarding debug, first thing to look at is your JavaScript Console and Network to check the API results. Regarding LDAPS connection, you only need to import a certificate in a JVM keystore if it's a self-signed (or invalid) certificate so I'm assuming this is the situation you are in. If you do manage to find out the proper configuration for self-signed certificates, you can then share it here or send a Pull Request with a property to enable it on request. Hope that will help you. |
Hello, I could not disable ldap certificate verification (because I'm not the ldap administrator).
Thxs |
Note: I didn't use TLS. I use ldaps.
|
Well, when I said "disable ldap certificate verification", I meant on the taiga-contrib-ldap-auth-ext side, not on the LDAP server side but the Here the errors you have seems to come from the client side (taiga-contrib-ldap-auth-ext) which refuses to open a secure connection with your LDAP server. The "no ciphers available" error makes me think that maybe your environment is not properly setup and the SSL ciphers needed to encrypt your connection are missing. Do you have openssl installed ? Does python has access to them ? Also, take a look at this issue : cannatag/ldap3#242 By the way, for such error messages in the JS console, you should see a similar stack trace in your taiga backend output. |
With
Yes i have openssl. Probably python has access to them (I used debian repository). I don't know how to check it.
I read ldap3 doc, but these settings doesn't work:
Anyway, it's my main issue, I don't know how to log errors. I didn't know python/django/ stuff... |
That's definitely an interesting information because that's basically what should work for you and we need to find what's this internal error.
Well, I'm not really used to python/django either, but from what I looked up regarding Taiga, there are properties available to enable debug for both backend and frontend. Take a look at the example configuration:
Also, as mentioned in one of Taiga issues (https://github.com/taigaio/taiga-back/issues/1009), you should normally be able to see your errors in the shell with which you started taiga backend server. Once you manage to retrieve them, we can try to look what's wrong with your ldap configuration. |
Ok I managed to log LDAP authentication like this way:
Then with LDAP account authentication, the console output is
When authenticate with a local account, console displayed:
Here html file return from curl command: https://pastebin.com/t7VY4B0Z that you can paste in html file and open in a browser. Thxs. |
I replace
|
Okay...
The |
When you told me to upgrade, I did ,but now I don't know if I did well...
|
The latest version is 0.4.3. Version 0.4.5 does not exist, or at least not yet.
To upgrade your package, use
or in short
See Python documentation for details. |
\o/ thxs authentication ldap working well now. |
Glad it's finally working for you 👍 Regarding the LDAP passwords, they are saved in Taiga Database since release 0.4 (see release note). I do not know your security policies, but you should know that even if the passwords are stored in the database, they are always hashed and never stored as clear text (thanks to Django and Taiga security policies). |
Hello,
I try to use your nice LDAP crontrib on my taiga but my LDAP authentication failed on my LDAPs server...
I can not test authentication without TLS.
I already use some application to authenticate on our ldaps but I'm newbie on taiga and I didn't found a way to displayed logs.
(Launch tiga with "python manage.py runserver" doesn't displayed any logs about my LDAPs authentication.
Could you tell me how I can debug my ldap authentication ?
On my java application, to use ldaps authneticate I have a certicate file to import in my jvm keystore. Do I need to use a similar way (I don't know how)?
Thxs for any help, tell me if I didn't use the good way to ask some help about your ldap extension.
Here my taiga-back/settings/local.py file:
Pascal B
The text was updated successfully, but these errors were encountered: