473,405 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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 2939
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
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
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
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
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
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
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
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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...
0
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
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,...

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.