Activities of "s.alshammari.c"

Answer

I am building file storage application to be consumed a cross my other apps and I am storing files on server as blobs , so having many files will lead to performance problems if I didn't use Azure blob or Minio ?

Answer

if I have like 100k+ files in the same Basepath folder will I face any performance issue ? or ABP can handle it

Question

I use Blob storing on a file system and files are saved on BasePath when I create folders on file management UI its only created on database . is there a way to create those folders physically and files uploaded saved into them and not only on the database?

I use asp, sql server , and angular

Question

I tried to integrate active directory using ldap and it works fine with MVC, i tried to integrate again but this time with angular and I get the following error

LdapOperationsErrorException: Operations Error. Operations Error. Result: 1. Method: ldap_parse_result. Details: ErrorMessage: 000004DC: LdapErr: DSID-0C090ACD, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563 LdapForNet.Native.LdapNative.ThrowIfError(SafeHandle ld, int res, string method, IDictionary<string, string> details)

Answer

all classes are on FinalizedApp.HttpApi.Host

------------------------------------------
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Options;
using System.Threading.Tasks;
using Volo.Abp.Features;
using Volo.Abp.Guids;
using Volo.Abp.Identity.ExternalLoginProviders.Ldap;
using Volo.Abp.Identity;
using Volo.Abp.Ldap;
using Volo.Abp.MultiTenancy;
using Volo.Abp.Settings;

namespace FinalizedApp
{
    public class VoloLdapExternalLoginProvider : LdapExternalLoginProvider
    {
        public VoloLdapExternalLoginProvider(
            IGuidGenerator guidGenerator,
            ICurrentTenant currentTenant,
            IdentityUserManager userManager,
            IIdentityUserRepository identityUserRepository,
            OpenLdapManager ldapManager,
            ILdapSettingProvider ldapSettingProvider,
            IFeatureChecker featureChecker,
            ISettingProvider settingProvider,
            IOptions<IdentityOptions> identityOptions)
            : base(guidGenerator,
                currentTenant,
                userManager,
                identityUserRepository,
                ldapManager,
                ldapSettingProvider,
                featureChecker,
                settingProvider,
                identityOptions)
        {



        }

        protected override async Task<string> NormalizeUserNameAsync(string userName)
        {
            // Default is $"uid={userName}, {BaseDc}"
            // or "userName@domain 
            //await LdapSettingProvider.GetDomainAsync();
            var loginUserName = await Task.FromResult($"{userName}");
            return loginUserName;
        }




    }
}

--------------------------------------

using LdapForNet;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.Identity.ExternalLoginProviders.Ldap;
using Volo.Abp.Ldap;

namespace FinalizedApp
{
    [Dependency(ReplaceServices = true)]
    [ExposeServices(typeof(OpenLdapManager), typeof(ILdapManager), typeof(LdapManager))]
    public class VoloOpenLdapManager : OpenLdapManager
    {
        public VoloOpenLdapManager(ILdapSettingProvider ldapSettingProvider)
            : base(ldapSettingProvider)
        {

        }

        protected override async Task<string> NormalizeUserNameAsync(string userName)
        {
            // or "userName@domain 
            //await LdapSettingProvider.GetDomainAsync();
            return await Task.FromResult($"{userName}");
        }

        protected override Task<string> GetUserFilterAsync(string userName)
        {
            // Default is $"cn={userName},{LdapOptions.BaseDc}"
            return Task.FromResult($"(&(objectClass=user)(sAMAccountName={userName}))");

        }

        protected override Task<string> GetUserEmailAsync(LdapEntry ldapEntry)
        {
            return Task.FromResult(ldapEntry.ToDirectoryEntry().GetAttribute("mail")?.GetValue<string>());

        }
    }
}


--------------------------------------------------
    Configure<AbpIdentityOptions>(options =>
    {
        options.ExternalLoginProviders.Remove(LdapExternalLoginProvider.Name);
        options.ExternalLoginProviders.Add<VoloLdapExternalLoginProvider>(LdapExternalLoginProvider.Name);
    });
}

---------------------------------
Question

hi,

I tried to integrate my organization with abp using Ldap on MVC and it worked fine with me. now I am using backend with angular template and I get the following error

An unhandled exception occurred while processing the request. LdapOperationsErrorException: Operations Error. Operations Error. Result: 1. Method: ldap_parse_result. Details: ErrorMessage: 000004DC: LdapErr: DSID-0C090ACD, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4563 LdapForNet.Native.LdapNative.ThrowIfError(SafeHandle ld, int res, string method, IDictionary<string, string> details)

Answer

I got same Exception

Answer

I configured my smtp server and I am getting this exception

Failure sending mail. System.Net.Mail.SmtpException: Failure sending mail.  ---> System.Net.Sockets.SocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.  at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)  at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)  at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)

Question

Hello,

I am using smtp4dev and tying to integrate with the emailing feature in the abp.

when I send email using "Send test email" button , i didn't receive any email .

here is my server host and port already tested that is working using powershell command "Send-MailMessage -To “test@test.com” -From “admin@test.com” -Subject “MyMail” -Body “This is the test” -SmtpServer "localhost" -Port "25"

but its not working in abp

Answer

I solved the issue

problem was on class VoloLdapExternalLoginProvider

before

after

I had to add the domain here

Zobrazeno od 31 do 40 z celkem 49 záznamů
Made with ❤️ on ABP v8.2.0-preview Updated on března 25, 2024, 15:11