-
-
Notifications
You must be signed in to change notification settings - Fork 532
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 Auth not working #3993
Comments
Hello @nilsteampassnet, good morning, I would like to inform you that I am also facing the same problem, where LDAP Sync is working correctly, but I cannot LOG IN to Teampass. Below is evidence of LDAP Sync working normally: Here is the LDAP configuration: Now what happens when I try to perform an LDAP connection test through a legitimate user: Below is the Apache error log: Now when I try to LOGIN with a legitimate user registered with Teampass through LDAP Sync: Below is the Apache error log in LOGIN: Personally, I have been working and using Teampass for a few years and since I came across this problem, so far I haven't found any solution, so I hope I can contribute to resolving this issue, as I really like the tool and wouldn't want to trade for the competition on the market. . Below is information about my environment: Teampass: 3.1.1.17 Thank you very much for your attention and I am at your disposal. Happy New Year!!!! |
Sorry, but what command did you used to get AD Group ObjectClasses attribute (because i think now is not the same thing as the other versions) |
Alpine Linux v3.18 TP Config File: global $SETTINGS; I am also facing the same issue may i know how to fix the issue. Thanks |
In version 3.1.0 the files ldap.openldap.php and ldap.activedirectory.php are missing in the sources directory. |
Hello, Yes, in fact, in release 2, we did not have the "AD Group ObjectClasses attribute" parameter, but in 3 we did, and in this case I did not change it, but kept the default, as shown below: Thank you very much. |
Didn't worked for me leaving it default |
Hello, In fact, I hadn't noticed this detail, but the respective PHP files that perform the LDAP functions are missing in version "3.1.1", so after your tip above, I took the files from version "3.1.0" and placed them in the directory SOURCES, and after that, the problem was corrected and the LDAP queries worked perfectly. PS.: Even after the above procedure, when trying to log in to the system, I encountered problems, and after performing a debug, I identified that the PHP file "identify.php" was causing the failure, so I also got the file from version "3.1.0" as performed above, and I was successful in logging in, without any further problems. IMPORTANT: Due to the problems I have had so far with version "3.1.1", I tried to install the latest release made available by @nilsteampassnet , "3.1.0", but I encountered problems at the beginning of the installation, where the following message was displayed: "ANSWER FROM SERVER IS EMPTY". Particularly speaking, I believe that version "3.1.1" is not 100% approved yet, but as it was not possible to install the others as reported above, I kept "3.1.1", but with the files from "3.1.0 " and so far the tool is running normally. Thank you very much. |
Thank you So much for the information. I will do the same and update here. |
hi
Hi,as your instructions i have copied ldap.openldap.php and ldap.activedirectory.php ,"identify.php" but still i getting the following error even with correct credentials please let me know where i am getting wrong |
Hello, Just to inform you that I was also unable to make the filter by group work through this field, even though I tested several possibilities, I was not successful, so I don't know what this could be, as in release 2 it was simply to enter the name of the group and that was it. Thanks. |
Hello, In this specific case, the invalid credentials error refers to the username and password that connects to the server through the LDAP protocol, and is not the credential that is actually being used to test the query. As a solution, I suggest entering the Username field exactly as shown in the example on the left, or you can also use the following format: The above way also works, as I tested and validated it myself. Thanks. |
I'm struggling with a similar issue; when enabling and testing LDAP on 3.1.1 I get the message "Error - LDAP bind : ldap_bind(): Unable to bind to server: Can't contact LDAP server". I've tried all of the above to no avail. There is no firewall in the way, I have tried IP addresses and host names, nothing works. I'm using Ubuntu 22.04 LTS with PHP 8.2 and Apache. I can't see anything in the Apache error.log file and using the "$debugLdap = 1;" option does nothing, it doesn't create any debug file. What can I try? I've already spen6 about 6 hours upgrading from an older version, having fixed about 15 different things along the way, hopefully this is the last one. |
Dear all, Same issue here ("In progress" message forever when testing LDAP connection) , I like risk and adventure so I have installed TeamPass 3.1.2.29 in a: In my case I'm trying to access ActiveDirectory I enumerate all things I have tested:
...
Conclusions: I have TeamPass 2.1.12 without any LDAP user configured working perfectly, but in 3.1.2.29 no way to make it work. @nilsteampassnet and people like me, any ideas? |
Hello. I'm using version 3.1.2.44 when using LDAP it gets "in progress" doesn't work. Does anyone have the solution? |
? |
Hi, even problem tell me if you found please |
Hi, Where do I find the files and how do I import them? |
@rosanribeiro @doooopT Once you have the files, simply configure the LDAP. Some of the features don't behave as expected, but authentication works. |
Steps to reproduce
Expected behaviour
The expected behavior would be authentication when the password is correct.
Actual behaviour
Stuck in loading
![image](https://private-user-images.githubusercontent.com/2022984/293391400-d2a102d3-edc0-4e67-b27e-a0c65a214189.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI1NzA4MTUsIm5iZiI6MTcyMjU3MDUxNSwicGF0aCI6Ii8yMDIyOTg0LzI5MzM5MTQwMC1kMmExMDJkMy1lZGMwLTRlNjctYjI3ZS1hMGM2NWEyMTQxODkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgwMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MDJUMDM0ODM1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGMzYmMwYTJiNTA2MThlMTk4YmNiOTllOWEwMDlkY2ViZDRlN2U1ZWI0NDU0Y2IxYWU4ODA4NWIxYWY5MzFkZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.P3gDIKc-Kkaq1v6IYZeeyE-SmD-V7Xs2Qtso5E2WE48)
Server configuration
Operating system:
Alpine Linux v3.18
Web server:
Direct access to docker port
Database:
10.3.14-MariaDB-1:10.3.14+maria~stretch-log
PHP version:
8.2.7
Teampass version:
3.1.1.17
Teampass configuration file:
Updated from an older Teampass or fresh install:
PLEASE attach to this issue the file
/includes/config/tp.config.php
.Client configuration
Browser:
Mozilla Firefox 121.0 (64-bits)
Operating system:
Arch Linux
Logs
Web server error log
Log from the web-browser developer console (CTRL + SHIFT + i)
Observations
On line 215, an attempt is made to load the ldap.openldap.php module; however, this file does not exist.
The file referenced on line 213 also does not exist.
The text was updated successfully, but these errors were encountered: