#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    10
    Rep Power
    0

    Unhappy LDAP filter not giving results


    Hi there...

    I have just recently taken on the challenge on understanding how to use LDAP using PHP.
    This is my second day into writting a script for it and I have already hit bumps.

    I've used the PHP script from ww.php.net. It connects fine. It looks in the right folders but my searches keep returning 0 results when I know they have information in them

    I will post the code on here if people would like to look @ it.

    I've tried cn=*, sn=*, mail=* and have returned still no results.

    Thanks in advance people!!
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    10
    Rep Power
    0
    Please help. its still only showing 0 results..

    the LDAP server is windows 2000 and the PHP runs on a win 2000 server using IIS.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    10
    Rep Power
    0
    Its ok now... i discovered the reason why.

    The DA allows anonymous binding BUT wont show now results unless you have a valid login.

    Annoying aye??
  6. #4
  7. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    get a valid login then
    also please DO NOT expect an answer after an hour of posting.
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2004
    Posts
    10
    Rep Power
    0
    Originally Posted by Viper_SB
    get a valid login then
    also please DO NOT expect an answer after an hour of posting.
    Ya, i did realise this part of the forum isnt as active as other ones. Even then you gotta wait for someone that might kno the answer.

    Thxs anyway, i used one of the database's login's and it then started to produce results.

    I thought it was strange because it accepts anonymous binding but doesn't display results unless you use a valid login.

IMN logo majestic logo threadwatch logo seochat tools logo