Hi all,
I installed PostgreSQL-13, Python-3.8, and Funkwhale 1.2.1 on a NethServer-7.9.2009 fully updated.
In /srv/funkwhale/config/.env
:
LDAP_ENABLED=True
LDAP_SERVER_URI=ldaps://funkwhale.toto.org:636
LDAP_BIND_DN="cn=ldapservice,dc=directory,dc=nh"
LDAP_BIND_PASSWORD="1234567890ABCEF1"
LDAP_SEARCH_FILTER=(uid={0})
LDAP_START_TLS=False
LDAP_ROOT_DN="dc=directory,dc=nh"
I read somewhere in Funkwhale web site that you cannot use both ldaps
and LDAP_START_TLS=True
.
The command ldapsearch always works:
# ldapsearch -x -H ldaps://funkwhale.toto.org -D cn=ldapservice,dc=directory,dc=nh -w "1234567890ABCEF1" -b dc=directory,dc=nh | grep "titi"
# titi, People, directory.nh
dn: uid=titi,ou=People,dc=directory,dc=nh
uid: titi
homeDirectory: /var/lib/nethserver/home/titi
sn: titi
mail: titi@funkwhale.toto.org
If I create a new user, he can login only once. He can insert albums, songs, etc…
His second login gives:
We cannot log you in
A server error occured
In messages log:
django.request WARNING Bad Request: /api/v1/users/login
According to: https://docs.funkwhale.audio/admin/ldap.html
LDAP_SEARCH_FILTER: The LDAP user filter, using {0} as the username placeholder, e.g. (|(cn={0})(mail={0})); uses standard LDAP search syntax. Default: (uid={0}).
If I use: LDAP_SEARCH_FILTER=(|(cn={0})(mail={0}))
, it gives the error:
We cannot log you in
Please double-check that your username and password combination is correct and make sure you verified your e-mail address.
Funkwhale admin can always login without any problem.
Any suggestion ?
Michel-André