Giter Site home page Giter Site logo

Comments (4)

sadreck avatar sadreck commented on July 19, 2024 2

I've added an option to select between "Simple" and "NTLM" under the settings.

I'll close the issue now, but if something isn't working feel free to open it again.

from crackerjack.

sadreck avatar sadreck commented on July 19, 2024

Hi,

  1. Just to confirm, is your LDAP SSL running on port 636? You can check by connecting using ldp.exe on the AD itself by setting the port to 636.
  2. From the sounds of it something is going on with the user you are trying to bind with. In my test environment this is what the format/config looks like (domain is marvel.local):
    image

I've added a feature in the settings (under LDAP) that will allow you to test the connection and get a (hopefully) meaningful error message. Pull the latest and greatest and give it another go!

Thanks,
Pavel

from crackerjack.

tautology0 avatar tautology0 commented on July 19, 2024

The problem with connecting to LDAPS appears to be due to channel binding tokens - i.e. HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\NTDS\Parameters\LdapEnforceChannelBinding is set to 2. This is because crackerjack is connecting to LDAP via NTLM rather than through kerberos.

from crackerjack.

tautology0 avatar tautology0 commented on July 19, 2024

One of my colleagues offered a suggestion which fixed this with a simple change on line 209 of app/lib/base/ldap.py; by changing authentication from ldap3.NTLM to ldap3.SIMPLE. (Sorry I can't easily do a pull request from here):

connection = ldap3.Connection(server, user=ldap_user, password=password, authentication=ldap3.SIMPLE)

Obviously this is not sensible to do over unencrypted LDAP, so it may be worth doing some simple logic chose the authentication method.

from crackerjack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.