Activities of "kapil"

hi

See https://docs.abp.io/en/commercial/latest/modules/account/ldap#customize-built-in-services

yes, i do same but this error is thrown.

i dont have "uid" attribute becaue is null i am using "cn" attribue which give this error.

hi

Can you remove the space from the username?

https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.identity.useroptions.allowedusernamecharacters?view=aspnetcore-6.0

but in "cn" attribue have space how i can remove.

but in "cn" attribue have space how i can remove.

Can you share more details?

If your system username must contain spaces, you can override IUserValidator<TUser> or add space to AllowedUserNameCharacters if i removed space from username then following error occured

but in "cn" attribue have space how i can remove.

Can you share more details?

if i removed space from username then following error occured

Did you add any custom code?

which type of details you need?

Yes,i added the code for CreateUserAsync.

public override async Task<Volo.Abp.Identity.IdentityUser> CreateUserAsync(string userName, string providerName)
{
    await IdentityOptions.SetAsync();

    var externalUser = await GetUserInfoAsync(userName);
    NormalizeExternalLoginUserInfo(externalUser, userName);

    var user = new Volo.Abp.Identity.IdentityUser(
        GuidGenerator.Create(),
        userName,
        externalUser.Email,
        tenantId: CurrentTenant.Id
    );

    user.Name = externalUser.Name;
    user.Surname = externalUser.Surname;

    user.IsExternal = true;

    user.SetEmailConfirmed(externalUser.EmailConfirmed ?? false);
    user.SetPhoneNumber(externalUser.PhoneNumber, externalUser.PhoneNumberConfirmed ?? false);

    (await UserManager.CreateAsync(user)).CheckErrors();

    if (externalUser.TwoFactorEnabled != null)
    {
        (await UserManager.SetTwoFactorEnabledAsync(user, externalUser.TwoFactorEnabled.Value)).CheckErrors();
    }

    (await UserManager.AddDefaultRolesAsync(user)).CheckErrors();
    (await UserManager.AddLoginAsync(
                user,
                new UserLoginInfo(
                    providerName,
                    externalUser.ProviderKey,
                    providerName
                )
            )
        ).CheckErrors();

    return user;
}

Is theexternalUser null?

If your system username must contain spaces, you can override IUserValidator<TUser> or add space to AllowedUserNameCharacters

externalUser

AllowedUserNameCharacters

thanks for the help i use AllowedUserNameCharacters to solve the error. thank you.

  • ABP Framework version: v4.4.4
  • UI type:MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace: Name mismatch so, please change name "Member" to "User" as mentioned in the attachment
  • Steps to reproduce the issue:"
  • Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v4.4.4
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • [ ] Exception message and stack trace: Required Search Functionality in Organization Unit > Roles at a time of add role as per link attachment.Search Issue
  • Steps to reproduce the issue:"
  • ABP Framework version: v4.4.4
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:Email Field name is mismatch in Users page as per attachments.
  • Steps to reproduce the issue:"
Showing 21 to 30 of 73 entries
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.1.0-preview. Updated on November 17, 2025, 08:31
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.