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
When using LDAP authentication the first time, warnings may appear in logs #5636
Comments
Cacti 1.2.26 error on LDAP authentication the first time
Okay, this should be resolved now. |
Cacti 1.2.26 error on LDAP authentication the first time
Sorry for that question, but the DEV version is 1.3.0, dose that mean you stop the code on 1.2.x ? Or if I update from the 1.2.x branch is still ok ? |
For production is better 1.2.x branch. 1.2.x is stable. From 1.2.25 gets only fixes and security updates, no new features. We appreciate it when someone tries 1.3 and reports bugs to us |
Thanks @xmacan So I update to the latest 1.2.x
|
Can you show the error? |
So, I think that backtrace might be some ill-placed debug code. I'll take a look as the login search appears to succeed. Might be the result of late night code work. That happens you know. |
Can you search in A screen shot is sufficient. |
So I find it inside abstract class LdapError
|
The issue is there is no error thought right? Are you still able to login? |
Yess, I can login, it take me 2 retry, the first time it create the profile based on the user template, and the second time it allow me to connect. But what is missing it's the retrieve of the Full Name and the eMail address from the LDAP. |
Actually I have the domain in this record, not an IP or hostname of the AD. |
Okay, so RRDNS or a vip then. Good. I'm on the road. Can you revert the lib/ldap.php and let me know if it works? |
Damn! Here is a debug on a 1.2.25 running version:
This version give me back displayname and email. The same login test with 1.2.26, and the ldap from 1.2.x:
And last one Cacti 1.2.26, last ldp.php from devellop branch:
|
So, can I read that as the old library works? |
Unfortunately no! As for the information from the AD (displayname and email) it dosen't work. |
Okay. |
hey @arno-st Would you be able to tell me what LDAP server you are running ? |
I'm connecting to windows 2016 |
Awesome I'll send you an email and we can work a time out |
On a fresh install on cacti 1.2.26, with php 8.2.14
When I setup the authentication method 'Multiple LDAP/AD domain', and create a profile under User Domains.
I setup a template account for this, and use some LDAP config.
And a LDAP CN Setting to retreive the Full name of the user.
When a user is connectiong the first time I got the following error
It only happen the first time, and the files Full Name of this user is empty.
The text was updated successfully, but these errors were encountered: