Skip to content

Commit 97e5463

Browse files
committed
fix: VOMS2CSSynchronizer: strip leading and trailing whitespaces from DN entries
1 parent b49b190 commit 97e5463

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DIRAC/ConfigurationSystem/Client/VOMS2CSSynchronizer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def _getUserNameFromDN(dn, vo):
7070
key, value = "CN", entry
7171
else:
7272
key, value = entry.split("=")
73+
key = key.strip()
74+
value = value.strip()
7375
if key.upper() == "CN":
7476
ind = value.find("(")
7577
# Strip of possible words in parenthesis in the name

0 commit comments

Comments
 (0)