diff --git a/users_ldap_populate/model/users_ldap.py b/users_ldap_populate/model/users_ldap.py index 1381bf418..7d02166a1 100644 --- a/users_ldap_populate/model/users_ldap.py +++ b/users_ldap_populate/model/users_ldap.py @@ -50,7 +50,7 @@ class CompanyLDAP(orm.Model): if not conf['create_user']: continue attribute_match = re.search( - '([a-zA-Z_]+)=\%s', conf['ldap_filter']) + r'([a-zA-Z_]+)=\%s', conf['ldap_filter']) if attribute_match: login_attr = attribute_match.group(1) else: