Skip to content

Client mode: LDAP user_id bug fix #148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 15, 2023
Merged

Client mode: LDAP user_id bug fix #148

merged 4 commits into from
Oct 15, 2023

Conversation

bigcat88
Copy link
Member

By default, the login passed to the Nextcloud class was taken as the user name.

If a backend other than the Database is used, these two values do not match each other, that is, the login can be:
"milena.kvitkova@domain.com", and the user ID for making API requests will be: "milena"

Note: This bug does not apply to the NextcloudApp class, because there the AppAPI transmits the user ID, and not the user login - this only affects use as a client.

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
@codecov
Copy link

codecov bot commented Oct 15, 2023

Codecov Report

Merging #148 (1e2c588) into main (e411fca) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #148   +/-   ##
=======================================
  Coverage   99.77%   99.77%           
=======================================
  Files          34       34           
  Lines        3091     3101   +10     
=======================================
+ Hits         3084     3094   +10     
  Misses          7        7           
Files Coverage Δ
nc_py_api/_session.py 98.97% <100.00%> (+0.03%) ⬆️
nc_py_api/nextcloud.py 100.00% <ø> (ø)

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
@bigcat88 bigcat88 merged commit 0d5b0bc into main Oct 15, 2023
@bigcat88 bigcat88 deleted the ldap-fix branch October 15, 2023 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant