Skip to content
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

Can't Import Users from Microsoft Active Directory with special characters in CN-Path #3231

Open
phillipunzen opened this issue Nov 21, 2024 · 1 comment

Comments

@phillipunzen
Copy link

Describe the bug/problem

I already had a "ticket" on the subject, but apparently the messages that the ticket has been closed are no longer coming through.

I have found that I can import users from the Active Directory without special characters in the CN path. Unfortunately, my users have a comma in the CN path. This is due to the pattern: last name, first name.

Could the code perhaps be adapted so that an import works here via LDAP?

As a test, I created a user that contains a space between the first name and last name, and it worked here. Unfortunately, due to the number of users, I cannot create all users again.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Settings
  2. Feature-Configuration
  3. Set LDAP-Settings
  4. Import LDAP-Users
  5. See Errors

Logfile
WARN: {cps.admin:1676} LDAP User: CN=Lastname, Firstname,OU=LDAP-Benutzer,OU=Benutzer,DC=phillipde,DC=local Not Found

Expected behavior

I want to sync my LDAP-Users from the Microsoft Active Directory

Environment (please complete the following information):

  • OS: Unraid (Latest Version)
  • Python: 3.10.12
  • Calibre-Web version: 0.6.24
  • Docker container: LinuxServer
  • Browser: Google Chrome
@OzzieIsaacs
Copy link
Collaborator

I fixed the usecase that the "," is escaped via a backslash (this was how it looked in my testing infrastructure). I'll check what to do if this isn't the case

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

No branches or pull requests

2 participants