Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2009
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    PHP LDAP - Query..

    Sample LDAP Structure:
    Code:

    Code:
    root
       -> cn=Accounts
       -> cn=Hr
       -> cn=Contacts
    	-> cn=Bob Smith
    	-> cn=Dave Green
    	-> cn=Mark Down
                   |->
    		-> cn=Mark Down
    		-> uid=012234-123456-951230-711388
    		-> mail=email@address.com
    		-> phone=02081234567
    		-> objectclass=Contact
                          |_>
    			-> uid=568745-974597-795362-123456
    			-> objectclass=mail
    			-> record= EMAIL CONTENTS
    			-> datetime=2009/03/18 22:00
    I can connect to the LDAP and that works fine.
    But now I have 2 'simple' questions..

    Using a html form I need to search for the correct Contact based on there phone number.

    Then display the contact details and any email contents.

    How do I search for (in this example) 02081234567 and then get the associated Email records ?

    Thanks

  • #2
    New Coder
    Join Date
    Mar 2009
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Anyone any ideas on this ??

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •