Last post Mar 22, 2010 02:32 AM by Tapan Bhatt
Mar 15, 2010 08:28 PM|ChrisB22|LINK
Hi Guys I am trying to use ActiveDirectory/Windows Authentication. However I am having problems with the connection string for this
Version=188.8.131.52, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
It seems as if the Connection String is the Problem
<add name="ADConnectionString" connectionString=LDAP://Server/DC=Server/OU=Users />
Note that Server is an alasis for the actual server name (www.someurl.com) and I am attempting to get this solution to run on localhost/visual studio. The error I seem to be getting is "A referral was returned from the
server." Not sure if I need to specify a username/password (how?), if the URL syntax is wrong, that I'm trying to connect to the server remotely, the fact that 'server' is an alias or what.
Any help is much appriciated :)
Mar 16, 2010 02:35 AM|Das.Sandeep|LINK
Just go through, is your problem solve if not then contact us again.
Mar 22, 2010 02:32 AM|Tapan Bhatt|LINK
If you are using Login page then you need to set MembershipProvider property which you have already define
"MembershipADProvider" in web.config.
Connection String -
<add name="ADConnectionString" connectionString="LDAP://someurl.com/CN=UserName,DC=someurl,DC=com" providerName="System.Data.SqlClient"/>
Please let me know if you still find any problem.