<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Active Directory and LDAP</title><link>http://forums.asp.net/93.aspx</link><description>Questions about Active Directory and other directory stores, such as those accessible via LDAP, are appropriate here.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2513079.aspx</link><pubDate>Thu, 24 Jul 2008 22:13:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2513079</guid><dc:creator>johram</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2513079.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2513079</wfw:commentRss><description>&lt;p&gt;Well, I have never used DirectoryServices to connect to a non-MS LDAP source, so I am unsure of the exact syntax here..&lt;br /&gt;&lt;/p&gt;&lt;p&gt;What if you use the distinguished name (DN) of the user you are trying to connect with, as username?&lt;/p&gt;&lt;p&gt;&lt;font size="2" color="#0000ff"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; mySearchRoot &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font size="2" color="#0000ff"&gt;New&lt;/font&gt;&lt;font size="2"&gt; DirectoryEntry(&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;&lt;a&gt;LDAP://protector.englishchannel.net/&lt;/a&gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;&lt;/font&gt;&lt;font color="#ff0000"&gt;cn=manager,dc=englishchannel.net,dc=net&lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font size="2" color="#a31515"&gt;&amp;quot;ActioN&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, AuthenticationTypes.FastBind)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Do you know what software you are using on your LDAP source?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2512390.aspx</link><pubDate>Thu, 24 Jul 2008 17:18:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2512390</guid><dc:creator>Molap</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2512390.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2512390</wfw:commentRss><description>&lt;p&gt;It is really frustrating as I can&amp;#39;t find any examples of what the correct syntax should be nor do I know how to interpret the Softerra LDAP browser information to construct a valid syntax for a connection. &lt;/p&gt;
&lt;p&gt;When Googling or searching here I see various examples but they do not seem to have a uniform syntax structure and that I could then interpret. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I know my address to the LDAP server &lt;font color="#ff0000"&gt;&lt;a&gt;LDAP://protector.englishchannel.net/&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#ff0000"&gt;I know the username and password and I can use it to connect to the LDAP with the Softerra Browser&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#ff0000"&gt;But how do I formulate this knowledge to create a path for a .NET&amp;nbsp;connection? In the LDAP Browser I could go to properties and find under credential the string: cn=manager,dc=englishchannel.net,dc=net&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#ff0000"&gt;Does this string have to be appended to &lt;a&gt;LDAP://protector.englishchannel.net/&lt;/a&gt;&amp;nbsp;? Can it be omitted? I&amp;#39;ve now tried various ways and my head is spinning. &lt;/font&gt;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;What am I missing when I try to do this ? :&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; mySearchRoot &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;font size="2"&gt; DirectoryEntry(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&lt;a&gt;LDAP://protector.englishchannel.net/&lt;/a&gt;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;bagager&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;ActioN&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, AuthenticationTypes.FastBind)&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; myDirectorySearcher &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;font size="2"&gt; DirectorySearcher(mySearchRoot)&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; results &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; SearchResultCollection&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;results = myDirectorySearcher.FindAll()&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2511448.aspx</link><pubDate>Thu, 24 Jul 2008 12:09:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2511448</guid><dc:creator>Molap</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2511448.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2511448</wfw:commentRss><description>&lt;p&gt;Yes. I can connect with the Softerra Browser just fine. &lt;/p&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2509778.aspx</link><pubDate>Wed, 23 Jul 2008 19:35:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2509778</guid><dc:creator>johram</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2509778.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2509778</wfw:commentRss><description>&lt;p&gt;Can you connect with Softerra&amp;#39;s browser now?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2509609.aspx</link><pubDate>Wed, 23 Jul 2008 18:22:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2509609</guid><dc:creator>Molap</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2509609.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2509609</wfw:commentRss><description>&lt;p&gt;I tried the secure but I get a message that my server does not support it. So I entered the NativeObject into my Watch window and my error message is: &lt;/p&gt;
&lt;p&gt;+&amp;nbsp;&amp;nbsp;mySearchRoot.NativeObject&amp;nbsp;{&amp;quot;An invalid dn syntax has been specified. &amp;quot;}&amp;nbsp;Object&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;tx &lt;/p&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2509569.aspx</link><pubDate>Wed, 23 Jul 2008 18:05:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2509569</guid><dc:creator>johram</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2509569.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2509569</wfw:commentRss><description>&lt;p&gt;It depends on what the exception is, but most likely it is because you could not connect.&lt;/p&gt;&lt;p&gt;To verify whether your root entry is valid, you can try to access mySearchRoot.NativeObject. If you get an Exception here, you are not connected. I&amp;#39;m sorry but I don&amp;#39;t have the VB syntax for this, but just try to access this property, by assigning it to an Object variable or something.&lt;/p&gt;&lt;p&gt;Typically, my DirectoryEntries look like this:&lt;/p&gt;&lt;p&gt;Dim mySearchRoot As New DirectoryEntry(&amp;quot;LDAP://somepath&amp;quot;, &amp;quot;username&amp;quot;, &amp;quot;password&amp;quot;, AuthenticationTypes.Secure)&lt;/p&gt;&lt;p&gt;You might want to try connect with Secure rather than FastBind... &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2509524.aspx</link><pubDate>Wed, 23 Jul 2008 17:51:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2509524</guid><dc:creator>Molap</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2509524.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2509524</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;        myLDAPPath = &lt;span class="st"&gt;&amp;quot;LDAP://bumblebee.wingsinthe.net/&amp;quot;&lt;/span&gt;
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; mySearchRoot &lt;span class="kwd"&gt;As New&lt;/span&gt; DirectoryEntry(myLDAPPath)
        mySearchRoot.Username = &lt;span class="st"&gt;&amp;quot;manager&amp;quot;&lt;/span&gt;
        mySearchRoot.Password = &lt;span class="st"&gt;&amp;quot;NoHoney!&amp;quot;&lt;/span&gt;
        mySearchRoot.AuthenticationType = AuthenticationTypes.FastBind

        &lt;span class="kwd"&gt;Dim&lt;/span&gt; myDirectorySearcher &lt;span class="kwd"&gt;As New&lt;/span&gt; DirectorySearcher(mySearchRoot)
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; filterString &lt;span class="kwd"&gt;As String&lt;/span&gt; = &lt;span class="st"&gt;&amp;quot;(&amp;amp;(objectClass=*))&amp;quot;&lt;/span&gt;
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; results &lt;span class="kwd"&gt;As&lt;/span&gt; SearchResultCollection
        myDirectorySearcher.Filter = filterString

