Thread: Filter help

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

    Join Date
    Oct 2004
    Posts
    1
    Rep Power
    0

    Exclamation Filter help


    Hello
    I am a newbie to LDAP and I need help in developing a filter. Following is the hierarchy

    o=office
    - voffice
    - ABC Group
    -fax
    -id=10
    -phone
    -id=10

    Explanation: fax and phone both are at the same level. I want to write a filter that retreives only the id and other attributes that lie under the phone not under fax.I am unable to do that by writing this filter:
    (uid=10)
    which ofcourse is very simple but retrieves two entries one from the fax and one from the phone but i just want the phone entry. I hope this explains the problem pretty much any help would be very much appreciated

    Regards
    Ahmed Ajmal
  2. #2
  3. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
    specify the base dn with the phone dn then you'll get only results from under phone

IMN logo majestic logo threadwatch logo seochat tools logo