473,656 Members | 2,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

build a custom authentication provider EL

Hi,
I'm planing to use the enterprise library in a new web project, and I was
looking at the Security application block which came by defaul with one
provider called database authentication provider. I want to develop new
authentication provider that will work with LADP.
My question where can I find a documentation and code samples on how to
develop a new authentication provider? and how to entegrate this new provider
with the configuaration console? and how to pass parameters from the
web.config to this provider?
Please send me any useful links to help me build this?
Thanks.
Sep 21 '05 #1
5 2964
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to implement an authentication
provider. If there is any misunderstandin g, please feel free to let me know.

As far as I know, you need to implement the IAuthentication Provider
interface. The interface has an Authenticate method, which checks a
credential and return if it is valid through a boolean value. It also sends
back an identity with output parameter.

You can check the Enterprise Library documentation for more information.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Sep 22 '05 #2
Hi Keven,
My goal is to develop an authentication provider as you said, and I know
that this provider need to implement IAuthentication provider, however I need
more details on how to pass parameters from the Security configuration file
to this provider.
For example I'm planing to build an LDAP Authentication provider and I need
to pass parameters like: LDAP server name, LDAP protocol like "LDAP://" or
"WinNT://" , AuthenticationM ode values from 0 to 256 and other parameters.
How to pass these parameters to my Authentication provider through the
Security application block configuration section.

The second question how to add my LdapAuthenticat ionProvider to the
Authentication provider dropdown in the security app block configuration
section when using the EL configuration console.

Finally I check the EL documentation but there is no example on how to
Extend or Modify the security application block and I would appreciate if
there is a sample code on how to do this kind of task.

Thanks.

"Kevin Yu [MSFT]" wrote:
Hi,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to implement an authentication
provider. If there is any misunderstandin g, please feel free to let me know.

As far as I know, you need to implement the IAuthentication Provider
interface. The interface has an Authenticate method, which checks a
credential and return if it is valid through a boolean value. It also sends
back an identity with output parameter.

You can check the Enterprise Library documentation for more information.

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Sep 22 '05 #3
Hi,

In addition to Kevin, have a look on MSDN with the keyword "isinrole"

http://msdn.microsoft.com/library/de...roletopic2.asp

I hope this helps,

Cor

"DSISupport " <DS********@new sgroup.nospam> schreef in bericht
news:E2******** *************** ***********@mic rosoft.com...
Hi,
I'm planing to use the enterprise library in a new web project, and I was
looking at the Security application block which came by defaul with one
provider called database authentication provider. I want to develop new
authentication provider that will work with LADP.
My question where can I find a documentation and code samples on how to
develop a new authentication provider? and how to entegrate this new
provider
with the configuaration console? and how to pass parameters from the
web.config to this provider?
Please send me any useful links to help me build this?
Thanks.

Sep 22 '05 #4
Unfortunately this link doesn't help because it's talking about Principal
object, however I was looking for a specific examples about the enterprise
library security application block and how to develop a custom authentication
provider.

Thanks.

"Cor Ligthert [MVP]" wrote:
Hi,

In addition to Kevin, have a look on MSDN with the keyword "isinrole"

http://msdn.microsoft.com/library/de...roletopic2.asp

I hope this helps,

Cor

"DSISupport " <DS********@new sgroup.nospam> schreef in bericht
news:E2******** *************** ***********@mic rosoft.com...
Hi,
I'm planing to use the enterprise library in a new web project, and I was
looking at the Security application block which came by defaul with one
provider called database authentication provider. I want to develop new
authentication provider that will work with LADP.
My question where can I find a documentation and code samples on how to
develop a new authentication provider? and how to entegrate this new
provider
with the configuaration console? and how to pass parameters from the
web.config to this provider?
Please send me any useful links to help me build this?
Thanks.


Sep 22 '05 #5
Hi,

The security provider you're implementing is a class that implements
IAuthentication Provider. You can specify the LDAP server name in the class
constructor or using a property. Then the Authenticate method can utilize
this property.

In the enterprise library, a DbAuthenticatio nProvider class is implemented.
You can take a look at it and it is a good demonstration.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Sep 23 '05 #6

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

Similar topics

3
2900
by: Christopher Baldwin | last post by:
Hello, Using ASP.NET v2.0.40607.42, I'm attempting to create a new file extension that should be handled exactly like "aspx" pages. For example, I just want to rename an aspx page from "test.aspx" to "test.extx", where .extx extensions are handled in exactly the same way as aspx pages. In pre-2.0 versions of ASP.NET, simply adding a HttpHandler element (below) to web.config, and adding a IIS mapping of "extx" to
5
272
by: DSISupport | last post by:
Hi, I'm planing to use the enterprise library in a new web project, and I was looking at the Security application block which came by defaul with one provider called database authentication provider. I want to develop new authentication provider that will work with LADP. My question where can I find a documentation and code samples on how to develop a new authentication provider? and how to entegrate this new provider with the...
2
4260
by: John | last post by:
Hi I am trying to setup a customised membership provider and I am getting the following error when trying to run the app; The entry 'AspNetSqlMembershipProvider' has already been added. The line is: <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
4
2233
by: techsupport | last post by:
I have some experience with .NET Remoting, as well as ASP.NET 2.0, and have been wanting to remote a custom membership and profile provider. I want to take advantage of the new controls in ASP.NET 2.0 such as Login, Loginuser, Loginview, etc. The ASP.NET provider model requires entries in the web.config for a 'connectionStringName', which I understand is utilized to connect to the data source. Problem is the client machine (machine A)...
1
3596
by: =?ISO-8859-1?Q?Carlos_Guzm=E1n_=C1lvarez?= | last post by:
Hello: I have custom Membership and Role providers for an ASP.NET application, the problem comes when the Authentication gets done ( and i'm using the Login control, it finished properly ) but looks like the user is not really logged in ( Verified using the LoginView control ) ¿¿ What could be the possible reasons for that problem ?? Thanks in advance !!!
8
5283
by: Tomasz | last post by:
Hello Developers! I have an interesting problem using my custom MembershipProvider, RoleProvider and Forms Authentication. Both MembershipProvider and RoleProvider require session state, where some very important context data are stored during the Session_Start event. My MembershipProvider and RoleProvider depend on this information. It seems that authentication process works with no problems.
0
1435
by: asnowfall | last post by:
After logging in, I am not able to redirect to the target url; and this happens only when I connect to the website using "http://machine- name:portname"; but not if I connect using either "http://IP:portname" or "http://localhost:portname" Web site has custom 'Login control' and custom 'Membership provider'; and I do not have access to 'Login control' control code. MembershipProvider::Validateuser() is returning true irrespective of...
4
8220
by: alexandis | last post by:
There are tons of articles about custom role and provider membership, but they just tear me apart and confuse :( The situation is following: I use DB2, so I wrote custom role + membership providers. Membership provider seems to work. I use forms authentication, so as articles say, I need to do some magic to be able to get roles for current user, because microsoft mechanism works only for windows authentication...
1
1440
by: Erik | last post by:
Hi Everyone, Hopefully this is an easy one. I've googled around for the answer but cant find it. I have simple login page that authenticates via a web service. I am using a custom membership provider which simply send the username and password to the web service and I get back a user ID if authentication passes. The problem is that I don't know how to get the UserID back to the login
0
8382
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
8297
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
8717
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...
0
8600
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
7311
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
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1930
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1600
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.