Using E-mail for Sign In w/ LDAP Fallback Authentication

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/28/2012 10:41:52 AM
Gravatar
Total Posts 156

Using E-mail for Sign In w/ LDAP Fallback Authentication

What is the rationale for preventing e-mail from being used for login while LDAP fallback authentication is enabled?  

3/28/2012 11:07:48 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

LDAP authentication is done by user ID. LDAP fallback authentication first tries to authenticate against the internal database by user ID, then if that fails it uses the same credentials to attempt an LDAP authentication.

Jamie

3/28/2012 12:35:33 PM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Jamie,

We are a non-profit organization which raises money for NIU. Therefore, all of our employees' user ids are stored in university's Active Directory and they are perfectly comfortable with using their user IDs for the site since they've used them to log into their workstations for years now.

We are also working on a board section of the site specifically for ~35 board members most of whom aren't employed by the university and can't be added to Active Directory. For them, using e-mail would be far superior and in our case essential.

We do not want to fork mojoPortal and maintain our own authentication implementation, so I thought I'd make a proposal to you guys and see if you would be content with committing such changes upstream. I will of course work on changes locally and will provide them to you.
 
Instead of forcing all of our users to use either user ID or e-mail, we would like to introduce a mixed mode which would work like this:
 
In site settings, instead of just UserEmailForLogin checkbox which forces e-mails when checked and user IDs when unchecked, we would have a radio group like so:
  • Force user ID for login
  • Force e-mail for login
  • Allow either user ID or e-mail for login
  1. Under "Force user ID for login," only user IDs will be allowed as input and DBSiteUser.Login() will be used.
  2. Under "Force e-mail for login," only e-mails will be allowed as input and either DBSiteUser.LoginByEmail() can be used or a corresponding user ID from user profile can be retrieved and DBSiteUser.Login() can be called as if user provided it.
  3. Under "Allow either user ID or e-mail for login," either user ID or e-mail will be allowed as input.  Regular expression can determine which one was provided.  If it was an e-mail,  a corresponding user ID from user profile can be retrieved and DBSiteUser.Login() will be attempted first and SiteUser.LoginLDAP() second.

 

What are your thoughts on this?

3/28/2012 12:51:20 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

I think it will be problematic to make that change because it goes beyond validation for login, the authentication cookie is either based on the email or the userid (LoginName field) , it cvan't be an either or situation and that matters everywhere the user is looked up.

My suggestion would be to populate the LoginName field with the email address for your board members, then they can login using their email addresses.

Best,

Joe

3/29/2012 2:47:33 PM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Maybe I am misunderstanding something, but you aren't switching back and forth once you are logged in.  If it's an e-mail, you convert it to user ID first and THEN validate it.  I'm not seeing why this would be problematic for SetAuthCookie() ...

3/29/2012 3:23:21 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Problem is we don't SetAuthCookie, that is done for us behind the scenes by the ASP.NET login control using whatever was passed in and validated by the membership provider. For LDAP that is going to be user id aka loginname.

I don't see why you can't just duplicate the email address in the LoginName field, seems like a good solution for this problem to me.

3/29/2012 8:46:17 PM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Because when you enter an e-mail address and hit "Update User," it actually replaces the '@' symbol with a dot and that's a deal breaker...

3/30/2012 7:32:03 AM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

when you enter an e-mail address and hit "Update User," it actually replaces the '@' symbol with a dot

That is an easy problem to fix, it is fixed now in the source code repository.

Hope that helps,

Joe

3/30/2012 10:04:16 AM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

So what about the comments you have in the source?

// don't allow @ because in some configuration
// we allow login by either email or loginname
// we want login name to not look like an email address

 

3/30/2012 10:10:09 AM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Those comments are from back in the .NET 1 days circa 2004 before use of the asp.net LoginControl and the existence of MembershipProvider.

3/30/2012 10:47:42 AM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Sure, but I don't think the purpose of replacement line has changed :).  Why did you want to make sure that user Id and e-mail address were different then, but not now?  I think that's because that's usually what you will want and in our case we would love to have a different user id as well if possible.

3/30/2012 10:57:44 AM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

look, I've tried to accomodate you but I'm getting tired of arguing with you.

That comment was before .NET 2, before support for LDAP. If we were setting the auth cookie I'd have gone along with allowing email and ldap together but I'm not changing that now.

If it is still important for userid to not be the same (I'm not so sure it is, they each must be unique per site but I don't see a big reason why they cannot be the same value for a given user) I would implement it different today perhaps with a custom validator on the registration page, but that would not solve the problem you are trying to solve for your 30 or so users that need to login without ldap using their email address. How about update their user ids to their email address and move on? Why must you keep arguing with me?

