Hi. I'm tring to implement AD login with .net beta2 here.
I am using asp:Login control, but the Login always fails.
I tried to validate manually using
Membership.ValidateUser("domain\user", "pass") or ("user", "pass"), but
it always returns "False".
The credentials are right, and it seems to connect to AD because it
doesn't give me any error when trying to validate, but i can't be sure.
Here are the settings in my web.config:
<connectionStrings>
<add name="ADServer"
connectionString="LDAP://192.168.10.14/DC=COMPANY,DC=COM,DC=BR" />
</connectionStrings>
....
<membership defaultProvider="AD">
<providers>
<add
name="AD"
type="System.Web.Security.ActiveDirectoryMembershi pProvider,
System.Web, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="ADServer"
connectionUsername="COMPANY\Administrator"
connectionPassword="password"
/>
</providers>
</membership>
Any tips?
Thanks! 1 2049
Try posting your questions to :- dotnet.framework.asp.net.security forum
Hope that helps
Patrick
"Natan Vivo" <nv***@terra.com.br> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl... Hi. I'm tring to implement AD login with .net beta2 here.
I am using asp:Login control, but the Login always fails.
I tried to validate manually using Membership.ValidateUser("domain\user", "pass") or ("user", "pass"), but it always returns "False".
The credentials are right, and it seems to connect to AD because it doesn't give me any error when trying to validate, but i can't be sure.
Here are the settings in my web.config:
<connectionStrings> <add name="ADServer" connectionString="LDAP://192.168.10.14/DC=COMPANY,DC=COM,DC=BR" /> </connectionStrings>
...
<membership defaultProvider="AD"> <providers> <add name="AD" type="System.Web.Security.ActiveDirectoryMembershi pProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADServer" connectionUsername="COMPANY\Administrator" connectionPassword="password" /> </providers> </membership>
Any tips?
Thanks! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Arnel |
last post by:
I have a web app which uses the new ASP.NET 2.0 login control to
authenticate against active directory. Now, I would like to use the
new namespaces (ActiveDirectoryMembershipProvider,
ActiveDirectoryMembershipUser, MembershipUser, Membership, etc) to
retrieve the logged in user properties available. I have been able to
get the logged in...
|
by: JD Qixcle |
last post by:
I have been following several threads between David Thielen and Luke Zhang
regarding the ActiveDirectoryMembershipProvider as used for ASP.NET
2.0 Forms authentication, but I receive a slighly different error. I
consistently receive the following message after submitting credentials from
the login page:
Parser Error Message: Object...
|
by: moi |
last post by:
Hello,
I try to make a login.aspx page to login an Active directory's user and i have a 1315 Web event Error in Windows server 2003 application's log with this error : 4006 Membership credentiel verification failed.
Could you help me ?
here's my web.config :
<connectionStrings>
<add name="ADConnectionString"...
|
by: Parag Mahajan |
last post by:
Hi,
I am using the membership provider class, "System.Web.Security.ActiveDirectoryMembershipProvider".
I am using Login Server control and attaching the already configured "ActiveDirectoryMembershipProvider" in the web.config file. But my restriction is that I do not want to give the "connectionUsername" and "connectionPassword" in the...
|
by: Glenn Eastlack |
last post by:
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>
| |
by: Nehpets |
last post by:
I'm trying to setup a web site that uses active directory for user
authentication under asp.net 2.0.
For testing, I have separately installed two virtual servers. The first is
a domain controller in a new forest named VSERVER00 running Windows Server
2003 R2 Standard. The second is an application server running IIS in the
same domain,...
|
by: Gonza |
last post by:
Hi all, i'm getting an "object reference not set to an instance of an
object" exception when trying to login using the asp:login control and
ActiveDirectoryMembershipProvider. What's strange is that if I put a
wrong username or password in the connection string the login control
tells me this, and doesn't throw the other exception. Any ideas?...
|
by: zeplynne |
last post by:
Having trouble using ActiveDirectoryMembershipProvider with one specific
website. When attempting to login to the site, after a long period of time
(about 2 - 3 minutes), "Server Application Unavailable" message is returned.
If I switch the provider back to SQLServer everything works fine.
If I create a new simple Web Application and just...
|
by: rroden |
last post by:
C:\WINDOWS\assembly
\WindowsSystem.Web.Security.ActiveDirectoryMembershipProvider isn't
being installed with .net 2.0 or 3.0 on any of my systems. What am I
doing wrong?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |