From a9ce8d838e74644c5e02a4fd1512f78e2e9cf73d Mon Sep 17 00:00:00 2001
From: Morre <morre@cccv.de>
Date: Fri, 30 Oct 2020 16:57:12 +0100
Subject: [PATCH] Allow dashes in usernames and mail adresses

---
 uffd/ldap/ldap.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/uffd/ldap/ldap.py b/uffd/ldap/ldap.py
index 14977101..7e8f53d6 100644
--- a/uffd/ldap/ldap.py
+++ b/uffd/ldap/ldap.py
@@ -78,7 +78,7 @@ def loginname_is_safe(value):
 	if len(value) > 32 or len(value) < 1:
 		return False
 	for char in value:
-		if not char in string.ascii_lowercase + string.digits + '_':
+		if not char in string.ascii_lowercase + string.digits + '_-':
 			return False
 	return True
 
-- 
GitLab