Re: ActiveDirectoryMembershipProvider
- From: "Juan T. Llibre" <nomailreplies@xxxxxxxxxxx>
- Date: Wed, 17 May 2006 15:52:40 -0400
re:
Do I have to use the administrator account for this to work
No. To read the user database, you can use any account listed in AD.
To add users, you must have admin rights to the AD database.
re:
Can I set the connectionUsername="" connectionPassword="" for a Provider Programmatically?
Sure.
In all cases, though, you must refer to a valid domain/AD database.
You can't use a "test" domain/AD database.
That's why I asked you if :
Does your dc=test, dc=com actually exist ?
Does testdns.test.com\administrator exist ?
actually exist.
I don't think you are the owner of test.com and testdns.test.com
is a subdomain of test.com, so you're using invalid domains.
That will never work.
That's why you received the error message you received.
You *must* use valid domains for AD queries.
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"MSDN" <sql_agentman@xxxxxxxxxxx> wrote in message news:%23xoDGaeeGHA.564@xxxxxxxxxxxxxxxxxxxxxxx
Juan,
Do I have to use the administrator account for this to work
Can I set the connectionUsername="" connectionPassword="" for a Provider Programmatically?
Thanks in advance
Sa
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:%23BdevibeGHA.1208@xxxxxxxxxxxxxxxxxxxxxxx
re:
Can anyone point me in the right direction to what
the error "A referral was returned from the server" means?
Does your dc=test, dc=com actually exist ?
Does testdns.test.com\administrator exist ?
See :
http://www.computerperformance.co.uk/Logon/Logon_CSVDE_Errors.htm#A_referral_was_returned_from_the_server.
http://www.computerperformance.co.uk/Logon/code/code_8007202B.htm
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Glenn Eastlack" <glenn@xxxxxxxxxxx> wrote in message
news:OlgFr1aeGHA.2068@xxxxxxxxxxxxxxxxxxxxxxx
I have been trying to use ASP.NET 2.0 built-in Membership Providers.
Particularly the ActiveDirectoryMembershipProvider.
My web.config looks like this:
<connectionStrings>
<clear/>
<add name="ADConnectionString"
connectionString="LDAP://192.168.32.129/CN=users,CN=testdns,DC=test,DC=com"
/>
</connectionStrings>
<membership defaultProvider="MembershipADProvider">
<providers>
<add name="MembershipADProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADConnectionString"
connectionUsername="testdns.test.com\administrator"
connectionPassword="password"/>
</providers>
</membership>
Active Directory is running on a Windows 2003 server within a VMWare
instance.
When I run the app and try to log in using the asp:Login control, I
receive the following error:
A referral was returned from the server
<providers>
Line 64: <add name="MembershipADProvider"
Line 65:
type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Line 66: connectionStringName="ADConnectionString"
Line 67: connectionUsername="administrator@xxxxxxxxxxxxxxxx"
Source File: C:\www\etlap-01.wur.ecri.org\html\web.config Line: 65
I can connection to AD just fine using the LDAPBrowser and the ADAM
adsiedit utility. Can anyone point me in the right direction to what
the error "A referral was returned from the server" means?
Much appreciated,
Glenn
.
- Follow-Ups:
- Re: ActiveDirectoryMembershipProvider
- From: MSDN
- Re: ActiveDirectoryMembershipProvider
- From: MSDN
- Re: ActiveDirectoryMembershipProvider
- References:
- Re: ActiveDirectoryMembershipProvider
- From: Juan T. Llibre
- Re: ActiveDirectoryMembershipProvider
- From: MSDN
- Re: ActiveDirectoryMembershipProvider
- Prev by Date: Re: AJAX auto complete component: AutoAssist 0.8
- Next by Date: Re: Same function different signatures
- Previous by thread: Re: ActiveDirectoryMembershipProvider
- Next by thread: Re: ActiveDirectoryMembershipProvider
- Index(es):
Relevant Pages
|