Bug 229825 - aci with bogus uid= dn created by ds_newinst
aci with bogus uid= dn created by ds_newinst
Status: CLOSED CURRENTRELEASE
Product: 389
Classification: Community
Component: Directory Server (Show other bugs)
1.0.4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Rich Megginson
Viktor Ashirov
:
Depends On:
Blocks: 152373 240316 FDS1.1.0
  Show dependency treegraph
 
Reported: 2007-02-23 12:44 EST by Rich Megginson
Modified: 2015-12-07 11:55 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-12-07 11:55:40 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
diffs (3.68 KB, patch)
2007-02-23 12:44 EST, Rich Megginson
no flags Details | Diff
cvs commit log (188 bytes, text/plain)
2007-02-23 13:41 EST, Rich Megginson
no flags Details

  None (edit)
Description Rich Megginson 2007-02-23 12:44:00 EST
If you run ds_newinst.pl with a bare minimum .inf file, you will see the
following aci created in cn=config:
aci: (targetattr="*")(version 3.0; acl "Configuration Administrator"; allow (a
 ll) userdn="ldap:///uid=,ou=Administrators, ou=TopologyManagement, o=Netscap
 eRoot";)
We should not create this aci, as we do not have a configuration DS if we are
creating a minimal fedora-ds-base.
Comment 1 Rich Megginson 2007-02-23 12:44:00 EST
Created attachment 148687 [details]
diffs
Comment 2 Noriko Hosoi 2007-02-23 13:39:05 EST
Looks good.
Comment 3 Rich Megginson 2007-02-23 13:41:10 EST
Created attachment 148697 [details]
cvs commit log

Reviewed by: nhosoi (Thanks!)
Files: see diff
Branch: HEAD
Fix Description: Unknown to me until just now, PL_strdup(NULL) will return "" -
the empty string.  The code in config_suitespot() expects that empty or unused
fields are NULL.  The solution is to create a create_instance_strdup() wrapper
around PL_strdup() and use that in cases where the argument may be NULL.  I
checked create_instance.c.  Every other place where PL_strdup is used, the
argument is checked for NULL first.  So these are the only places affected. 
Instance creation works fine after this change and does not create the
offending aci.
Platforms tested: RHEL4
Flag Day: no
Doc impact: no
Comment 4 Yi Zhang 2007-11-29 19:30:46 EST
ds_newinst.pl has been discard in the new 8.0 release. However, related code
still used. Bug verification test has been done. Please refer to bug 229824 for
details.

Note You need to log in before you can comment on or make changes to this bug.