I can step all the way until here: 
        results = myDirectorySearcher.FindAll()

My code breaks here. Does it mean that I&lt;span class="cmt"&gt;&amp;#39;m connecting ok but my filterString is faulty? 
&lt;/span&gt;&lt;/pre&gt;&amp;nbsp;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2509458.aspx</link><pubDate>Wed, 23 Jul 2008 17:25:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2509458</guid><dc:creator>Molap</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2509458.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2509458</wfw:commentRss><description>&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;I found that perhaps I could use .Username and .Password syntax. It is giving me an error message. I hope I&amp;#39;m on the right track with this. &amp;nbsp; 
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="kwd"&gt;Dim&lt;/span&gt; mySearchRoot &lt;span class="kwd"&gt;As New&lt;/span&gt; DirectoryEntry(myLDAPPath)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySearchRoot.Username = &lt;span class="st"&gt;&amp;quot;manager&amp;quot;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mySearchRoot.Password = &lt;span class="st"&gt;&amp;quot;ActiviT1&amp;quot;&lt;/span&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2509357.aspx</link><pubDate>Wed, 23 Jul 2008 16:43:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2509357</guid><dc:creator>Molap</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2509357.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2509357</wfw:commentRss><description>&lt;p&gt;ok. I got a bit further. I have obtain the true username and password for the LDAP. what syntax do I use in the &lt;/p&gt;
&lt;p&gt;myLDAPPath = &amp;quot;&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&lt;a&gt;LDAP://protector.englishchannel.net/&lt;/a&gt;&amp;quot;&lt;/font&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;connection string to specify username and password. I think perhaps&lt;/p&gt;
&lt;p&gt;myLDAPPath = &amp;quot;&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&lt;a&gt;LDAP://protector.englishchannel.net/cn=manager pwd=bobo&lt;/a&gt;&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span class="st"&gt;&lt;font color="#ff0000"&gt;&lt;/font&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2508953.aspx</link><pubDate>Wed, 23 Jul 2008 14:22:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2508953</guid><dc:creator>johram</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2508953.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2508953</wfw:commentRss><description>&lt;p&gt;When you connect to your LDAP source with Softerra&amp;#39;s browser, you provide three things: base dn/connection string, username and password&lt;/p&gt;&lt;p&gt;This information is stored in a profile in the browser, so that you don&amp;#39;t have to type the credentials every time you connect. Now, you say that it used to work. Do you have a profile for this connection? Can you perhaps see which username it tries to connect with? Maybe this account has been disabled for some reason.&lt;/p&gt;&lt;p&gt;As for the root account, I am unsure of whether this is good enough for the LDAP source. I am no Unix hacker myself ;-)&lt;/p&gt;&lt;p&gt;Having come this far, your issue do seem to be related to invalid/insufficient credentials. Try to find out which account you used to connect with, and reset the password for that account/re-enable it. Enter these new credentials in the browser and try to validate the connection.&lt;/p&gt;&lt;p&gt;Once you get this running, you can enter a filter criteria in the search box, which is LDAP-style filter. This filter along with the base DN/connection string can then be copied straight into your .NET code to be used there.&lt;/p&gt;&lt;p&gt;Also, you need to specify the credentials explicitly with your root DirectoryEntry. You pass username as second argument and password as third argument.&lt;/p&gt;&lt;p&gt;Good luck! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2508670.aspx</link><pubDate>Wed, 23 Jul 2008 12:51:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2508670</guid><dc:creator>Molap</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2508670.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2508670</wfw:commentRss><description>&lt;p&gt;Johram, &lt;/p&gt;
&lt;p&gt;Thanks for the tip. I do have the Softerra browser (v2.6) and I am able to connect to this LDAP source. I wasn&amp;#39;t aware that I can somehow create a connection string within the browser. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;The Softerra connection was created a few months ago for me and today when I try to recreate it I am failing to do so. I do have the root password for the linux box on which the LDAP resides but I&amp;#39;m not sure if that is all I need to know. &lt;/p&gt;</description></item><item><title>Re: I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2507122.aspx</link><pubDate>Tue, 22 Jul 2008 22:45:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2507122</guid><dc:creator>johram</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2507122.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2507122</wfw:commentRss><description>&lt;p&gt;In order to get the query right, I&amp;#39;d advise you to use an LDAP browser and test the query off first, before you start fiddling with the code. There&amp;#39;s a free tool that is commonly used - Softerra LDAP Browser - that lets you &amp;quot;try&amp;quot; connect to an LDAP source and try out any search filter and immediately see the results. I believe this is an easy way to get things right. If you google on Softerra you&amp;#39;ll find this browser quickly.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The only thing I can see in your code is that you don&amp;#39;t specify any credentials when connecting. Do you know if your LDAP source is configured to allow anonymous access? Otherwise you will probably have to specify a fixed set of credentials for the connection to work.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>I am connecting fine to LDAP on Windows server but am having trouble formulate connection to a UNIX server</title><link>http://forums.asp.net/thread/2506888.aspx</link><pubDate>Tue, 22 Jul 2008 19:57:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2506888</guid><dc:creator>Molap</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2506888.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=93&amp;PostID=2506888</wfw:commentRss><description>&lt;p&gt;I wrote a web page to list all network users for our company&amp;#39;s domain. The information is selected from LDAP that is on a window box. My connection details are similar to this: &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="coloredcode"&gt;        myLDAPPath = &lt;span class="st"&gt;&amp;quot;LDAP://myserver/DC=int,DC=englishchannel,DC=com&amp;quot;&lt;/span&gt;
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; mySearchRoot &lt;span class="kwd"&gt;As New&lt;/span&gt; DirectoryEntry(myLDAPPath)
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; myDirectorySearcher &lt;span class="kwd"&gt;As New&lt;/span&gt; DirectorySearcher(mySearchRoot)
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; filterString &lt;span class="kwd"&gt;As String&lt;/span&gt; = &lt;span class="st"&gt;&amp;quot;(&amp;amp;(objectCategory=person)(!(userAccountControl:1.2.345.6175886.1.4.803:=2)))&amp;quot;&lt;/span&gt;
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; results &lt;span class="kwd"&gt;As&lt;/span&gt; SearchResultCollection
        myDirectorySearcher.Sort = &lt;span class="kwd"&gt;New&lt;/span&gt; SortOption(&lt;span class="st"&gt;&amp;quot;sn&amp;quot;&lt;/span&gt;, SortDirection.Ascending)
        myDirectorySearcher.Filter = &lt;span class="st"&gt;&amp;quot;(&amp;amp;(objectClass=*))&amp;quot;&lt;/span&gt;
        myDirectorySearcher.Filter = filterString
        mySearchRoot.AuthenticationType = AuthenticationTypes.FastBind
        results = myDirectorySearcher.FindAll()

        &lt;span class="kwd"&gt;For Each&lt;/span&gt; result &lt;span class="kwd"&gt;As&lt;/span&gt; SearchResult &lt;span class="kwd"&gt;In&lt;/span&gt; results
