Giter Site home page Giter Site logo

Comments (4)

nickw444 avatar nickw444 commented on May 18, 2024 1

Ah looks like the form is making some assumptions about the return type, which could potentially have user_groups omitted:

if self.config.get('LDAP_SEARCH_FOR_GROUPS'):
response.user_groups = self.get_user_groups(
dn=bind_user, _connection=connection)

Should be a relatively simply fix to the forms code, will try raise a fix later today.

from flask-ldap3-login.

sbouts avatar sbouts commented on May 18, 2024 1

The problem above also occurs for me. I have isolated the problem to the _save_user decorator not registering. This means the _save_user function stays None and this causes the NoneType error.

Any suggestion on how to make sure the _save_user decorator gets loaded?

EDIT:
@ciobancai
In order to fix this problem I had to import my User model into my _init_ file. This automagically sets the _save_user callback.

from flask-ldap3-login.

nickw444 avatar nickw444 commented on May 18, 2024

I have isolated the problem to the _save_user decorator not registering.

Looks like this is the exact problem - the stack trace above looks like a red-herring to me on second glance.

@ciobancai does the above solution solve your problem? I will assume so and close this issue, but if not please re-open.

from flask-ldap3-login.

nickw444 avatar nickw444 commented on May 18, 2024

Also, just a side note: after a long internal debate, I have made the difficult decision that I will no longer be actively maintaining this repo. I am now in the process of finding a new maintainer - if this is something that may interest you, you can find more details in the README

from flask-ldap3-login.

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.