Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Urgent authentication question......Urgent authentication question......
Previous
 
Next
New Post
9/19/2006 11:44 AM
 
Ive posted here before but never received any responses.  I can no longer "sweep the issue under the carpet" so I must begin development very soon.....

I understand the built-in Active Directory authentication, but what I need to do is authenticate against a non-Active Directory LDAP setup.  Basically a server running OpenLDAP, the user password is encrypted and saved as a user attribute in the LDAP tree.

I cant figure out the best way to go about linking DNN up with this system.  I figure I have two choices: 1.  Create a login module that calls out to the LDAP system to see if the password is valid, and then log the user in if they are.  2.  Create a custom authentication provider that does the same, then just configure the site to use the custom provider.

The issues Ive run into with both approaches:

Approach #1.  Calling the LDAP system is trivial, Ive used components to do that before.  However, exactly what needs to be done to log the user into DNN?  I still need to declare group membership (we will be running modules that rely on data segregation based on users logging in), and I would want to save the user in the DNN userbase just for informational purposes.  How does one go about doing this programmatically?

Approach #2.  Ive opened the ADSIAuthenticationProvider project to look and see whats going on.  It looks quite complex, and I wouldnt know where to start to try and create my own provider.  I havent found any tutorials on how to do such a thing, as such Im beginning to think a custom module would be the easiest way to go....however, I would prefer the auth provider approach because then it (should) become a lot more reusable and modular (i.e. I can setup a different portal and just leave that auth provider set to the default).  *IF* I write a custom provider, what are the steps for "registering" (if any) it with the DNN system, and what steps would need to be taken to configure the portal to use the new provider?

This is really a stickler in our project, as the LDAP system is not going away anytime soon (although a migration to AD is planned, we all know how slowly things like that happen).  ANY (I mean ANY) help you can provide would be greatly appreciated.

Thanks in advance.
-Chris
 
New Post
9/21/2006 12:46 AM
 

I did a similar project using an existing Single SignOn (SSO) db as authentication source to DNN 3.1, 3.2 and DNN 4.3.  I documented and posted the source code here.  I used the Approach #1.  I have not looked into Approach #2 but it  sounds interesting

 


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
New Post
9/21/2006 2:14 AM
 

Without meaning to trivialise the issue in any way, it seems to me that a rewrite of WindowsSignin.aspx might be the easiest way to achieve a seamless login.  That way you dont need to modify the core in any way; rather just point the site at WindowsSigninCustom.aspx.  It also means that you don't need to work through the authentication stuff.

I'm faced with a similar problem and have decided to look at one of two alternatives:

1.   Grab the Windows Login info and then query an (imported) database (from MS Exchange) (the only valid store of User data).  The advantage here is the ability to pick up Group information based on standard Email groups;

or

2.   Using CDO, query the Exchange Server to determine the user ID.

In both cases I dont need a password, as the User has already been authenticated through their standard Windows login.

I might point out that our use of AD (a historical problem) is rubbish and therefore I need to look at workarounds.

HTH in some way.

Steve T

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Urgent authentication question......Urgent authentication question......


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out