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

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

Open
giner opened this issue Dec 22, 2010 · 0 comments
Open

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

giner opened this issue Dec 22, 2010 · 0 comments

Comments

@giner
Copy link
Contributor

giner commented Dec 22, 2010

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'])){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant