Skip to content
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

add a option to change timeout of ldap connexion #76

Closed
roumano opened this issue Sep 6, 2019 · 2 comments · Fixed by #89
Closed

add a option to change timeout of ldap connexion #76

roumano opened this issue Sep 6, 2019 · 2 comments · Fixed by #89
Assignees
Milestone

Comments

@roumano
Copy link

roumano commented Sep 6, 2019

In our Infrastructure, we have a meta ldap (from 4 backend different LDAP) with around 2000 entry

sometime, we got a this error (very shortly like in less than 5 seconds :

  LDAP communication error 

It's will be great, of course to have the #1 issue fixed, but until it, it's possible to change the timeout connection to the LDAP (i get this error in less than 5 seconds) ?

@coudot
Copy link
Member

coudot commented Sep 6, 2019

Are you sure that the timelimit is not on server side? There is no timeout configured in White Pages.

@coudot coudot added this to the 0.4 milestone Apr 8, 2020
@coudot coudot self-assigned this Jun 5, 2020
@coudot coudot closed this as completed in #89 Jun 5, 2020
@coudot
Copy link
Member

coudot commented Jun 5, 2020

@roumano should be possible with the above pull request.

You can do a simple test by adding this line in lib/ldap.inc.php in function wp_ldap_connect:

ldap_set_option($ldap, LDAP_OPT_NETWORK_TIMEOUT, 10);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants