Hi, the PHP manual states that you can use an array to create a search with multiple DN values.
I am building a web based staff directory using PHP/LDAP/AD and need to search two areas/folders/directories within AD.
At the moment I make two independent ldap_searches and ldap_get_entries. I then attempt to paste them together. The result - the smaller output overwrites some of the larger output (or vice versa depending on which entries/array I call first).
I either need the answer/code to amalgamate the arrays properly. Or follow the wise words of the php manual which mentions parallel searches are possible by using arrays. How do I construct this array? I have tried... but failed.
My first attempt threw back issues with expecting a string value... so where does the array go? First attempt...
search = ldap_search(ds, array("dn1","dn2"), filter);
Perhaps the array needs to be the whole ldap_search function?
search = ldap_search(array("ds,dn1,filter","ds,dn2,filter"));
As you can see i'm completely lost! Throw your ideas/solutions this way please!