Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "clientfocusdev"

Answer

Our solution inside of ASP.NET Zero

Login.cshtml:

<input type="hidden" name="returnHash" id="returnHash" />

Login.js:

$("#returnHash").val(window.location.hash);

LoginViewModel.cs:

public string ReturnHash { get; set; }

AccountController.cs:

//After inital set returnUrl
if (!string.IsNullOrWhiteSpace(loginModel.ReturnHash))
{
     returnUrl = returnUrl +'/'+ loginModel.ReturnHash;
}

<cite>hikalkan: </cite>

Have you overrided OnModelCreating or Initialize methods of your DbContext also? If so, call base methods as first line.

That was it, thank you so much. Great support as always.

Answer
ERROR 2015-06-23 13:09:49,494 [292  ] .Mvc.Controllers.AbpHandleErrorAttribute - System.Data.Entity.Validation.DbEntityValidationException: Validation failed for one or more entities. See 'EntityValidationErrors' property for more details.

**EDIT

This error is with LDAP working, but something else is wrong. I tested with incorrect domain information and got a different error, then with incorrect user information and got a login invalid error. It seems to be working correctly but after it authenticates this error comes up.

I think I have found out the issue here. I will let you know if I found a fix, thanks.

Answer

When you say " application has no restriction" are you meaning there is some setup to allow some defaults to work within the AD configurations?

I have everything setup now, LDAP is enabled (MT disabled, admin logs in correctly), but when logging into the application with an LDAP account it simply errors with either an internal error or invalid credentials. Does the AD account need to create it's own user in the Iteration Zero project, or are there changes in the Zero Localization files to accommodate AD containers, domains and admin users rights?

Answer

The /Account/Logout worked. That was an interesting problem. Thank you for that solution.

Now that Multi Tenancy is disabled for LDAP, we basically fill out the AppLdapAuthenticaionSource method to get ldap working correct?

Showing 1 to 5 of 5 entries