3/30/2012 11:15:11 AM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

I'm arguing with you because I'm told to replicate the e-mail in two different fields under user profile as a "solution" to my problem when it really isn't. The user IDs for those 35 users were taken out of our donors database and we need those user IDs because of a module I'm working on which would use that database.

I understand that you don't manually set the authorization cookie and that you let ASP.NET security framework take care of that, but I also know that this can be addressed and I'm willing to help.

I think the biggest issue here is that even though this is an open source product, the actual development of the entire CMS is fairly closed in the sense that it's not common practice for people to fork, make changes, and make pull requests. So essentially, one has to either fork the project and maintain his/her own fork, continually merging your changes into the fork or try and convince you first to avoid a situation where changes have been made, but you won't commit them.

3/30/2012 11:35:34 AM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

I'm arguing with you because I'm told to replicate the e-mail in two different fields under user profile as a "solution" to my problem when it really isn't. The user IDs for those 35 users were taken out of our donors database and we need those user IDs because of a module I'm working on which would use that database.

You could solve that problem in your feature by using a custom table to relate those ids.

I understand that you don't manually set the authorization cookie and that you let ASP.NET security framework take care of that, but I also know that this can be addressed and I'm willing to help.
I think the biggest issue here is that even though this is an open source product, the actual development of the entire CMS is fairly closed in the sense that it's not common practice for people to fork, make changes, and make pull requests. So essentially, one has to either fork the project and maintain his/her own fork, continually merging your changes into the fork or try and convince you first to avoid a situation where changes have been made, but you won't commit them.

You have a mythological view that all open source projects should be or are run a particular way. I'm not going to defend myself against that, I run this project my way, it is tightly controlled and that is my perogative, I've always been clear about that, I've never said its open for any or all changes to get in. I accept changes that I'm willing to accept or I reject proposals for many reasons that make sense to me. I'm not willing to make this change at this time. I'm sorry if you don't like that. Open  Source is many things to many people, an open source license doesn't mean every open source project must follow a particular process or that I'm doing it wrong if I don't accept your changes.

3/30/2012 12:08:13 PM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

You could solve that problem in your feature by using a custom table to relate those ids.

user ID and e-mail have separate fields for a reason. My original plan was to utilize as much of mojoPortal as possible and user ID and e-mail seemed to fit the purpose perfectly and they still do, but it looks like I'll have to work around the limitations.

You have a mythological view that all open source projects should be or are run a particular way.

That is not a mythological view - there is a reason why certain open source projects are more popular than others.  A lot of it has to do with how excited and involved the developing community is. Having forums, mailing lists, and irc channels are a big part of it.  However, planning and ease of commit process (after being accepted) is equally important.

I'm not going to defend myself against that, I run this project my way, it is tightly controlled and that is my perogative, I've always been clear about that, I've never said its open for any or all changes to get in. I accept changes that I'm willing to accept or I reject proposals for many reasons that make sense to me.

You have every right to do that - it is your project after all.

3/30/2012 12:29:58 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

user ID and e-mail have separate fields for a reason. My original plan was to utilize as much of mojoPortal as possible and user ID and e-mail seemed to fit the purpose perfectly and they still do, but it looks like I'll have to work around the limitations.

They both serve the purpose of supporting authentication, neither one is an ID in the database sense of the word, they are not intended for joins to other tables in custom features, relating to other tables would be better implemented using UserID field or UserGuid field, but my guess is you do have the email in your external database so you could probably use that if you really wanted to, but a more correct relational way of doing it would use the actual ID fields as opposed to the loginname which is just labelled as User ID in the UI for the benefit of the user.

In a perfect utopian world maybe someday I would just sit around and coordinate the contribution efforts of others (if I agreed with the proposed changes in the first place), but in the real world that takes a lot of time reviewing changes and communicating back and forth and it makes the project require more formal processes the more developers that are involved, and that slows things down. And the more people who want to sling code my way it diverts my efforts off of my own devlopment agenda and puts it on someone else's. I have limited bandwidth so I run the project the best I can under the varying concerns and goals I have foremost of which is making a living. Have you ever heard of Rainbow portal? I once was involved with that and it was so open there were lots of people with commit access all coding in different directions and it ultimately self imploded as a project because there was no-one in charge enough to say no. If others run their projects differently that is up to them and not my concern to compete with them on process of running the project. I'm happy with the rate at which mojoPortal popularity is growing and I'm happy with the way it is progressing as a product, as far as I'm concerned my way of managing it is working very well.

