Name: phpldapadmin Summary: Web-based tool for managing LDAP servers Version: 1.2.6 Release: 4%{?dist} Group: Applications/Internet License: GPLv2+ URL: http://phpldapadmin.sourceforge.net Source: http://dl.sourceforge.net/sourceforge/phpldapadmin/phpldapadmin-%{version}.tgz Patch0: phpldapadmin-1.2.6-Koozali-config-patches.patch #Patch1: phpldapadmin-1.2.6 #Patch2: phpldapadmin-1.2.6 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: webserver #Requires: php74 #Requires: php74-ldap AutoReqProv: no %description PhpLDAPadmin is a web-based LDAP client. It provides easy, anywhere-accessible, multi-language administration for your LDAP server. Its hierarchical tree-viewer and advanced search functionality make it intuitive to browse and administer your LDAP directory. Since it is a web application, this LDAP browser works on many platforms, making your LDAP server easily manageable from any location. PhpLDAPadmin is the perfect LDAP browser for the LDAP professional and novice alike. Its user base consists mostly of LDAP administration professionals. This version is a fork of the original from this github repo https://github.com/leenooks/phpLDAPadmin Edit %{_sysconfdir}/%{name}/config.php to change default (localhost) LDAP server location and other things. Edit %{_sysconfdir}/httpd/conf.d/%{name}.conf to allow access by remote web-clients. %prep %setup -q -n %{name}-%{version} cp config/config.php.example config/config.php %patch0 -p1 #%patch1 -p1 #%patch2 -p1 %build find . \( -name "*.orig" -o -name "*~" -o -name .gitignore \) -print0 | \ xargs -0 rm -f find . -type f -print0 | xargs -0 chmod -x %install rm -rf $RPM_BUILD_ROOT install -d -m755 $RPM_BUILD_ROOT%{_datadir}/%{name} cp -a * $RPM_BUILD_ROOT%{_datadir}/%{name} pushd $RPM_BUILD_ROOT%{_datadir}/%{name} rm -rf doc/ INSTALL LICENSE config/config.php.example rm -rf tools/ find locale -name "*.po" -print0 | xargs -0 rm -f popd install -d -m755 $RPM_BUILD_ROOT%{_sysconfdir}/%{name} mv $RPM_BUILD_ROOT%{_datadir}/%{name}/config/* \ $RPM_BUILD_ROOT%{_sysconfdir}/%{name} rmdir $RPM_BUILD_ROOT%{_datadir}/%{name}/config UPS=$(echo %{_datadir}/%{name} | sed -e 's,^/,,' -e 's,[^/]*,..,g') ln -s $UPS%{_sysconfdir}/%{name} \ $RPM_BUILD_ROOT%{_datadir}/%{name}/config cat <%{name}.conf # # %{summary} # Alias /%{name} %{_datadir}/%{name}/htdocs Alias /ldapadmin %{_datadir}/%{name}/htdocs # Apache 2.4 Require local # Apache 2.2 Order Deny,Allow Deny from all Allow from 127.0.0.1 Allow from ::1 EOF install -d $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d install -m644 %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d %clean rm -rf $RPM_BUILD_ROOT %post if [ $1 -eq 1 ]; then set @@@ `dd bs=128 count=1 /dev/null | md5sum` sed -i "/session\['blowfish'\] = null;/ { s/^[^\$]*\\\$/\$/ s/null;/'$2'; # Autogenerated for `uname -n`/ }" %{_sysconfdir}/%{name}/config.php fi %files %defattr(-,root,root,-) %config %dir %{_sysconfdir}/%{name} %attr(640,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/*.php %config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf %{_datadir}/%{name} %doc INSTALL.md LICENSE config/config.php.example %changelog * Mon Oct 04 2021 Brian Read 1.2.6-4.sme - Remove deps on php74 and add in AutoReqProv [SME: 11699 ] * Thu Sep 30 2021 John Crisp - 1.2.6-3.sme - Update php versions to php74 [SME: 11700] * Wed Sep 29 2021 John Crisp - 1.2.6-2.sme - Fix the bug number for consistency - Set requires php to 7.3 * Tue Sep 28 2021 John Crisp - 1.2.6-1.sme - Import for Koozali SME v10 [SME: 11700] * Thu Nov 15 2018 John Crisp - 1.2.3.11.sme - Imported as -10 to match current contrib - fix missing source.tar.gz * Sun Jul 16 2017 Dmitry Butskoy - 1.2.3-10 - Fix CVE-2017-11107 (#1471112) * Sat Feb 11 2017 Fedora Release Engineering - 1.2.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.2.3-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 1.2.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.2.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Nov 12 2013 Dmitry Butskoy - 1.2.3-5 - Fix compatibility patch for php >= 5.5 (#974928) * Sun Aug 04 2013 Fedora Release Engineering - 1.2.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jun 18 2013 Dmitry Butskoy - 1.2.3-3 - Add compatibility patch for php >= 5.5 * Thu Feb 14 2013 Fedora Release Engineering - 1.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Oct 31 2012 Dmitry Butskoy - 1.2.3-1 - update to 1.2.3 - fix apache config file (#871457) * Tue Sep 18 2012 Dmitry Butskoy - 1.2.2-3.gitbbedf1 - update to latest git source (CVE-2012-1114, CVE-2012-1115, #799873) * Sat Jul 21 2012 Fedora Release Engineering - 1.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Feb 2 2012 Dmitry Butskoy - 1.2.2-1 - update to 1.2.2 - fix CVE-2012-0834 (#786821, patch from upstream) * Sat Jan 14 2012 Fedora Release Engineering - 1.2.1.1-3.20111006git - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Oct 25 2011 Dmitry Butskoy - 1.2.1.1-2.20111006git - update to the latest git #cddf783 to fix security issues (XSS and code injection vulnerabilities, #748538) * Fri Jul 22 2011 Dmitry Butskoy - 1.2.1.1-1 - update to 1.2.1.1 * Wed Feb 09 2011 Fedora Release Engineering - 1.2.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Sep 23 2010 Dmitry Butskoy - 1.2.0.5-2 - add patches from Patrick Monnerat : * fix typo (close comment) in config file (#628067) * avoid php-5.3 deprecation errors (#628061) * fix add of parent class attributes (#628060) * Mon Mar 29 2010 Dmitry Butskoy - 1.2.0.5-1 - update to 1.2.0.5 * Fri Nov 20 2009 Dmitry Butskoy - 1.2.0.4-1 - update to 1.2.0.4 - allow local IPv6 address by default as well (#539272) * Wed Sep 16 2009 Dmitry Butskoy - 1.2.0.3-1 - Upgrade to 1.2.0.3 (#523477) * Sun Jul 26 2009 Fedora Release Engineering - 1.1.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Apr 9 2009 Dmitry Butskoy - 1.1.0.7-1 - update to 1.1.0.7 * Fri Sep 26 2008 Dmitry Butskoy - 1.1.0.5-2 - update config patch * Wed Feb 13 2008 Dmitry Butskoy - 1.1.0.5-1 - upgrade to 1.1.0.5 * Fri Aug 17 2007 Dmitry Butskoy - Change License tag to GPLv2+ (Note: most files do not specify any license information at all, which could lead just to "GPL+", but some lib/ files specify "GPLv2 or any later" explicitly, hence GPLv2+ wins). * Tue Sep 19 2006 Dmitry Butskoy - 1.0.1-1 - upgrade to 1.0.1 - drop namingcontexts patch, no more needed for php >= 5.0.6 * Fri Sep 1 2006 Dmitry Butskoy - 0.9.8.3-2 - rebuild for FC6 * Mon May 15 2006 Dmitry Butskoy - 0.9.8.3-1 - update to 0.9.8.3 * Tue Mar 14 2006 Dmitry Butskoy - 0.9.8.2-1 - update to 0.9.8.2 * Thu Mar 2 2006 Dmitry Butskoy - 0.9.8.1-1 - upgrade to 0.9.8.1 - remove unneeded tools dir *.po files in locale dir * Fri Nov 18 2005 Dmitry Butskoy - 0.9.7.2-2 - update upstream's tarball (was changed without version increment) - don't treat VERSION as doc file (#173513) * Tue Nov 15 2005 Dmitry Butskoy - 0.9.7.2-1 - update to 0.9.7.2 * Tue Nov 1 2005 Dmitry Butskoy - 0.9.7.1-1 - upgrade to 0.9.7.1 - adapt patches and spec to new upstream layout. - don't strip debug anymore -- all seems to work fast enough now. * Tue Sep 27 2005 Dmitry Butskoy - 0.9.7-2 - patch cleanups. - accepted for Fedora Extras devel (review by Aurelien Bompard ) * Mon Sep 26 2005 Dmitry Butskoy - 0.9.7-1 - upgrade to final 0.9.7 - strip debug stuff completely. It gives essential speedup of work. - initial install allow connects from localhost only (security reasons). * Tue Sep 20 2005 Dmitry Butskoy - 0.9.7-0.3.rc3 - upgrade to 0.9.7-rc3 - add post script to generate blowfish secret on initial installations. * Thu Sep 15 2005 Dmitry Butskoy - 0.9.7-0.2.rc2 - upgrade to 0.9.7-rc2, cvs snapshot no more needed. * Tue Sep 13 2005 Dmitry Butskoy - 0.9.7-0.1.20050912 - initial release. CVS snapshot is one week later than 0.9.7-rc1 release. - add namingcontexts patch and config patch