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 direct authentication #13314
Comments
@swilfreed |
this user is your "bind user" of your openldap server ?
|
i make a basic php script to test bind user connection and it's ok. |
come back during #stayathome for some debug. in order to use the "ldaphost + port" without doubt to connect_bind() I make an explicit change in those lines , file core/class/ldap.class.php
result:
it's seem connect_bind() doest not receive ldap host+port when login from 'login form box" . |
Between the design of the LDAP module, this issue and the filter which needs Don't get me wrong, I'm glad it's there, but there is a both a lack of documentation and bugs. I'm still looking for how to ensure that you get a Starttls connection on port 389 during authentication (I settled for 636 with the above workaround). |
This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required). |
Hello, |
I believe version 15.3 works for me, without the fixes. I can double check if needed.
-- Sent from K9-Mail
…On 20 October 2022 11:15:01 CEST, Pierre Fumet ***@***.***> wrote:
Hello,
maybe not the problem here, maybe yes.
I spent hours trying to fix the same situation : i could get LDAP
accounts when creating new accounts in Dolibarr, but never could
authenticate after that - and didn't see anything in LDAP server log
when i was trying.
I finally saw a stupid word error in conf.php :
`$dolibarr_main_authentification='ldap,dolibarr';`
instead of :
`$dolibarr_main_authentication='ldap,dolibarr';`
Nothing was visible in logs, the variable was just ignored.
Once fixed, LDAP auth. works.
Typical french developper (?) error, at least i could not find it in
last version !
--
Reply to this email directly or view it on GitHub:
#13314 (comment)
You are receiving this because you commented.
Message ID: ***@***.***>
|
Bug
dolibarr can't connect to distant ldapserver with conf.php information
Environment
Expected and actual behavior
*we would like to authenticate user to existing ldap server like other services. *
thing ok: - *dolibarr ldap module is configured and can browse the ldap users *
- we can import account
thing nok: - dolibarr can not authenticate ldap user using conf.php
: - * dolibarr seem not used the ldapfilter during account synchronization*
Steps to reproduce the behavior
Attached files (Screenshots, screencasts, dolibarr.log, debugging informations…)
php dolibarr config file conf.php (ldap part)
we try with this variable too
$dolibarr_main_auth_ldap_host=‘ldapserv.local.example.com’;
file dolibarr.log extract when try to connect thru ldap
DEBUG mode active in browser
debugging
during debugging steps it seems the operation failed when it go through the
function connect_bind() in core/class/ldap.class.php
I keep searching a workaround to this POC station
#8413 have been updated with#8420 and concern old version
The text was updated successfully, but these errors were encountered: