For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > July 2005 > Active Directory









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Active Directory
Jibbly Bee

2005-07-28, 5:03 pm

I am trying to use the microsoft article on using forms and Active Directory
for authentication, but I cannot work out what the LDAP is supposed to be,
in the example it has:

String adPath = "LDAP://DC=..,DC=.."; //Path to you LDAP directory server

should this be adPath="LDAP://DC=ServerIP,DC=ServerIP"; ????

This in on a normal network with one domain and controller, the domain
controll is Windows 2000, and the asp.net application is on a windows 2003
server.

Thanks.


Ray Costanzo [MVP]

2005-07-28, 5:03 pm

If your domain name is yourcompany.local, you'd do:

LDAP://DC=yourcompany,dc=local

If your domain name is yourcompany.com and you want to connect to a DC named
dc1, you'd do

LDAP://DC=dc1,DC=yourcompany,DC=local

Ray at work

"Jibbly Bee" <JibblyB@nnnooossppammyahoo.com> wrote in message
news:eFV1Tb5kFHA.2180@TK2MSFTNGP15.phx.gbl...
> I am trying to use the microsoft article on using forms and Active

Directory
> for authentication, but I cannot work out what the LDAP is supposed to be,
> in the example it has:
>
> String adPath = "LDAP://DC=..,DC=.."; //Path to you LDAP directory server
>
> should this be adPath="LDAP://DC=ServerIP,DC=ServerIP"; ????
>
> This in on a normal network with one domain and controller, the domain
> controll is Windows 2000, and the asp.net application is on a windows 2003
> server.
>
> Thanks.
>
>



Jibbly Bee

2005-07-28, 5:03 pm

Thanks,

I'll give that a try.


"Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in
message news:OlDuvu5kFHA.1048@tk2msftngp13.phx.gbl...
> If your domain name is yourcompany.local, you'd do:
>
> LDAP://DC=yourcompany,dc=local
>
> If your domain name is yourcompany.com and you want to connect to a DC
> named
> dc1, you'd do
>
> LDAP://DC=dc1,DC=yourcompany,DC=local
>
> Ray at work
>
> "Jibbly Bee" <JibblyB@nnnooossppammyahoo.com> wrote in message
> news:eFV1Tb5kFHA.2180@TK2MSFTNGP15.phx.gbl...
> Directory
>
>



Paul Clement

2005-07-29, 5:05 pm

On Thu, 28 Jul 2005 18:07:23 +0100, "Jibbly Bee" <JibblyB@nnnooossppammyahoo.com> wrote:

¤ I am trying to use the microsoft article on using forms and Active Directory
¤ for authentication, but I cannot work out what the LDAP is supposed to be,
¤ in the example it has:
¤
¤ String adPath = "LDAP://DC=..,DC=.."; //Path to you LDAP directory server
¤
¤ should this be adPath="LDAP://DC=ServerIP,DC=ServerIP"; ????
¤
¤ This in on a normal network with one domain and controller, the domain
¤ controll is Windows 2000, and the asp.net application is on a windows 2003
¤ server.

Check the default naming context:

Dim RootDSE As New DirectoryServices.DirectoryEnt_ry("LDAP://RootDSE")
Dim DomainDistinguishedName As String = RootDSE.Properties("DefaultNamingContext").Value


Paul
~~~~
Microsoft MVP (Visual Basic)
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com