Ldapsync don't sync!

Hello,

Since we have upgraded to Seafile PRo 7.1.4 we have somme troubles with ldapsync.
role are not updated or created. it seems that the custom_settings.py does not operate.

[WARNING] seahub.role_permissions.utils:22 get_enabled_role_permissions_by_role personnel is not a valid role, use default role

custom_settings.py function
ROLE_NAME_ATTR is extracted from our ldap.

#!/usr/bin/env python3
#coding=utf-8
import importlib
import sys
importlib.reload(sys)
#setdefaultencoding(‘utf8’)
def ldap_role_mapping(role):
if ‘member’ in role:
return ‘personnel’
if ‘affiliate’ in role:
return ‘personnel’
if ‘faculty’ in role:
return ‘personnel’
if ‘student’ in role:
return ‘etudiant’
if ‘guest’ in role:
return ‘invite’

Thanks to any help

Hamid Aichoune