It's working now, thanks for all your help :)

On Tue, Apr 12, 2011 at 11:34 AM, jason white <[email protected]>wrote:

> I had a recent project where I needed to work with AD, an used the
> following as a reference.
>
>
> this article is written for C#, but should be easy enough to translate to
> VB.
>
> http://www.codeproject.com/Articles/90142/Everything-in-Active-Directory-via-Csharp-NET-3-5-.aspx
>
>
> using System.DirectoryServices;
>
>             DirectoryEntry de = new
> DirectoryEntry("LDAP://OU=Users,OU=10000000,DC=domain,DC=local",
> @"domain\admin", "Pwd1234");
>             de.Path = "LDAP://OU=Users,OU=10000000,DC=domain,DC=local";
>             de.AuthenticationType = AuthenticationTypes.Secure;
>             return de;
>
>
> using System.DirectoryServices.AccountManagement;
>
>         private string sDomain = "domain.local";
>         private string sDefaultOU =
> "OU=Users,OU=10000000,DC=domain,DC=local";
>         private string sDefaultRootOU = "DC=domain,DC=local";
>         private string sServiceUser = @"domain\admin";
>         private string sServicePassword = "Pwd1234";
>
>
> Jason
>
>
> On Mon, Apr 11, 2011 at 7:58 AM, Steven Sullivan <[email protected]> wrote:
>
>> No, Windows 2003
>>
>>
>> On Sat, Apr 9, 2011 at 9:46 AM, Randolph Domingo 
>> <[email protected]>wrote:
>>
>>> What is the OS of your LDAP Server? is it a linux based?
>>>
>>>
>>> On Fri, Apr 8, 2011 at 5:14 AM, sPdMoNkEy <[email protected]> wrote:
>>>
>>>> I see lots of articles how to read LDAP to find username/password
>>>> using LDAP://, but I find none that show how I first authenticate with
>>>> my LDAP server (which is passworded) before I attempt to read a
>>>> username/password.
>>>>
>>>> Does anyone know of any articles and/or how to authenticate with an
>>>> LDAP server before attempting to read it?
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
>>>> Web Services,.NET Remoting" group.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
>>>> or visit the group website at http://megasolutions.net
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
>>> Web Services,.NET Remoting" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
>>> or visit the group website at http://megasolutions.net
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
>> Web Services,.NET Remoting" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
>> or visit the group website at http://megasolutions.net
>>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
> Web Services,.NET Remoting" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
> or visit the group website at http://megasolutions.net
>

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to