...

View Full Version : PHP LDAP - Query..



Mad_T
03-27-2009, 02:07 PM
Sample LDAP Structure:
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

Mad_T
03-31-2009, 11:01 PM
Anyone any ideas on this ??

Thanks :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum