When SELinux is disabled and attempting to update my replica's registration, "setup-ds-admin.pl -u" fails with the following message in the terminal:
Error: command 'getsebool httpd_can_connect_ldap' failed - output [getsebool: SELinux is disabled] error []Exiting . . .
Enabling SELinux allows the script to complete successfully.
fix for bug 377 - Unchecked use of SELinux command 0001-fix-for-bug-377-Unchecked-use-of-SELinux-command.patch
I have attached a patch to solve this issue. It wraps the calls to getsebool/setsebool in a test of selinuxenabled.
set default ticket origin to Community
Added initial screened field value.
Workaround: mkdir ~/bin edit ~/bin/getsebool {{{
echo on exit 0 }}} edit ~/bin/setsebool {{{
exit 0 }}} Then, force the use of those commands in your PATH: {{{ chmod +x ~/bin/*sebool PATH=~/bin:$PATH setup-ds-admin.pl -u }}}
To ssh://git.fedorahosted.org/git/389/admin.git 7c7b49a..6b67232 master -> master commit 6b672320ac31bd111f09f5d1122eae3d14bbd0ca Author: Wes Hardin wes.hardin@maxim-ic.com Date: Mon May 21 10:50:22 2012 -0500
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1173265
Metadata Update from @nhosoi: - Issue assigned to rmeggins - Issue set to the milestone: 389-admin,console 1.1.36
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/377
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: Fixed)
Login to comment on this ticket.