Compare commits

...
This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.

16 commits

Author SHA1 Message Date
Rich Megginson
fcc6e05c61 If htmladmin fails to connect to the server, the cgi could crash.
(cherry picked from commit 2076085457)
(cherry picked from commit 5d453d2dae)
2012-03-27 08:23:38 -06:00
Rich Megginson
213f2e1add htmladmin segfault - compilation warnings
Ticket #307 - htmladmin keeps segfaulting
Ticket #286 - compilation fixes for 'format-security'
2012-03-22 09:54:59 -06:00
Rich Megginson
5e943714e0 TLS not working with latest openldap - Review and address latest Coverity issues
Ticket #281 - TLS not working with latest openldap
Ticket #161 - Review and address latest Coverity issues
(cherry picked from commit 28a0c1c5a7)
(cherry picked from commit cedd5bf3d6)
2012-02-03 19:38:55 -07:00
Rich Megginson
5ce766f85e Bug 767823 - selinux: need to allow admin server to connect to ldap port
(cherry picked from commit f3dbe17140)
2012-01-25 08:50:17 -07:00
Rich Megginson
0fd93fe7cf Bug 740959 - 389-console put CA certificates into wrong database 2011-10-28 17:29:56 -06:00
Rich Megginson
7c57f8eb77 Bug 730079 - Update SELinux policy during upgrades
(cherry picked from commit a8b99a4fba)
2011-08-11 14:43:48 -06:00
Rich Megginson
f90d6431d0 Bug 724808 - startup CGIs write temp file to /
add man pages for ds_removal and ds_unregister
fixes for the makeUpgradeTar.sh script
(cherry picked from commit fd82026527)
2011-08-11 08:59:51 -06:00
Rich Megginson
1a45fa75ac Bug 476925 - Admin Server: Do not allow 8-bit passwords for the admin user
Bug 476925 - Admin Server: Do not allow 8-bit passwords for the admin user
2011-08-02 15:25:28 -06:00
Rich Megginson
a6f0279323 bump rel to rebuild with 389-adminutil-1.1.14 2011-07-05 14:09:45 -06:00
Rich Megginson
e3bb13b8be 389-admin-1.1.20 - many migration + tls/ssl fixes
389-admin-1.1.20 - many migration + tls/ssl fixes
Bug 719056 - migrate-ds-admin.pl needs to update SELinux policy
Bug 718285 - AdminServer should use "service" command instead of start/stop/restart scripts
Bug 718079 - Perl errors when running migrate-ds-admin.pl
Bug 713000 - Migration stops if old admin server cannot be stopped
added tests for the security cgi
fix typo in NSS_Shutdown warning message
better NSS error handling - reduce memory leaks
Bug 710372 - Not able to open the Manage Certificate from DS-console
2011-07-05 13:05:13 -06:00
Rich Megginson
4db85db041 bump rev to rebuild with 389-adminutil-1.1.14 2011-06-30 18:55:05 -06:00
Rich Megginson
1508a1a5b5 look for separate openldap ldif library
look for separate openldap ldif library
(cherry picked from commit 982560d4f8)
2011-06-28 09:39:27 -06:00
Rich Megginson
5fe2312f29 skip rebranding current brand - support for skins
skip rebranding current brand - support for skins
(cherry picked from commit 4687d68e49)
2011-06-21 15:49:09 -06:00
Rich Megginson
54dc00afb5 389-admin-1.1.17
389-admin-1.1.17
support "in-place" upgrade and rebranding from Red Hat to 389
many fixes for coverity issues
2011-06-02 09:07:43 -06:00
Rich Megginson
7a7ffcd976 wrong patch number 2011-04-28 08:44:21 -06:00
Rich Megginson
1a24529c11 Disable the use of systemd for the initscripts
For now, in f15, just disable the use of the systemd wrapper.
2011-04-27 18:58:44 -06:00
6 changed files with 93 additions and 42 deletions

13
.gitignore vendored
View file

