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

Activities of "fguo"

Thank you! Look forward to seeing the improvement on version 9.

For now, while developing out of domain, I manually set "Abp.Zero.Ldap.IsEnabled=false" on database table AbpSettings:

update AbpSettings set [Value]='false' where [Name]='Abp.Zero.Ldap.IsEnabled'

I may set it back from client side by enabling "LDAP Authentication", before deploy it to production server.

Thanks again!

I am not too sure how to do it. It looks too complicated to me. I would to manually disable LDAP while working out of domain for development.

However, it seems a bug even running in domain network. I tested to login with an user who is not a domain user and its user.AuthenticationSource = NULL. I also tested to login with different tenant, even the built-in [email protected]. All got the same exception: The LDAP server is unavailable. As my test, if our LDAP server was down by any reason, the whole application would be crashed.

The LDAP setting seems working application wide. If it is enabled by one tenant, it impacts all other tenants and all users, no matter what user's AuthenticationSource setting. Any logins trigger "System.DirectoryServices.Protocols.LdapConnection.Connect()". If it is true, I think the logic needs to change: before LdapConnection, check the user's AuthenticationSource setting. If it is not "LDAP", just pass without connection.

I am not able to go too deep into aspnetboilerplate assembly to verify my guess. I am just thinking a simple patch on my application for now. Can you tell me where the "tenant settings" data persistent stored? I couldn't find it from database or files on disk.

Thanks!!

I am working on localhost for server side code with Swagger UI or GraphQL Playground.

I actually tried to login via Angular app from "localhost:4200/account/login", but it still got error of "Failed to load resource: the server responded with a status of 500 ()". It is because of server side exception from log: The server could not be contacted. The LDAP server is unavailable.

It is still on development stage for this version. I am not sure if it works on production. Do you think so?

Is it easy to implement something to automatically fall down to standard login when LDAP fails? Even hardcoded is helpfull.

Thanks!

I selected the project type first (i.e. ASP.NET Core Angula), but it seems only to look up from subtitles. I need to look up from whole content. As an example, I know it mentions "LDAP" somewhere, which I learned it years ago. I can't remember which subject it is under. Maybe you can place the docments onto github?

We encounter the same situation. Can you show me how you hardcoded to solve it?

Thanks!

I still no idea how to remove footer-bar and header-bar. As I said, I've tried to uncheck the "Fixed header" and "Fixed footer" from "Visual Settings", but it doesn't work.

Thank you for suggestion! I tried it, but it seems no help.

Ok, never mind. I will try some alternative. I like to use Metronic css classes,. It looks powerful, but just realized how hard to learn without a well-organized document/tutorial. I have to give up.

For now, can you just tell me how to hide the footer-bar dynamically from your code?

I don't want to configure it hidden all time, but just hide it when I route to this particular page.

Thanks,

Hi, ismcagdas:

I haven't solved this issue. I actually like to take the whole area right to the side-bar (no footer and header). Here is my simplified test.component.ts for light-green background color on the entire of this area:

import { Component, Injector, OnInit } from '@angular/core';
import { AppComponentBase } from '@shared/common/app-component-base';
import { appModuleAnimation } from '@shared/animations/routerTransition';

@Component({
    template: `<div [@routerTransition]>
    <div style="background-color:#F5FFF2;width:100%;height:100%">
        Panel
    </div>
</div>`,
    animations: [appModuleAnimation()],
    preserveWhitespaces: true
})
export class DevtestComponent extends AppComponentBase implements OnInit {
    ngOnInit(): void {
    }

    constructor(
        injector: Injector) {
        super(injector);
    }
}

Here is the result screen shot: You may see it is not stretched to the full area.

I've tried several ways. The only workaround is adding "100%" on both div AND adding "app-root" as the selector:

    selector: 'app-root',
    template: `<div [@routerTransition] style="width:100%;height:100%;">
    <div style="background-color:#F5FFF2;width:100%;height:100%;">
        Panel
    </div>
</div>`,

To stretch to "subheader" area, I need to uncheck the "Fixed header" in Administration > Visual Settings > Subheader tab.

I still no idea how to remove footer-bar and header-bar. I've tried to uncheck the "Fixed header" and "Fixed footer", but it doesn't help.

I like to use the Metronic's built-in style classes. It has plenty well designed classes with BEM name convention. However, it is not easy to learn. Right now, I try to dig out a class from style.boundle.css file, but it is a big file and hardly to search out what I need. It's too much guess-work involved. I couldn't find a clear visual document/tutorial. Hope you can recommend one.

Thanks,

I solved it.

While running “npm run create-bundles”, the process was stuck after prompt of “Finished ‘buildDev’ after 3.26 s”. I forced it exit by Ctrl-C.

Then, I still run "npm run buid" (instead of Bundler & Minifier in VS). It solved the problem.

Thanks,

Yes. I did these 3 steps. The only thing may be a little different is that, on the second step (run “npm run create-bundles”), the process hung after prompt of “Finished ‘buildDev’ after 3.26 s”. I have to Ctrl-C to exit.

I also tried to open VS, right-click *.Web.Public project > Bundler & Minifier > Update Bundles, and then, restore packages by right-clicking *.Web.Public/Dependencies/npm. No error propmpt on this way.

Showing 1 to 10 of 178 entries