Ldap configured I can't find user in "Created by"
Brought to you by:
jberanek
Hello!
First of all I have to say this is a great tool and I like it very much
We are testing this application and we configured to login using ldap. Login is working fine using our AD, but when I create a new booking and try to change or search users in "Created by" (I have admin role), form is Loading and nothing it appears (No Results found).
Anyone else has had the same problem?
Thanks in advance
If you're using MRBS 1.9.0 then there's a known bug with a simple fix. See https://sourceforge.net/p/mrbs/bugs/475/
Hello.
I think this is not our problem, We had this fix at the beginning when login didn't works, and now we have not problem to login, the only problem is when an admin wants to assign a "Created by" users in a booking form. We can't find users.
Thanks
Hello.
I think this is not our problem, We had this fix at the beginning when login didn't works, and now we have not problem to login, the only problem is when an admin wants to assign a "Created by" users in a booking form. We can't find users.
Thanks
Are you getting any error messages in your PHP error log? What happens if you set
$ldap_debug = true;in your config file?Hi we really appreciate your attention
No errors in $ldap_debug = true;
And this is the log of this part.
Other symptom is when I start session using fully email and try to book a room My name disapers from created by and I have no option to make a booking. All is related with the same field
Users don't have this problem because they don't have this field
[Thu Oct 15 10:01:54.011404 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: got LDAP connection, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.011481 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: binding with search_dn and search_password, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.013675 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: initial bind was successful, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.013704 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: searching using base_dn 'DC=our,DC=local,DC=domain' and filter '(userPrincipalName=jdoe@mydomain.com)', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.014811 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: found one entry dn 'CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.014845 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap::getNameCallback: base_dn 'DC=our,DC=local,DC=domain' dn 'CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain' user_search 'distinguishedName=CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain' user 'jdoe@mydomain.com', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.015029 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap::getNameCallback: search successful, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.015060 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap::getNameCallback: name is 'John Doe', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.015119 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: got LDAP connection, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.015171 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: binding with search_dn and search_password, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.016439 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: initial bind was successful, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.016471 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: searching using base_dn 'DC=our,DC=local,DC=domain' and filter '(userPrincipalName=jdoe@mydomain.com)', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.017626 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: found one entry dn 'CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.017663 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap::getEmailCallback: base_dn 'DC=our,DC=local,DC=domain' dn 'CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain' user_search 'distinguishedName=CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain' user 'jdoe@mydomain.com', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.017854 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap::getEmailCallback: search successful, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.017891 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap::getEmailCallback: email is 'jdoe@mydomain.com', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.018147 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: got LDAP connection, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.018203 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: binding with search_dn and search_password, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.021095 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: initial bind was successful, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.021149 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: searching using base_dn 'DC=our,DC=local,DC=domain' and filter '(userPrincipalName=jdoe@mydomain.com)', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.023164 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap->action: found one entry dn 'CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.023238 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap::checkAdminGroupCallback: base_dn 'DC=our,DC=local,DC=domain' dn 'CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain' user_search 'distinguishedName=CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain' user 'jdoe@mydomain.com', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.023783 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap::checkAdminGroupCallback: search successful 'memberof', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.023837 2020] [php7:notice] [pid 1446] [client 10.10.10.8:58565] MRBS\Auth\AuthLdap::checkAdminGroupCallback: admin group successfully found in user object, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.414484 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: got LDAP connection, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.414564 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: binding with search_dn and search_password, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.417572 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: initial bind was successful, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.417603 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: searching using base_dn 'DC=our,DC=local,DC=domain' and filter '(userPrincipalName=jdoe@mydomain.com)', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.419568 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: found one entry dn 'CN=John Doe,OU=DEPT,OU=Country,DC=our,DC=local,DC=domain', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.419631 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap::getUsernamesCallback: base_dn 'DC=our,DC=local,DC=domain', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.419658 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap::getUsernamesCallback: searching with base_dn 'DC=our,DC=local,DC=domain' and filter '(objectclass=)', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.541451 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap::getUsernamesCallback: 5391 entries found, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.550133 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: got LDAP connection, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.550188 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: binding with search_dn and search_password, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.551720 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: initial bind was successful, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.551751 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: searching using base_dn 'DC=our,DC=local,DC=domain' and filter '(sAMAccountName=jdoe@mydomain.com)', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.551952 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap->action: 0 entries found, no unique dn, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.551974 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap::getUsernamesCallback: base_dn 'DC=our,DC=local,DC=domain', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.551986 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap::getUsernamesCallback: searching with base_dn 'DC=our,DC=local,DC=domain' and filter '(objectclass=)', referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
[Thu Oct 15 10:01:54.670285 2020] [php7:notice] [pid 30229] [client 10.10.10.8:58566] MRBS\Auth\AuthLdap::getUsernamesCallback: 5391 entries found, referer: https://localhost/rooms/edit_entry.php?view=day&year=2020&month=10&day=16&area=1&room=10&period=0&returl=https%3A%2F%2Flocalhost%2Frooms%2Fedit_entry.php%3Fview%3Dday%26year%3D2020%26month%3D10%26day%3D16%26area%3D1%26room%3D10%26period%3D0
Last edit: Albert Esquis 2020-10-15
I'll take a look at this problem.
Thanks for the ldap debug output. The ldap search seems to be working OK as it's finding 5391 entries, so there must be something else going wrong. Can you set
and then look at the Ajax response from usernames.php in your browser's developers tools?
By the way, you can always disable that Created By field by setting
but it would be nice to find out what the problem is.
The other thing to look for is a JavaScript error in your browser's console.
Last edit: Campbell Morrison 2020-10-15
This is what we get, I don't know if it helps
Esta página utiliza la propiedad no estándar “zoom”. Considere usar calc() en los valores de propiedad relevantes, o usar “transform” junto con “transform-origin: 0 0”. edit_entry.php
JQMIGRATE: Migrate is installed with logging active, version 3.3.0 jquery-migrate-3.3.0.js:69:17
JQMIGRATE: jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos jquery-migrate-3.3.0.js💯12
console.trace() jquery-migrate-3.3.0.js:102:13
jQuery 5
migrateWarn
get
<anonymous>
<anonymous>
<anonymous>
JQMIGRATE: jQuery.isArray is deprecated; use Array.isArray jquery-migrate-3.3.0.js💯12
console.trace() jquery-migrate-3.3.0.js:102:13
jQuery 6
migrateWarn
prop
widget
<anonymous>
<anonymous>
<anonymous>
JQMIGRATE: jQuery.isFunction() is deprecated jquery-migrate-3.3.0.js💯12
console.trace() jquery-migrate-3.3.0.js:102:13
jQuery 8
migrateWarn
prop
widget
each
widget
<anonymous>
<anonymous>
<anonymous>
Uncaught TypeError: option.username is null
success https://localhost/rooms/js/general.js.php?area=1:51
each jQuery
success https://localhost/rooms/js/general.js.php?area=1:49
jQuery 2
success https://localhost/rooms/js/general.js.php?area=1:40
jQuery 8
fillUsernameFields https://localhost/rooms/js/general.js.php?area=1:35
<anonymous> https://localhost/rooms/js/general.js.php?area=1:84
jQuery 7
<anonymous> https://localhost/rooms/js/general.js.php?area=1:209
jQuery 13
general.js.php:51:35
success https://localhost/rooms/js/general.js.php?area=1:51
each jQuery
success https://localhost/rooms/js/general.js.php?area=1:49
jQuery 2
success https://localhost/rooms/js/general.js.php?area=1:40
jQuery 8
fillUsernameFields https://localhost/rooms/js/general.js.php?area=1:35
<anonymous> https://localhost/rooms/js/general.js.php?area=1:84
jQuery 7
<anonymous> https://localhost/rooms/js/general.js.php?area=1:209
jQuery 13
mightThrow
process
(Async: setTimeout handler)
resolve
fire
fireWith
fire
fire
fireWith
ready
completed
(Async: EventListener.handleEvent)
<anonymous>
<anonymous>
<anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous></anonymous>
Thanks. There don't seem to be any problems in the JavaScript console. What is the Ajax response from usernames.php?
This is an exmple of response
[{"username":null,"display_name":null},{"username":null,"display_name":null},{"username":"jdoe","display_name":"John Doe"},{"username":"jdoe@domain.com","display_name":"John Doe"},{"username":"jdoe2","display_name":"John Doe 2"},{"username":"jdoe2@domain.com","display_name":"John Doe 2"},{"username":"jdoe3","display_name":"John Doe 3"},{"username":"jdoe@domain.com","display_name":"John Doe 3"}]
Last edit: Albert Esquis 2020-10-15
Thanks, that's useful. It looks like the problem may be that the first two users have username null for some reason. I'll see if I can come up with a fix.
Thanks!
Yes, but take in mind that when I add entery OU or domain, there are much more empty users at the beginning
We really appreciate your help and interest in this case.
Can you try the attached version of lib/MRBS/Auth/AuthLdap.php and see if it fixes the problem?
Great!
It seems it work's
Now I can search in Active directory Users, and I think it's solved, the only thing is that I found every user twice but I supose is for my ldap config in config.inc.php.
Thanks a lot for your help, was a pleasure
Good, glad it's fixed. I've now (e724fd) committed the fix to the default branch.
Yes, I suspect the duplicate names are due to your config. But if you can't solve it let me know and MRBS could always remove the duplicates.
I've added a further change in bc5b63 which improves the resiience of the code. (It's not necessary to install this patch if you've already got the patch to AuthLdap.php above).
One issue now is that for a big user ldap database the page freezes after loading.
One option is to $auth['admin_can_only_book_for_self'] = true; of course but a more elegant solution would be to not search unless the field value is changed. Also some caching from time to time or on request.
Yes, a big user database will cause a long load time. However the list of users is loaded asynchronously via an Ajax request, so I am surprised the page is freezing. Are you getting any errors in your PHP error log?
The Ajax request was intended to be an alternative to delaying the search until the field value was changed.
An additional measure might be to use a paginated LDAP search.