contagged icon indicating copy to clipboard operation
contagged copied to clipboard

Direct url doesn't work just after browser starts

Open giner opened this issue 15 years ago • 0 comments

Problem is that if I use direct link to search or get contact (for example http://contagged/index.php?search=myname) it does't work if I didn't open address book before since I open a browser and browser redirect me to logon.php. If I use this URL again - it works without any problems. Additional info:

  • anonymous binding
  • userlogreq = 0

I've made some investigation and found workaround but, unfortunately, I'm a little bit confused with the code and I'm not sure this is a good way to fix the issue.

Index: inc/functions.php
===================================================================
--- inc/functions.php   (リビジョン 13)
+++ inc/functions.php   (作業コピー)
@@ -34,7 +34,7 @@
     $_SESSION['ldapab']['password'] = $p;
   }
 
-  if(empty($_SESSION['ldapab']) ||
+  if(/*empty($_SESSION['ldapab']) ||*/
      !do_ldap_bind($_SESSION['ldapab']['username'],
                    $_SESSION['ldapab']['password'],
                    $_SESSION['ldapab']['binddn'])){

giner avatar Dec 22 '10 15:12 giner