Announcement

Collapse
No announcement yet.

LDAP Authentication failed

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • paul.tcbc
    started a topic LDAP Authentication failed

    LDAP Authentication failed

    Hi,

    Can you give a solution why I'm getting Authentication failed : user not found error? I already setup the Base DN, system user and espo user on my Open LDAP server then configured it on my espo installation. The connection was successful between the two.

    But when I tried to login using the ldap user I created on my ldap server I got the error.

    Please advise.

    Thanks,
    paul.tcbc
    Last edited by paul.tcbc; 09-14-2018, 11:32 AM.

  • tarasm
    replied
    Please try the latest EspoCRM 5.5.1 version.
    1. Yes, it should work on this way. You can create an LDAP user with the same username as your admin user.
    2-3. Portal user access depends on configuration settings in the administrator panel:

    Click image for larger version

Name:	ldap-portal.png
Views:	1
Size:	14.2 KB
ID:	44141
    4. You have to configure your Custom URL on your web-server. An example for apache is available here: https://www.espocrm.com/documentatio...cess-to-portal.
    5-6. Default portal should be only one. It means when you open a link https://YOUR_URL/portal it will use your default portal. All other portals should be accessed with their ID (/portal/ID) or a custom URL.

    Leave a comment:


  • tanya
    replied
    Hello Paul,
    I hope this week new version will be released and all issues will be fixed.
    Regards,
    Tanya

    Leave a comment:


  • paul.tcbc
    replied
    Latest update on Espo 5.4.5.

    1. Portal Users created on Espo Admin can't login and its getting "Invalid Credential" on Auth Log or its Auth Token is not generated.
    2. If Custom ID is set and not Custom URL, whether the "Is Default" checkbox is checked or not the LDAP User can login and access the Portal.
    3. If Custom ID and Custom URL are not set, LDAP user can login to portal but not the Local Espo Portal User.
    4. If Custom URL is set, the "Is Default" checkbox must be checked at all times to avoid 404 not found page or the LDAP User login error.
    5. Problem is the "Is Default" checkbox has inconsistent behavior.
    6. I also checked the database of Espo and the portal table has no entry for "Is Default" checkbox.

    Please advise.
    Thanks,
    paul.tcbc

    Leave a comment:


  • paul.tcbc
    replied
    I installed the newest version of Espo which is 5.4.5 and I'm still getting the same result. Plus the assigned Local Espo User can't login on portal.

    Any updates? Please advise.

    Thanks,
    paul.tcbc

    Leave a comment:


  • paul.tcbc
    replied
    Hi,

    I applied the code modification on my espocrm version 5.4.4. And it seems that I'm still getting the same issue, I don't think its already resolve. Or maybe I missed something.

    Please advise.
    paul.tcbc

    Leave a comment:


  • tanya
    replied
    Will be fixed in the next version, Thanks
    https://github.com/espocrm/espocrm/c...0def1f4c859975

    Leave a comment:


  • paul.tcbc
    replied
    What I mean is that, after I checked the "Is Default" checkbox then I reload the page. The result is, the checkbox is no longer checked without editing the portal. It just shows "..." under "Is Default".

    If the checkbox is not checked the ldap user can't login and sometimes I'm getting 404 not found page for portal with custom url.

    Leave a comment:


  • tanya
    replied
    If you checked "is default" you can don't set portal id in url. If you don't have any default portal, portal id has to be set. Or you need to fix portal .htaccess

    Leave a comment:


  • paul.tcbc
    replied
    Thanks, Its already working. Although there's a little bit of inconsistency. I'm getting 404 not found page when the Portal with Custom URL "Is default" checkbox is not checked. So I had to checked that checkbox but when I reload the page, the checkbox is no longer checked. Plus the assigned LDAP user cant login.

    Please advise.
    Thanks,
    paul.tcbc
    Attached Files
    Last edited by paul.tcbc; 10-15-2018, 10:21 AM.

    Leave a comment:


  • tarasm
    replied
    New version 5.4.4 is available with this fix.

    Leave a comment:


  • tarasm
    replied
    The bug is fixed, the commit https://github.com/espocrm/espocrm/c...91e94cd07d05ea.

    Leave a comment:


  • tarasm
    replied
    I reproduced this bug. I will let you know a fix in a few days.

    Leave a comment:


  • paul.tcbc
    replied
    There's no useful information on the logs of Espo and Apache. The only thing I noticed was on Auth Log of Espo that the LDAP user that tries to login in Portal, its Auth Token was not generated. That's why its giving Invalid credential error even though I put the correct credentials based on LDAP server.

    But if the LDAP user was assigned to Admin, it can login and the Auth Token was generated.

    Please advise.
    Thanks,
    paul.tcbc

    Leave a comment:


  • tarasm
    replied
    Try to enable a debug mode, https://www.espocrm.com/documentatio...debugging-mode and check log files, https://www.espocrm.com/documentatio...ent-check-logs.

    Leave a comment:

Working...
X