Skip to content

Direct url doesn't work just after browser starts #5

@giner

Description

@giner

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'])){

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions