Not 100% sure, but you could try $results = ldap_search($connection, &quot;cn=my\\20ou, dc=mydomain, dc=ac, dc=uk&quot;, &quot;givenName=d*&quot;);<br><br><div class="gmail_quote">On 10 November 2010 16:53, Dan Attwood <span dir="ltr">&lt;<a href="mailto:danattwood@gmail.com">danattwood@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">dear lazy web<div><br></div><div>does anyone know anthing about ldap_search in php?</div><div><br></div><div>I have an OU with a space in the name (stupid admins, rant ,rant) and can&#39;t work out how to search it; </div>

<div><br></div><div>$results = ldap_search($connection, &quot;cn=my ou, dc=mydomain, dc=ac, dc=uk&quot;, &quot;givenName=d*&quot;);</div><div><br></div><div>using a different OU without a space works fine so I know that my setup is correct</div>

<div><br></div><font color="#888888"><div>dan </div>
</font><br>_______________________________________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br></blockquote></div><br>