... ... &lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now&amp;nbsp; I am trying to connect to LDAP on one of our Unix Servers. The server name is protector.englishchannel.com&amp;nbsp;&lt;pre class="coloredcode"&gt;        myLDAPPath = &lt;span class="st"&gt;&amp;quot;LDAP://protector.englishchannel.net/&amp;quot;&lt;/span&gt;
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; mySearchRoot &lt;span class="kwd"&gt;As New&lt;/span&gt; DirectoryEntry(myLDAPPath)
        &lt;span class="kwd"&gt;Dim&lt;/span&gt; myDirectorySearcher &lt;span class="kwd"&gt;As New&lt;/span&gt; DirectorySearcher(mySearchRoot)
        &lt;span class="cmt"&gt;&amp;#39;Dim filterString As String = &amp;quot;(&amp;amp;(objectClass=*))&amp;quot;
&lt;/span&gt;        &lt;span class="kwd"&gt;Dim&lt;/span&gt; results &lt;span class="kwd"&gt;As&lt;/span&gt; SearchResultCollection
        &lt;span class="cmt"&gt;&amp;#39;myDirectorySearcher.Sort = New SortOption(&amp;quot;domainName&amp;quot;, SortDirection.Ascending)
        &amp;#39;myDirectorySearcher.Filter = filterString
&lt;/span&gt;        mySearchRoot.AuthenticationType = AuthenticationTypes.FastBind
        results = myDirectorySearcher.FindAll()


        &lt;span class="kwd"&gt;For Each&lt;/span&gt; result &lt;span class="kwd"&gt;As&lt;/span&gt; SearchResult &lt;span class="kwd"&gt;In&lt;/span&gt; results
... ... &lt;/pre&gt;
&lt;p&gt;&amp;nbsp;The trouble is that after I step through the program I see that there are no results in the set. So the FOR Each Result ends up not executing because the result set is empty. &lt;/p&gt;
&lt;p&gt;Can anyone help me formulate an LDAP connection for our Linux Server? (listed above) &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank You, &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Molap&lt;/p&gt;</description></item></channel></rss>