473,503 Members | 1,662 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 2947
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 misunderstanding, please feel free to let me know.

As far as I know, you need to implement the IAuthenticationProvider
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://" , AuthenticationMode 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 LdapAuthenticationProvider 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 misunderstanding, please feel free to let me know.

As far as I know, you need to implement the IAuthenticationProvider
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********@newsgroup.nospam> schreef in bericht
news:E2**********************************@microsof t.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********@newsgroup.nospam> schreef in bericht
news:E2**********************************@microsof t.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
IAuthenticationProvider. 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 DbAuthenticationProvider 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
2885
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...
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...
2
4245
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...
4
2222
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...
1
3590
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...
8
5254
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...
0
1427
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...
4
8209
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...
1
1437
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...
0
7201
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,...
0
7278
Oralloy
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,...
0
7328
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...
1
6988
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...
0
5578
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,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
379
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...

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.