Code Monkey home page Code Monkey logo

Comments (5)

freeplant avatar freeplant commented on July 28, 2024 1

We will include it in the next release in about two weeks.

from seahub.

HenriWahl avatar HenriWahl commented on July 28, 2024

I can reproduce it:

Works:

curl -X POST -F '[email protected]' -F 'password=secret' https://seafile.domain.com/api2/auth-token/
{"token":"8e29471fdd10bad0f998b8138a74a80f70e44e8b"}

Doesn't:

curl -X POST -F '[email protected]' -F 'password=secrettoo' https://seafile2.domain.com/api2/auth-token/
{"non_field_errors":["Unable to login with provided credentials."]}

from seahub.

HenriWahl avatar HenriWahl commented on July 28, 2024

The error message Unable to login with provided credentials. seems to be created in https://github.com/haiwen/seahub/blob/master/seahub/api2/serializers.py#L88.
Some lines ago in https://github.com/haiwen/seahub/blob/master/seahub/api2/serializers.py#L82 the ccnet_api.get_primary_id(username) is called, apparently to get the primary ID.

Isn't a big change in Seafile 11 the use of Python instead of C code for LDAP access? Might the problem derive from here? At least it matches with the observation, that only LDAP accounts have this issue - even if login via web interface works.

from seahub.

freeplant avatar freeplant commented on July 28, 2024

Thanks for reporting the issue. We can reproduce the problem. It should be fixed soon.

from seahub.

HenriWahl avatar HenriWahl commented on July 28, 2024

Looks like d4f93eb is a fix? This was was fast! What do you think when it will be included in a released version?

Edit: I tested the fix and it works: 👍

from seahub.

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.