mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Raise proper exception when given a bad DN attribute.
This commit is contained in:
parent
9ab599bcba
commit
bb5788fc7e
@ -809,7 +809,10 @@ last, after all sets and adds."""),
|
||||
value = None
|
||||
|
||||
if ldap.has_dn_syntax(attr):
|
||||
value = DN(value)
|
||||
try:
|
||||
value = DN(value)
|
||||
except ValueError:
|
||||
raise errors.InvalidSyntax(attr=attr)
|
||||
|
||||
if attr in newdict:
|
||||
if type(value) in (tuple,):
|
||||
|
Loading…
Reference in New Issue
Block a user