3/30/2012 12:40:01 PM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

As long as you are happy, Joe. 

It certainly sounds like you had a bad experience in the past and have decided to be on the opposite side of the spectrum.

3/30/2012 2:16:27 PM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Joe,

Why couldn't we test for the username format in  Login.LoggingIn event (http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.login.loggingin.aspx), re-assign UserName to a corresponding user ID if an e-mail is being used, and let authentication proceed?
 
You have an event handler in place already inside your SiteLogin control, so why not do this right before
 
 
 
SiteUser siteUser = new SiteUser(siteSettings, this.UserName);
 
 
3/30/2012 2:37:00 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

I don't know what you mean, that is not going to change what is used to set the cookie, it will set the cookie using what it passed into the ValidateUser method of the membershipprovider and that the membership provider said was valid, and that constructor for SiteUser is only going to find the user using either loginname or email not either/or, that is why sitesettings is passed in so that we know which one to use.

What I don't want to do is make that constructor work no matter which is passed in, that to me is coding in loop holes that I don't want to code in just to accomodate this edge case.

One could call e.Cancel there and then proceed to set the authcookie manually but I don't really want to do that either because it is inconsistent vs other things that use the membership provider such as /Services/AuthenticationService.svc which is a built in feature of ASP.NET much like the LoginControl but can be used in client script or silverlight or desktop apps. And to do that we would still need the constructor on SiteUser to work no matter whether loginname or email is passed in ignoring the site setting. I don't want to do that.

I thought of all the ways it could be done but I don't like any of them. Putting the email in the LoginName field seems to me the most rational workaround for this edge case. I'm sorry you don't like that suggestion but its the only one that seems reasonable to me.

3/30/2012 2:48:16 PM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

What I am suggesting is to always use user Id for everything internally, including passing it to the SiteUser constructor.  This way when user enters an e-mail for the username, we simply look up the user Id for that e-mail in Login.LogginIn event handler, re-assign UserName to the user Id and the proceed to pass it to SiteUser constructor.

SiteUser can always expect a user Id to be passed in to it, nothing else.

3/30/2012 2:50:58 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Another workaround you "could" use is to modify your copy of the stored procedure mp_Users_SelectByLoginName so that it also checks against the email address and returns the user row if it matches. It isn't an ideal thing to modify included procedures but that one has not changed in years and is not likely to change frequently if ever. That would be essentially making that SiteUser contsructor work no matter whether login name or email is passed in but only in your copy which is preferable to me than baking it in for everyone.

3/30/2012 4:12:47 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

What I am suggesting is to always use user Id for everything internally, including passing it to the SiteUser constructor. This way when user enters an e-mail for the username, we simply look up the user Id for that e-mail in Login.LogginIn event handler, re-assign UserName to the user Id and the proceed to pass it to SiteUser constructor.

SiteUser can always expect a user Id to be passed in to it, nothing else.

No, I don't like that idea. For LDAP users the cookie is going to have the loginname, and for the ones using email it would have the email address. you're suggesting sniffing the value of Context.User.Identity.Name to see if it looks like an email address then lookup ther username then lookup the user. Lots of extra weird logic and also additional hits to the database every time we lookup a user and big changes to code all to support this edge case of wanting to use email/database authentication in addition to ldap but also don't want to put the email address in the loginname field because we are using it to relate to some other custom data.

For this scenario, given the extra requirement that you don't want to put the email address in the LoginName field, I think the best solution is just modify the procedure like this:

ALTER PROCEDURE [dbo].[mp_Users_SelectByLoginName]


@SiteID int,
@LoginName nvarchar(50)

AS

SELECT *

FROM
mp_Users

WHERE
SiteID = @SiteID
AND (LoginName = @LoginName
OR Email =  @LoginName)


GO

Simple and effective and not really likely that this procedure will ever be modified by future upgrades. Not saying it could never happen but I don't expect it to, and it hasn't changed in many years so it hasn't been touched by an upgrade script in many years.

This would immediately meet your goal and seems like a reasonable solution to me for this particular scenario.

3/30/2012 4:46:08 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Ok, I just got a good idea for how to do this without any changes that seem onerous to me.

  1. we promote the config setting for UseLDAPFallbackAuthentication to a site setting 
  2. we add another site setting for Allow Email Authentication with LDAP
  3. we add a bit parameter to the stored procedure mp_Users_SelectByLoginName to indicate whether to check also againts the email
  4. we set that parameter according to the site settings
So the procedure would change like this:
 