@ -3,3 +3,16 @@
/389-admin-1.1.14.tar.bz2
/389-admin-1.1.15.tar.bz2
/389-admin-1.1.16.tar.bz2
/389-admin-1.1.17.tar.bz2
/389-admin-1.1.18.tar.bz2
/389-admin-1.1.19.tar.bz2
/389-admin-1.1.20.tar.bz2
/389-admin-1.1.21.tar.bz2
/389-admin-1.1.22.tar.bz2
/389-admin-1.1.23.tar.bz2
/389-admin-1.1.24.tar.bz2
/389-admin-1.1.25.tar.bz2
/389-admin-1.1.26.tar.bz2
/389-admin-1.1.27.tar.bz2
/389-admin-1.1.28.tar.bz2
/389-admin-1.1.29.tar.bz2

View file

@ -1,7 +1,7 @@
#!/bin/bash
DATE=`date +%Y%m%d`
VERSION=1.1.16
VERSION=1.1.29
PKGNAME=389-admin
TAG=${TAG:-$PKGNAME-$VERSION}
SRCNAME=${PKGNAME}-${VERSION}

View file

@ -1,7 +1,7 @@
#!/bin/bash
DATE=`date +%Y%m%d`
VERSION=1.1.15
VERSION=1.1.29
PKGNAME=389-admin
#SRCNAME=$PKGNAME-$VERSION-$DATE
SRCNAME=$PKGNAME-$VERSION

View file

