haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

solved: user-mgr.c(281): ldap_bind failed for user #1907

Closed XamD closed 7 years ago

XamD commented 7 years ago

User with russian (Cyrillic) symbols in CN attribute can not login to seafile web page. In ccnet.log: [06/02/17 11:09:14] user-mgr.c(281): ldap_bind failed for user CN=??? ???,OU=Test,DC=local: Invalid Credentials. [06/02/17 11:09:14] user-mgr.c(419): Password check for adm-test@mail.ru failed.

User with English names login without problem. OS: Win 2012 R2

ccnet.conf: [General] USER_NAME = seafile ID = 123 NAME = seafile SERVICE_URL = http://8.8.8.8:8000 [Network] PORT = 10001 [Client] PORT = 13418 [LDAP] HOST = local-dc USE_SSL = false BASE = OU=Test,DC=local USER_DN = seafile@local PASSWORD = x1y2z3 LOGIN_ATTR = mail [LDAP_SYNC] ENABLE_GROUP_SYNC = true SYNC_INTERVAL = 60

seafile.conf: [database] type = sqlite [network] port = 12001 [fileserver] port = 8082 [seahub] port = 8000 fastcgi = false

killing commented 7 years ago

I think this could be an character encoding issue. What encoding are your AD in? Seafile assumes everything is in UTF-8.

XamD commented 7 years ago

Sorry for long reply. Of course I'm think too I'm change system locale for non-unicode programs and all work fine :)

[image: Встроенное изображение 1]

2017-06-02 16:36 GMT+03:00 Jiaqiang Xu notifications@github.com:

I think this could be an character encoding issue. What encoding are your AD in? Seafile assumes everything is in UTF-8.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/haiwen/seafile/issues/1907#issuecomment-305789152, or mute the thread https://github.com/notifications/unsubscribe-auth/ABb9LWIv21gCePfh_Aqb-gAq1lUEG6dtks5sAA_dgaJpZM4Nt-cQ .

-- Best regards, Shuvaev Sergey Tel.: +7(966)194-45-34 Tel.: +7(916)917-93-81 Skype: Shuvaev_sergey ICQ: 334-771-262