ALTER PROCEDURE [dbo].[mp_Users_SelectByLoginName]

@SiteID int,
@LoginName nvarchar(50),
@AllowEmail bit

AS

SELECT *

FROM
mp_Users

WHERE
SiteID = @SiteID
AND (LoginName = @LoginName
OR (@AllowEmail = 1 AND Email = @LoginName))

How does that sound to you?

 

3/30/2012 9:57:42 PM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

No, I don't like that idea. For LDAP users the cookie is going to have the loginname, and for the ones using email it would have the email address. you're suggesting sniffing the value of Context.User.Identity.Name to see if it looks like an email address then lookup ther username then lookup the user. Lots of extra weird logic and also additional hits to the database every time we lookup a user and big changes to code all to support this edge case of wanting to use email/database authentication in addition to ldap but also don't want to put the email address in the loginname field because we are using it to relate to some other custom data.

I never suggested anything of this sort. I probably shouldn't have used the word "convert" earlier in this thread as that might have been a bit misleading.

So, looking at the authentication workflow, here's what I see in your code:

  1. ~/Secure/Login.aspx  includes <mp:Login>   which is LoginControl.ascx
  2. Inside LoginControl.ascx, everything is wrapped by <portal:SiteLogin> which is defined in SiteLogin.cs
  3. SiteLogin.cs inherits from System.Web.UI.WebControls.Login and this is where you plug into .Net security framework.
  4. After the user hits "Sign In,"  Login.LoggingIn event is raised which is handled by SiteLogin_LoggingIn where SiteUser is initialized using SiteUser(SiteSettings settings, string login) constructor
  5. Inside SiteUser constructor mentioned in #4, GetUser(string logInfo) is called, keeping in mind that logInfo could be either user Id or an e-mail at this point.
  6. Inside GetUser mentioned in #5, you have the following logic: 
