[Fedora-directory-devel] Please review: [Bug 230673] LDAPI: referral mode needs LDAPI socket?
Noriko Hosoi
nhosoi at redhat.com
Fri Mar 2 21:56:06 UTC 2007
Summary: LDAPI: referral mode needs LDAPI socket?
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=230673
This changes make LDAPI turned "off" if ldapifilepath is not set in the
install inf file.
Sorry, I should have done the discussion on bugzilla from the
beginning. It's going to be a repeat, but for the record, if you could
review the changes and comment on the bug, I'd appreciate it.
--noriko
nhosoi at redhat.com changed:
What |Removed |Added
----------------------------------------------------------------------------
devel_whiteboard| |review.comment#3?
Record of the email discussion:
------- Additional Comments From nhosoi at redhat.com 2007-03-02 16:38 EST
-------
(In reply to comment #0)
> > Description of problem:
> > [error #2]
> > [...]
> > Also, to work around this problem, is it okay to add this code to
> create the
> > directory to put the ldapi unix socket if it does not exist?
Richard Megginson wrote:
I don't think we should create the directory if it does not exist. That
doesn't seem right to me. I think we should just warn.
Pete Rowley wrote:
> > You know, given our server installs with newinst.pl in regular cases
> and all this has
> > default config set up for directories we already write to, perhaps
> the right thing to do
> > is to have default off for ldapi. That would have minimum impact on
> tests that don't
> > care about it (and are set up other ways) and wouldn't effect server
> installs through
> > regular means.
Richard Megginson wrote:
Then ds_newinst could set it to "on" if the user specified an
ldapifilepath. I think that would appease Andrew as well.
Based upon the suggestions from Pete and Rich, if setting
"ldapifilepath=/path/to/ldapifile/slapd-ID.socket" in the install inf
file is used as a trigger to set ldapi to "on". Otherwise, set to "off".
The function ds_gen_confs in create_instance.c switches between on and
off depending upon the existence of ldapifilepath value. Also, the ldapi
default setting in libglobs.c is changed to "off".
------- Additional Comments From nhosoi at redhat.com 2007-03-02 16:43 EST -------
Created an attachment (id=149157)
--> (https://bugzilla.redhat.com/bugzilla/attachment.cgi?id=149157&action=view)
cvs diffs (admin/src/create_instance.c, servers/slapd/libglobs.c)
Changes:
create_instance.c: if ldapifilepath is not passed, LDAPI is disabled in the
newly created instance.
libglobs.c: LDAPI is disabled in the initial configuration parameter setting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-devel/attachments/20070302/adb99b98/attachment.bin>
More information about the Fedora-directory-devel
mailing list