Summary: Admin Server templates: DistinguishName validation fails
https://bugzilla.redhat.com/show_bug.cgi?id=560827
Description of problem:
Some template file contains double quotes in the DN string, which
are not escaped.
Sample broken entry in 01nsroot.ldif.tmpl
dn: ou="uid=%as_uid%, ou=Administrators, ou=TopologyManagement,
o=NetscapeRoot",ou=UserPreferences, ou=%domain%, o=NetscapeRoot
objectClass: top
objectClass: organizationalUnit
aci: (targetattr=*)(version 3.0; acl "UserDNControl"; allow (all)
userdnattr="creatorsname";)
ou: uid=%as_uid%, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot
Related bug:
https://bugzilla.redhat.com/show_bug.cgi?id=555577
555577 - Syntax validation fails for "ou=NetscapeRoot" tree
Files:
admserv/schema/ldif/00nsroot_backend.ldif.tmpl
admserv/schema/ldif/01nsroot.ldif.tmpl
admserv/schema/ldif/10dsdata.ldif.tmpl
admserv/schema/ldif/10rm_dsdata.ldif.tmpl
admserv/schema/ldif/20asdata.ldif.tmpl
Fix Description: Escaping double quotes '"' appeared in the DN string.
Tests: setup-ds-admin.pl successfully installs the Configuration Directory
Server. "o=netscaperoot" and its subtree is able to expand in the Console.
[Proposed Patch]
--> (
https://bugzilla.redhat.com/attachment.cgi?id=388163)
git patch file