if((siteSettings.UseEmailForLogin) && (!siteSettings.UseLdapAuth) &&(loginInfo.Contains("@")))
{
  using (reader = DBSiteUser.GetSingleUser(siteID, loginInfo))
  {
    GetUser(reader);
  }
}
else
{
  using (reader = DBSiteUser.GetSingleUserByLoginName(siteID, loginInfo))
  {
    GetUser(reader);
  }
 
This would have been the first place where you would make changes to the conditional statement to see if the newly introduced siteSettings.AllowEmailAuthenticationWithLDAP is set to true and use DBSiteUser.GetSingleUser(int siteId, string email) function which utilizes Email in mp_Users table.

Once this has been handled, then the Authenticate  event will be raised behind the scenes and .Net will start calling on your mojoMemebershipProvider where ValidateUser() and other functions and files would be the places where you would have to modify your conditionals to use either DBSiteUser.LoginByEmail() or DBSiteUser.Login().

 

This would involve more C# changes, but let you keep your stored procedures intact.  This is what I was suggesting from the very beginning.

I like your latest suggestion because I think it's an elegant and quick solution.  The only down side I see is that the existent user retrieval and validation code inside SiteUser.cs and mojoMembershipProvider.cs will not contain any logic for the change we are discussing as these changes would affect *.config files,  ~/Admin/SiteSettings.aspx(.cs) and mp_Users_SelectByLoginName stored procedure.  While it's an easier route to go, I don't think it's the most appropriate place for the logic.

In my humble opinion, if I were looking at your code for the first time to see how you authenticate users based on site settings, I would expect the new siteSettings.AllowEmailAuthenticationWithLDAP to be right there along with siteSettings.UseEmailForLogin and siteSettings.UseLdapAuth inside your conditionals.

It is your call though.  
 
I really appreciate your willingness to make this change.  Thank you so much for agreeing to accommodate this corner case of ours.
 
 
Respectfully,
Alex 

 

 

3/31/2012 6:49:48 AM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Hi Alex,

The only down side I see is that the existent user retrieval and validation code inside SiteUser.cs and mojoMembershipProvider.cs will not contain any logic for the change we are discussing

That isn't the way I see it, this would be used at the point we lookup the user in mojoMembershipProvider ValidateUser method and it would use rules based on sitesettings passed into the constructor of siteUser. Looking up the user in onloggingin is like looking up the user before we lookup the user, its redundant and creates extra hits to the db and puts the logic more in the UI code.

Also its not just initial login where this matters. The auth cookie which is reflected in Context.User.Identity.Name is going to be LoginName for ladp users and EmailAddress for non ldap users in this scenario because the login control is going to set this cookie using whatever was passed in the textbox and validated by membership provider. Once the cookie is set membership provider is not involved on subsequent requests where the user is looked up by SiteUtils.GetCurrentSiteUser and again its going to pass sitesettings into the constructor and use the rules established on site settings to set the bit parameter for the stored procedure to true for AllowEmailFallback if and only if UseLDAP is true, AllowDbFallBackForLDAP is true and AllowEmailWithDBFallback is true. So it will be consistently enforced by the business objects both inside mojoMembershipProvider and outside it without any need for extra lookups and logic coded into the LoginControl. This also makes it more consistent when using other things like the AuthenticationService without having to code in extra rules into more places. mojoMembershipProvider is just an API wrapped around the business objects and the stored procedure is just doing what the business objects tell it to. The conditional logic you referenced is exactly where you will see the additional parameter passed into DBSiteUser.GetSingleUserByLoginName(siteId, loginInfo, allowEmailFallback) 

This is a clean and correct solution in my opinion. I'll implement it next week.

Best,

Joe

4/2/2012 11:35:14 AM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

This is now implemented in the source code repository, see the 2 new settings under the LDAP Settings tab in site settings.

Note that the previous web.config setting for UseLDAPFallbackAuthentication is no longer used as it has been replaced by a site setting. 

I would appreciate if you and Jamie could test this since I'm not currently setup to test with LDAP.

Thanks,

Joe

4/2/2012 1:27:49 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Hi Joe, I'll try to test this soon and report back.

Jamie

4/3/2012 1:37:10 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Hi Joe, here are the scenarios I tested, and all work:

  • LDAP fallback off: LDAP login works, database login fails
  • LDAP fallback on: LDAP and database login work
  • Allow sign-in with email: LDAP login by user ID works, LDAP login by email fails, database login by userid or email work

So it looks like everything is working as intended.

As an aside, one thing I noticed is that when LDAP fallback authentication is enabled with fallback off, the password field is hidden in the member list manage user interface. I think for consistency it should also probably hide the "User Must Change Password" checkbox in that case, since that really doesn't make sense in an LDAP-only environment.

Also, do you think the sign in ID textbox label needs to change? But maybe not, since I'm not sure if showing "User ID or Email" would be good, since LDAP still can't log in by email address.

Jamie

4/3/2012 1:47:30 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Hi Jamie,

Thanks a lot for testing this. Good point on hiding the user must change password when its ldap only, I'll do that.

I don't think we need to worry about the label, I've seen sites where they label it user id but the email address is the user id, and there isn't a clear way to label it that makes sense for both ldap users and user who sign in by email other than for the email users to just know that the user id is their email address. I don't think we would want to give away any info cluing people in that it also uses ldap.

Thanks,

Joe

4/3/2012 1:54:40 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

I would like to point out that technically ldap users could login with their email address since a database user is created for every ldap user and we must populate the pwd field with something so we generate a random password. An LDAP user could find out this random password by password recovery and then login using their email address and the mojoportal password instead of the ldap password. But this is also true when not allowing email, but still allowing database fallback, the user could login using either their ldap credentials or their username and mojoPortal password. So in any case where database authentication is allowed it is possible to login using the database credentials.

Best,

Joe

4/3/2012 3:01:08 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

True, that's a good point, Joe. When we went live with our Intranet site I hadn't turned off password reset, so a couple of people had forgotten they were supposed to use their Windows passwords and tried to reset their passwords. Luckily they called the help desk and we were able to educate them. I turned off the recovery option for that site to avoid any confusion. It'll be nice to be able to set LDAP database fallback per site, because now for the Intranet site I'll be able to disable fallback authentication altogether. Laughing

Jamie

4/4/2012 11:37:56 AM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Hi Joe,

I've tested all of the cases in our test environment and everything appears to be working as intended.  Thank you so much for implementing this change.

4/4/2012 12:18:33 PM
Gravatar
Total Posts 18439

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Hi Alex,

Which emails don't get sent?

Are the smtp settings configured the same in site settings as in web.config? any related errors being logged?

Are you saying this is related to ladp with db fallback configuration or a separate issue?

Can you try setting a break point in SiteUtils.GetSmtpSettings and see whats going on there?

Best,

Joe

4/4/2012 12:23:23 PM
Gravatar
Total Posts 156

Re: Using E-mail for Sign In w/ LDAP Fallback Authentication

Hi Joe, I did not want to hijack this thread with a separate issue, so I started a new thread in the Bugs section instead.  Could you re-post in there? http://www.mojoportal.com/Forums/Thread.aspx?pageid=5&mid=34&ItemID=2&thread=10122 

You must sign in to post in the forums. This thread is closed to new posts.