@ -6,16 +6,12 @@
Summary: 389 Administration Server (admin)
Name: 389-admin
Version: 1.1.16
Version: 1.1.29
Release: %{?relprefix}1%{?prerel}%{?dist}
License: GPLv2 and ASL 2.0
URL: http://port389.org/
Group: System Environment/Daemons
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Provides: fedora-ds-admin = %{version}-%{release}
Obsoletes: fedora-ds-admin < 1.1.8-1
Obsoletes: %{name}-selinux
Conflicts: selinux-policy-base < 3.9.8
BuildRequires: nspr-devel
BuildRequires: nss-devel
@ -51,6 +47,7 @@ Requires(preun): /sbin/service
Source0: http://port389.org/sources/%{name}-%{version}%{?prerel}.tar.bz2
# 389-admin-git.sh should be used to generate the source tarball from git
Source1: %{name}-git.sh
Patch0: f15-disable-systemd.patch
%description
389 Administration Server is an HTTP agent that provides management features
@ -60,9 +57,10 @@ and CGI utilities used by the console.
%prep
%setup -q -n %{name}-%{version}%{?prerel}
%patch0 -p1
%build
%configure --disable-rpath --with-selinux --with-openldap
%configure --disable-rpath --with-selinux --with-openldap --enable-service
# Generate symbolic info for debuggers
export XCFLAGS=$RPM_OPT_FLAGS
@ -98,25 +96,6 @@ rm -rf $RPM_BUILD_ROOT
-- if these don't exist, the vars will be nil
%{pkgname}admin_adminserv = posix.stat('%{_sysconfdir}/%{pkgname}/admin-serv')
%{pkgname}admin_consoleconf = posix.stat('%{_sysconfdir}/%{pkgname}/admin-serv/console.conf')
-- save the run level configuration, if any
rc = os.execute('rpm --quiet -q fedora-ds-admin')
if rc == 0 then
%{pkgname}admin_exists = true
%{pkgname}admin_savelinks = {}
for dir in posix.files("%{_sysconfdir}/rc.d") do
if string.find(dir, "rc%d.d") then
-- print("looking in %{_sysconfdir}/rc.d/"..dir)
for link in posix.files("%{_sysconfdir}/rc.d/"..dir) do
if string.find(link, "[SK]%d%d%{pkgname}-admin") then
fullname = "%{_sysconfdir}/rc.d/"..dir.."/"..link
linked = posix.readlink(fullname)
-- print(fullname.." is linked to "..linked)
%{pkgname}_savelinks[fullname] = linked
end
end
end
end
end
%post -p <lua>
-- do the usual daemon post setup stuff
@ -141,20 +120,6 @@ fi
%postun
/sbin/ldconfig
%posttrans -p <lua>
-- if we saved the run level configuration in %pre, restore it now
-- we can get rid of this code once Fedora 11 becomes obsolete
if %{pkgname}admin_savelinks then
for fullpath,link in pairs(%{pkgname}admin_savelinks) do
posix.symlink(link,fullpath)
-- print("posttrans - restored run level "..fullpath.." to "..link)
end
end
if %{pkgname}admin_exists then
os.execute('/sbin/service %{pkgname}-admin start >/dev/null 2>&1')
end
%files
%defattr(-,root,root,-)
%doc LICENSE
@ -169,6 +134,65 @@ end
%{_mandir}/man8/*
%changelog
* Tue Mar 27 2012 Rich Megginson <rmeggins@redhat.com> - 1.1.29-1
- 4ec23c0 If htmladmin fails to connect to the server, the cgi could crash.
* Thu Mar 22 2012 Rich Megginson <rmeggins@redhat.com> - 1.1.28-1
- Ticket #307 - htmladmin keeps segfaulting
- Ticket #286 - compilation fixes for 'format-security'
* Fri Feb 3 2012 Rich Megginson <rmeggins@redhat.com> - 1.1.27-1
- Ticket #281 - TLS not working with latest openldap
- Ticket #161 - Review and address latest Coverity issues
* Wed Jan 25 2012 Rich Megginson <rmeggins@redhat.com> - 1.1.26-1
- Bug 767823 - selinux: need to allow admin server to connect to ldap port
* Fri Oct 28 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.25-1
- Bug 740959 - 389-console put CA certificates into wrong database
* Wed Sep 21 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.24-1
- Bug 695741 - Providing native systemd file
* Thu Aug 11 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.23-1
- Bug 730079 - Update SELinux policy during upgrades
* Thu Aug 11 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.22-1
- Bug 724808 - startup CGIs write temp file to /
- add man pages for ds_removal and ds_unregister
- fixes for the makeUpgradeTar.sh script
* Tue Aug 2 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.21-1
- Bug 476925 - Admin Server: Do not allow 8-bit passwords for the admin user
* Tue Jul 5 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.20-2
- bump rel to rebuild with 389-adminutil-1.1.14
* Tue Jul 5 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.20-1
- Bug 719056 - migrate-ds-admin.pl needs to update SELinux policy
- Bug 718285 - AdminServer should use "service" command instead of start/stop/restart scripts
- Bug 718079 - Perl errors when running migrate-ds-admin.pl
- Bug 713000 - Migration stops if old admin server cannot be stopped
- added tests for the security cgi
- fix typo in NSS_Shutdown warning message
- better NSS error handling - reduce memory leaks
- Bug 710372 - Not able to open the Manage Certificate from DS-console
* Thu Jun 30 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.19-2
- bump rev to rebuild with 389-adminutil-1.1.14
* Tue Jun 28 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.19-1
- look for separate openldap ldif library
* Tue Jun 21 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.18-1
- skip rebranding current brand
- support for skins
* Fri May 13 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.17-1
- 1.1.17
- support "in-place" upgrade and rebranding from Red Hat to 389
- many fixes for coverity issues
* Tue Mar 29 2011 Rich Megginson <rmeggins@redhat.com> - 1.1.16-1
- 389-admin-1.1.16
- Bug 476925 - Admin Server: Do not allow 8-bit passwords for the admin user

14
f15-disable-systemd.patch Normal file
View file

@ -0,0 +1,14 @@
diff --git a/wrappers/initscript.in b/wrappers/initscript.in
index 82dd20e..ec3e5e1 100644
--- a/wrappers/initscript.in
+++ b/wrappers/initscript.in
@@ -8,6 +8,9 @@
# piddir: @localstatedir@/run/@PACKAGE_BASE_NAME@
#
+# Avoid using systemd for now
+SYSTEMCTL_SKIP_REDIRECT=1 ; export SYSTEMCTL_SKIP_REDIRECT
+
# Source function library.
if [ -f /etc/rc.d/init.d/functions ] ; then
. /etc/rc.d/init.d/functions

View file

@ -1 +1 @@
6122af6b9d21829ab939ab286676aedf 389-admin-1.1.16.tar.bz2
4bda83e9f5644e0bd25fdf7b6ce9e5ee 389-admin-1.1.29.tar.bz2