Univention Bugzilla – Bug 50747
Syntax emailAddressValidDomain does not check for valid domains
Last modified: 2020-05-20 17:18:49 CEST
During a UCS training I noticed that the syntax emailAddressValidDomain which is used for mailPrimaryAddress does not check specified mail addresses against the local mail domain objects. Therefore the user/admin is able to specify arbitrary mail addresses. I noticed this broken behaviour with UCS 4.4-3 and 4.4-0. In 4.3-3 ist seems to be ok, so I suspect a regression during the 4.3→4.4 step.
I cannot reproduce the bug you described (on UCS 4.4-3). I tried to modify a users mailPrimaryAddress to a non-existing domain and the output seems right: "The domain part of the primary mail address is not in list of configured mail domains: foo@bar." The responsible source code also seems fine to me. How did you produce this error? What domain did you use for the users mailPrimaryAddress?
2 additional occurences with 4.4-4, one of them a freshly installed pilot. one system is unsing OX-Appsuite, the second had OX installed previously management-console-module-udm.log (debug-level 4) 20.05.20 17:05:13.199 ADMIN ( INFO ) : ucr_overwrite_properties: found variable: directory/manager/web/modules/groups/group/properties/name/syntax 20.05.20 17:05:13.199 ADMIN ( INFO ) : ucr_overwrite_properties: found property 20.05.20 17:05:13.199 ADMIN ( INFO ) : ucr_overwrite_properties: set property attribute syntax to gid_ox 20.05.20 17:05:13.200 ADMIN ( ERROR ) : ucr_overwrite_properties: failed to set property attribute: 'string' object is not callable # ucr search --brief syntax directory/manager/web/modules/groups/group/properties/name/syntax: gid_ox directory/manager/web/modules/users/user/properties/homePostalAddress/syntax: postalAddress directory/manager/web/widget/.*/syntax: <empty> maybe unrelated: root@ucs01:~# ucr get directory/manager/web/modules/groups/group/properties/name/syntax gid_ox root@ucs01:~# ucr unset directory/manager/web/modules/groups/group/properties/name/syntax W: The config registry variable 'directory/manager/web/modules/groups/group/properties/name/syntax' does not exist