473,779 Members | 2,035 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ActiveDirectory MembershipProvi der ASP.NET 2.0

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 (ActiveDirector yMembershipProv ider,
ActiveDirectory MembershipUser, MembershipUser, Membership, etc) to
retrieve the logged in user properties available. I have been able to
get the logged in username when using Forms auth. with the following
code. Unfortunately, it doesn't work when I use Windows auth:

MembershipUser LoginName = Member.GetUser( User.Identity.N ame)

Does anyone know how to retrieve the various properties available for
AD users?

Nov 19 '05 #1
3 1640
For it to work for Windows auth you would have to set that on IIS
Go to IIS >Security and uncheck Anonymous logon and check integrated Windows
Auth.
Hope that helps
Patrick
"Arnel" <ar******@gmail .com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
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 (ActiveDirector yMembershipProv ider,
ActiveDirectory MembershipUser, MembershipUser, Membership, etc) to
retrieve the logged in user properties available. I have been able to
get the logged in username when using Forms auth. with the following
code. Unfortunately, it doesn't work when I use Windows auth:

MembershipUser LoginName = Member.GetUser( User.Identity.N ame)

Does anyone know how to retrieve the various properties available for
AD users?

Nov 19 '05 #2
Thanks, Patrick. But I've already set this. I have no problem
authenticating against AD, and I can retrieve user account properties
using System.Director yServices. However, I cannot seem to get the new
classes in ASP.NET 2.0 to work. I want to avoid using the
DirectoryServic es namespace because I would like to utilize the
ADmembership provider in 2.0.

Nov 19 '05 #3
There is a nice blog on thet here at:-
http://blogs.msdn.com/gduthie/archiv...17/452905.aspx
Hope that helps
Patrick

"Arnel" wrote:
Thanks, Patrick. But I've already set this. I have no problem
authenticating against AD, and I can retrieve user account properties
using System.Director yServices. However, I cannot seem to get the new
classes in ASP.NET 2.0 to work. I want to avoid using the
DirectoryServic es namespace because I would like to utilize the
ADmembership provider in 2.0.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1403
by: Rik Brooks | last post by:
I am trying to write a change password routine using the new ActiveDirectoryMembershipProvider. My code is below. I'm getting an exception saying that my ActiveDirectoryMembershipProvider has not been initialized. Can you guys point me to something that tells me what I'm doing wrong, please? bool checkItOut; string ls_retVal = ""; ActiveDirectoryMembershipProvider obj = new ActiveDirectoryMembershipProvider(); try
2
4875
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 reference not set to an instance of an object. Source Error:
0
1908
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 web.config file. I want to update this 2 attributes at runtime in the Login1_LoggingIn event handler, so...
18
4675
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>
0
1630
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, named VSERVER01 also running Windows Server 2003 R2 Standard. The domain is VDOMAIN.local. I have...
5
2881
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? Thanks in advance
0
1496
by: mannyl | last post by:
Hopefully one of you have worked with the .net 2.0 ActiveDirectoryMembershipProvider or some varient they of. please reply to rnbergren@dmacc.edu What I want to reference is the resetpassword method of the Membership user class. What I have done is create all the AD schema entries. I have pointed my web.config file properly at these items. Yet I still get the "Attribute schema mappings for bad password answer tracking must be...
0
1063
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 add a Login.aspx page and Default.aspx page, and nothing else, and add a Login Control everything...
3
1786
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?
4
2173
by: Max2006 | last post by:
Hi, I am using ActiveDirectoryMembershipProvider for authentication. In my development environment I don't have any Active Directory available for development and test. Basically my development environment is a windows xp laptop. I am trying to avoid running a domain controller on my laptop. What would be the easiest way to develop and test my application without running a domain controller on my laptop?
0
9632
marktang
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9471
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10136
jinu1996
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10071
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9925
tracyyun
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8958
agi2029
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4036
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
2
3631
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.