sssd: initial addition for active directory management

SSSD is needed for active directory sign in/management.

Change-Id: Iaa86f6b69686183b4eb5426fa389b156b33dd8e3
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/19580
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Shreenidhi Shedi <sshedi@vmware.com>
This commit is contained in:
Brennan Lamoreaux 2023-02-14 17:10:34 +00:00 committed by Shreenidhi Shedi
parent a39a2a1292
commit 66fe2f17dd
13 changed files with 2212 additions and 222 deletions

View File

@ -1,7 +1,7 @@
Summary: Domain Name System software
Name: bindutils
Version: 9.19.7
Release: 1%{?dist}
Release: 2%{?dist}
License: ISC
URL: http://www.isc.org/downloads/bind
Group: Development/Tools
@ -11,6 +11,8 @@ Distribution: Photon
Source0: ftp://ftp.isc.org/isc/bind9/%{version}/bind-%{version}.tar.xz
%define sha512 bind=c4872daf71f4c0c108a2f0a68bf0b7ee12b6490d1ae7955419847c255bc5fcd092f935fa6ea68ae53db0510e7e9af13b6ab05cb0ca0058cb13339ccbda4ede43
Requires: krb5
Requires: e2fsprogs-libs
Requires: openssl
Requires: %{name}-libs = %{version}-%{release}
Requires(pre): /usr/sbin/useradd /usr/sbin/groupadd
@ -21,6 +23,8 @@ BuildRequires: libuv-devel
BuildRequires: nghttp2-devel
BuildRequires: libcap-devel
BuildRequires: systemd-rpm-macros
BuildRequires: krb5-devel
BuildRequires: e2fsprogs-devel
%description
BIND is open source software that implements the Domain Name System (DNS) protocols
@ -132,6 +136,8 @@ fi
%{_mandir}/man8/*
%changelog
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 9.19.7-2
- Add dependencies for realm support in nsupdate for SSSD.
* Tue Dec 13 2022 Gerrit Photon <photon-checkins@vmware.com> 9.19.7-1
- Automatic Version Bump
* Thu May 26 2022 Gerrit Photon <photon-checkins@vmware.com> 9.19.4-1

View File

@ -0,0 +1,276 @@
Name: ding-libs
Version: 0.6.2
Release: 1%{?dist}
Summary: "Ding is not GLib" assorted utility libraries
Vendor: VMware, Inc.
Distribution: Photon
Group: Development/Libraries
License: LGPLv3+
URL: https://github.com/SSSD/ding-libs
Source0: https://github.com/SSSD/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
%define sha512 %{name}=566172e0addb0ee6e0ebd12874d3b72f2fa6bcb1ecc628c0c529984193290fae554efc40f52d2cec675bffab32a36183e47ec629db25e83ed2995f1049c64703
# ding-libs is a meta-package that will pull in all of its own
# sub-packages
# Cannot set different version numbers for subpackages, otherwise build process fails
Requires: libpath-utils = %{version}-%{release}
Requires: libdhash = %{version}-%{release}
Requires: libcollection = %{version}-%{release}
Requires: libref-array = %{version}-%{release}
Requires: libini-config = %{version}-%{release}
BuildRequires: build-essential
BuildRequires: m4
BuildRequires: pkg-config
BuildRequires: check
BuildRequires: gettext
BuildRequires: readline-devel
%description
A meta-package that pulls in libcollection, libdhash, libini-config,
librefarray and libpath-utils.
%package devel
Summary: Development packages for ding-libs
Group: Development/Libraries
License: LGPLv3+
Requires: %{name} = %{version}-%{release}
Requires: libpath-utils-devel = %{version}-%{release}
Requires: libdhash-devel = %{version}-%{release}
Requires: libcollection-devel = %{version}-%{release}
Requires: libref-array-devel = %{version}-%{release}
Requires: libbasicobjects-devel = %{version}-%{release}
Requires: libini-config-devel = %{version}-%{release}
%description devel
Header files for ding-libs.
%package -n libpath-utils
Summary: Filesystem Path Utilities
Group: Development/Libraries
License: LGPLv3+
%description -n libpath-utils
Utility functions to manipulate filesystem pathnames
%package -n libpath-utils-devel
Summary: Development files for libpath-utils
Group: Development/Libraries
Requires: libpath-utils = %{version}-%{release}
License: LGPLv3+
%description -n libpath-utils-devel
Utility functions to manipulate filesystem pathnames
%package -n libdhash
Group: Development/Libraries
Summary: Dynamic hash table
License: LGPLv3+
%description -n libdhash
A hash table which will dynamically resize to achieve optimal storage & access
time properties
%package -n libdhash-devel
Summary: Development files for libdhash
Group: Development/Libraries
Requires: libdhash = %{version}-%{release}
License: LGPLv3+
%description -n libdhash-devel
A hash table which will dynamically resize to achieve optimal storage & access
time properties
%package -n libcollection
Summary: Collection data-type for C
Group: Development/Libraries
License: LGPLv3+
%description -n libcollection
A data-type to collect data in a hierarchical structure for easy iteration
and serialization
%package -n libcollection-devel
Summary: Development files for libcollection
Group: Development/Libraries
License: LGPLv3+
Requires: libcollection = %{version}-%{release}
%description -n libcollection-devel
Header/development files for libcollection.
%package -n libref-array
Summary: A refcounted array for C
Group: Development/Libraries
License: LGPLv3+
%description -n libref-array
A dynamically-growing, reference-counted array
%package -n libref-array-devel
Summary: Development files for libref-array
Group: Development/Libraries
Requires: libref-array = %{version}-%{release}
License: LGPLv3+
%description -n libref-array-devel
Header/development files for libref-array
%package -n libbasicobjects
Summary: Basic object types for C
Group: Development/Libraries
License: GPLv3+
%description -n libbasicobjects
Basic object types
%package -n libbasicobjects-devel
Summary: Development files for libbasicobjects
Group: Development/Libraries
License: GPLv3+
Requires: libbasicobjects = %{version}-%{release}
%description -n libbasicobjects-devel
Headers/development files for libbasicobjects
%package -n libini-config
Summary: INI file parser for C
Group: Development/Libraries
License: LGPLv3+
Requires: libcollection = %{version}-%{release}
Requires: libref-array = %{version}-%{release}
Requires: libbasicobjects = %{version}-%{release}
Requires: libpath-utils = %{version}-%{release}
%description -n libini-config
Library to process config files in INI format into a libcollection data
structure
%package -n libini-config-devel
Summary: Development files for libini-config
Group: Development/Libraries
License: LGPLv3+
Requires: libini-config = %{version}-%{release}
Requires: libcollection-devel = %{version}-%{release}
Requires: libref-array-devel = %{version}-%{release}
Requires: libbasicobjects-devel = %{version}-%{release}
%description -n libini-config-devel
Header/development files for libini-config.
%prep
%autosetup
%build
autoreconf -ivf
%configure --disable-static
%make_build all docs
%install
%make_install %{?_smp_mflags}
# Remove document install script. RPM is handling this
rm -f */doc/html/installdox
# Remove docs
rm -rf %{buildroot}%{_datadir}/doc/%{name}/*
%if 0%{?with_check}
%check
%make_build check
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%files devel
%defattr(-,root,root,-)
%files -n libpath-utils
%defattr(-,root,root,-)
%{_libdir}/libpath_utils.so.1
%{_libdir}/libpath_utils.so.1.0.1
%files -n libpath-utils-devel
%defattr(-,root,root,-)
%{_includedir}/path_utils.h
%{_libdir}/libpath_utils.so
%{_libdir}/pkgconfig/path_utils.pc
%doc path_utils/README.path_utils
%files -n libdhash
%defattr(-,root,root,-)
%{_libdir}/libdhash.so.1
%{_libdir}/libdhash.so.1.1.0
%files -n libdhash-devel
%defattr(-,root,root,-)
%{_includedir}/dhash.h
%{_libdir}/libdhash.so
%{_libdir}/pkgconfig/dhash.pc
%doc dhash/README.dhash
%doc dhash/examples/*.c
%files -n libcollection
%defattr(-,root,root,-)
%{_libdir}/libcollection.so.4
%{_libdir}/libcollection.so.4.1.1
%files -n libcollection-devel
%defattr(-,root,root,-)
%{_includedir}/collection.h
%{_includedir}/collection_tools.h
%{_includedir}/collection_queue.h
%{_includedir}/collection_stack.h
%{_libdir}/libcollection.so
%{_libdir}/pkgconfig/collection.pc
%files -n libref-array
%defattr(-,root,root,-)
%{_libdir}/libref_array.so.1
%{_libdir}/libref_array.so.1.2.1
%files -n libref-array-devel
%defattr(-,root,root,-)
%{_includedir}/ref_array.h
%{_libdir}/libref_array.so
%{_libdir}/pkgconfig/ref_array.pc
%doc refarray/README.ref_array
%files -n libbasicobjects
%defattr(-,root,root,-)
%{_libdir}/libbasicobjects.so.0
%{_libdir}/libbasicobjects.so.0.1.0
%files -n libbasicobjects-devel
%defattr(-,root,root,-)
%{_includedir}/simplebuffer.h
%{_libdir}/libbasicobjects.so
%{_libdir}/pkgconfig/basicobjects.pc
%files -n libini-config
%defattr(-,root,root,-)
%{_libdir}/libini_config.so.5
%{_libdir}/libini_config.so.5.2.1
%files -n libini-config-devel
%defattr(-,root,root,-)
%{_includedir}/ini_config.h
%{_includedir}/ini_configobj.h
%{_includedir}/ini_valueobj.h
%{_includedir}/ini_comment.h
%{_includedir}/ini_configmod.h
%{_libdir}/libini_config.so
%{_libdir}/pkgconfig/ini_config.pc
%changelog
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 0.6.2-1
- Initial addition to Photon. Needed for addition of SSSD.
- Modified from provided spec file in GitHub repository.

156
SPECS/libldb/libldb.spec Normal file
View File

@ -0,0 +1,156 @@
%global talloc_version 2.4.0
%global tdb_version 1.4.8
%global tevent_version 0.14.1
Name: libldb
Version: 2.6.1
Release: 1%{?dist}
Summary: A schema-less, ldap like, API and database
License: LGPLv3+
Distribution: Photon
Vendor: VMware, Inc.
Group: Development/Libraries
URL: http://ldb.samba.org/
Source0: https://www.samba.org/ftp/ldb/ldb-%{version}.tar.gz
%define sha512 ldb=7b920c5ec1252446584caeedf9ec18aeb5c1b689c2ecc8ae65c0d5b64bf0bca0cbaa887c07fca90b36b16904e3a08534fc513fec6bac288e80f94d2980c36211
BuildRequires: gcc
BuildRequires: libtalloc-devel >= %{talloc_version}
BuildRequires: libtdb-devel >= %{tdb_version}
BuildRequires: libtevent-devel >= %{tevent_version}
BuildRequires: popt-devel
BuildRequires: libxslt
BuildRequires: docbook-xsl
BuildRequires: openldap
BuildRequires: make
BuildRequires: gnupg
BuildRequires: which
BuildRequires: python3-devel
BuildRequires: python3-tdb
BuildRequires: python3-talloc-devel
BuildRequires: python3-tevent
Requires: libtalloc >= %{talloc_version}
Requires: libtdb >= %{tdb_version}
Requires: libtevent >= %{tevent_version}
Provides: bundled(libreplace)
%description
An extensible library that implements an LDAP like API to access remote LDAP
servers, or use local tdb databases.
%package -n ldb-tools
Summary: Tools to manage LDB files
Requires: libldb%{?_isa} = %{version}-%{release}
%description -n ldb-tools
Tools to manage LDB files
%package devel
Summary: Developer tools for the LDB library
Requires: libldb = %{version}-%{release}
Requires: libtdb-devel >= %{tdb_version}
Requires: libtalloc-devel >= %{talloc_version}
Requires: libtevent-devel >= %{tevent_version}
%description devel
Header files needed to develop programs that link against the LDB library.
%package -n python3-ldb
Summary: Python bindings for the LDB library
Requires: libldb = %{version}-%{release}
Requires: python3-tdb >= %{tdb_version}
Provides: python3-ldb
%description -n python3-ldb
Python bindings for the LDB library
%package -n python3-ldb-devel
Summary: Development files for the Python bindings for the LDB library
Requires: python3-ldb = %{version}-%{release}
Provides: python3-ldb-devel
%description -n python3-ldb-devel
Development files for the Python bindings for the LDB library
%prep
%autosetup -n ldb-%{version} -p1
%build
%configure --disable-rpath \
--disable-rpath-install \
--builtin-libraries=replace \
--with-modulesdir=%{_libdir}/ldb/modules \
--with-privatelibdir=%{_libdir}/ldb \
--without-ldb-lmdb \
--enable-debug
%make_build
%install
%make_install
%check
%if 0%{?with_check}
%make_build check
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%dir %{_libdir}/ldb
%{_libdir}/libldb.so.*
%{_libdir}/ldb/libldb-key-value.so
%{_libdir}/ldb/libldb-tdb-err-map.so
%{_libdir}/ldb/libldb-tdb-int.so
%{_libdir}/ldb/libcmocka-ldb.so
%dir %{_libdir}/ldb/modules
%dir %{_libdir}/ldb/modules/ldb
%{_libdir}/ldb/modules/ldb/*.so
%files -n ldb-tools
%defattr(-,root,root)
%{_bindir}/ldbadd
%{_bindir}/ldbdel
%{_bindir}/ldbedit
%{_bindir}/ldbmodify
%{_bindir}/ldbrename
%{_bindir}/ldbsearch
%{_libdir}/ldb/libldb-cmdline.so
%{_mandir}/man1/ldbadd.1.*
%{_mandir}/man1/ldbdel.1.*
%{_mandir}/man1/ldbedit.1.*
%{_mandir}/man1/ldbmodify.1.*
%{_mandir}/man1/ldbrename.1.*
%{_mandir}/man1/ldbsearch.1.*
%files devel
%defattr(-,root,root)
%{_includedir}/ldb_module.h
%{_includedir}/ldb_handlers.h
%{_includedir}/ldb_errors.h
%{_includedir}/ldb_version.h
%{_includedir}/ldb.h
%{_libdir}/libldb.so
%{_libdir}/pkgconfig/ldb.pc
%{_mandir}/man3/ldb*.gz
%files -n python3-ldb
%defattr(-,root,root)
%{python3_sitearch}/ldb.cpython-*.so
%{_libdir}/libpyldb-util.cpython-*.so.2*
%{python3_sitearch}/_ldb_text.py
%files -n python3-ldb-devel
%defattr(-,root,root)
%{_includedir}/pyldb.h
%{_libdir}/libpyldb-util.cpython-*.so
%{_libdir}/pkgconfig/pyldb-util.cpython-*.pc
%changelog
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 2.6.1-1
- Initial addition to Photon. Needed for SSSD.

View File

@ -1,7 +1,7 @@
Summary: Talloc is a hierarchical, reference counted memory pool system
Name: libtalloc
Version: 2.3.4
Release: 2%{?dist}
Version: 2.4.0
Release: 1%{?dist}
License: LGPLv3+
URL: https://talloc.samba.org
Group: System Environment/Libraries
@ -9,7 +9,7 @@ Vendor: VMware, Inc.
Distribution: Photon
Source0: https://www.samba.org/ftp/talloc/talloc-%{version}.tar.gz
%define sha512 talloc=c46488deda99753fd79566d42cae88899b71196513a127813be2cb855e7f36b77132f0552297ee4153ba4d8f177cea3bb0dc93340caabf321c026657744684d9
%define sha512 talloc=810d92a614d0b9e0ac6fe403c1643c4dda435f79c4627d3c3be228f94b4b2ee8e528efbbed07f7d1a16043d6e55bdf4f10826f31fb8ca1c649c4126ea09a3aff
BuildRequires: libxslt-devel
BuildRequires: docbook-xsl
@ -88,6 +88,8 @@ make check %{?_smp_mflags}
%{_libdir}/pkgconfig/pytalloc-util.cpython-311*linux-gnu.pc
%changelog
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 2.4.0-1
- Version bump for SSSD
* Sun Dec 11 2022 Ashwin Dayanand Kamat <kashwindayan@vmware.com> 2.3.4-2
- Fix build error on arm machine
* Tue Dec 06 2022 Ashwin Dayanand Kamat <kashwindayan@vmware.com> 2.3.4-1

95
SPECS/libtdb/libtdb.spec Normal file
View File

@ -0,0 +1,95 @@
Name: libtdb
Summary: Trivial database library
Version: 1.4.8
Release: 1%{?dist}
URL: https://tdb.samba.org
License: LGPLv3+
Group: Development/Libraries
Vendor: VMware, Inc.
Distribution: Photon
Source0: http://samba.org/ftp/tdb/tdb-%{version}.tar.gz
%define sha512 tdb=763beebe923aa04303cbb91ce5970e6bbd13546888cff75ea9ab025afff3ef88fee539ae173fc2fb7ec661b6c337b0c2da361ce3d318f51ef6627bdb3fe6ca63
BuildRequires: make
BuildRequires: gcc
BuildRequires: libxslt
BuildRequires: docbook-xsl
BuildRequires: docbook-xml
BuildRequires: which
BuildRequires: gnupg
BuildRequires: python3-devel
Requires: glibc
Provides: bundled(libreplace)
%description
A library that implements a trivial database.
%package devel
Summary: Header files need to link the Tdb library
Requires: libtdb = %{version}-%{release}
%description devel
Header files needed to develop programs that link against the Tdb library.
%package -n tdb-tools
Summary: Developer tools for the Tdb library
Requires: libtdb = %{version}-%{release}
%description -n tdb-tools
Tools to manage Tdb files
%package -n python3-tdb
Summary: Python3 bindings for the Tdb library
Requires: %{name} = %{version}-%{release}
Requires: python3
%description -n python3-tdb
Python3 bindings for libtdb
%prep
%autosetup -n tdb-%{version} -p1
%build
%configure --disable-rpath \
--bundled-libraries=NONE \
--builtin-libraries=replace \
--enable-debug
%make_build
%install
%make_install %{?_smp_mflags}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libtdb.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/tdb.h
%{_libdir}/libtdb.so
%{_libdir}/pkgconfig/tdb.pc
%files -n tdb-tools
%defattr(-,root,root)
%{_bindir}/tdbbackup
%{_bindir}/tdbdump
%{_bindir}/tdbtool
%{_bindir}/tdbrestore
%{_mandir}/man8/tdbbackup.8*
%{_mandir}/man8/tdbdump.8*
%{_mandir}/man8/tdbtool.8*
%{_mandir}/man8/tdbrestore.8.gz
%files -n python3-tdb
%defattr(-,root,root)
%{python3_sitearch}/*
%changelog
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 1.4.8-1
- Initial addition to Photon. Needed for SSSD.

View File

@ -0,0 +1,92 @@
%global talloc_version 2.4.0
Name: libtevent
Version: 0.14.1
Release: 1%{?dist}
Summary: The tevent library
License: LGPLv3+
URL: http://tevent.samba.org/
Vendor: VMware, Inc.
Distribution: Photon
Group: Development/Libraries
Source0: http://samba.org/ftp/tevent/tevent-%{version}.tar.gz
%define sha512 tevent=0bcc87c10f84e947edad8f8c31f3923253c599b7a69a1db1c21ab292e02937ccb8bad9f0f70e27420ead687aaed1a9b3830b6daa903b8a9bd48cc035a6e5f4ec
BuildRequires: docbook-xsl
BuildRequires: gcc
BuildRequires: libtalloc-devel >= %{talloc_version}
BuildRequires: libxslt-devel
BuildRequires: make
BuildRequires: which
BuildRequires: python3-devel
BuildRequires: python3-talloc-devel >= %{talloc_version}
Requires: glibc
Requires: libtalloc
Provides: bundled(libreplace)
%description
Tevent is an event system based on the talloc memory management library.
Tevent has support for many event types, including timers, signals, and
the classic file descriptor events.
Tevent also provide helpers to deal with asynchronous code providing the
tevent_req (Tevent Request) functions.
%package devel
Summary: Developer tools for the Tevent library
Requires: libtevent = %{version}-%{release}
Requires: libtalloc-devel >= %{talloc_version}
%description devel
Header files needed to develop programs that link against the Tevent library.
%package -n python3-tevent
Summary: Python 3 bindings for the Tevent library
Requires: libtevent = %{version}-%{release}
Requires: python3
%description -n python3-tevent
Python 3 bindings for libtevent
%prep
%autosetup -n tevent-%{version} -p1
%build
%configure --disable-rpath \
--builtin-libraries=replace \
--enable-debug
%make_build
%if 0%{?with_check}
%check
%make_build check
%endif
%install
%make_install %{?_smp_mflags}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libtevent.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/tevent.h
%{_libdir}/libtevent.so
%{_libdir}/pkgconfig/tevent.pc
%{_libdir}/tevent/libcmocka-tevent.so
%files -n python3-tevent
%defattr(-,root,root)
%{python3_sitearch}/tevent.py
%{python3_sitearch}/_tevent.cpython*.so
%changelog
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 0.14.1-1
- Initial addition to Photon. Needed for SSSD addition.

134
SPECS/p11-kit/p11-kit.spec Normal file
View File

@ -0,0 +1,134 @@
Name: p11-kit
Summary: Library for loading and sharing PKCS11 modules
Version: 0.24.1
Release: 1%{?dist}
Vendor: VMware, Inc.
Distribution: Photon
Group: Development/Libraries
License: BSD
URL: http://p11-glue.freedesktop.org/p11-kit.html
Source0: https://github.com/p11-glue/p11-kit/releases/download/%{version}/p11-kit-%{version}.tar.xz
%define sha512 %{name}=8cf170c714bb9e0cf3df93e8ec55b8e3c55cabf2c6a27f177ac6de8b8028985df2ca0216d3215d6828dc2ae3095c4e1a4febe8cb26b88ec321defc66bb011e81
BuildRequires: gcc
BuildRequires: libtasn1-devel >= 2.3
BuildRequires: libffi-devel
BuildRequires: gettext
BuildRequires: gtk-doc
BuildRequires: meson
BuildRequires: systemd-devel
BuildRequires: chkconfig
BuildRequires: gnupg
Requires: libffi
Requires: glibc
%description
p11-kit provides a way to load and enumerate PKCS11 modules, as well
as a standard configuration setup for installing PKCS11 modules in
such a way that they're discoverable.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package trust
Summary: System trust module from %{name}
Requires: %{name} = %{version}-%{release}
Requires: libtasn1
Requires: nspr
Requires(post): chkconfig
Requires(postun): chkconfig
%description trust
The %{name}-trust package contains a system trust PKCS#11 module which
contains certificate anchors and black lists.
%package server
Summary: Server and client commands for %{name}
Requires: %{name} = %{version}-%{release}
Requires: systemd
Requires: xz-libs
Requires: libcap
Requires: util-linux-libs
Requires: libgcrypt
Requires: libgpg-error
%description server
The %{name}-server package contains command line tools that enable to
export PKCS11 modules through a Unix domain socket. Note that this
feature is still experimental.
%prep
%autosetup -p1
%build
%configure --disable-static \
--disable-doc-html \
bashcompdir=%{_datadir}/bash-completion/completions
%make_build
%install
%make_install %{?_smp_mflags}
# create pkcs11 modules directory
mkdir -p %{buildroot}%{_sysconfdir}/pkcs11/modules
mv %{buildroot}%{_sysconfdir}/pkcs11/pkcs11.conf.example %{buildroot}%{_sysconfdir}/pkcs11/pkcs11.conf
rm -rf %{buildroot}%{_datadir}/gtk-doc
%if 0%{?with_check}
%check
%make_build check
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/pkcs11/pkcs11.conf
%dir %{_sysconfdir}/pkcs11
%dir %{_sysconfdir}/pkcs11/modules
%dir %{_datadir}/p11-kit
%dir %{_datadir}/p11-kit/modules
%dir %{_libexecdir}/p11-kit
%{_bindir}/p11-kit
%{_libdir}/libp11-kit.so.*
%{_libdir}/p11-kit-proxy.so
%{_libexecdir}/p11-kit/p11-kit-remote
%{_datadir}/bash-completion/completions/p11-kit
%files devel
%defattr(-,root,root)
%{_includedir}/p11-kit-1/
%{_libdir}/libp11-kit.so
%{_libdir}/pkgconfig/p11-kit-1.pc
%files trust
%defattr(-,root,root)
%{_bindir}/trust
%dir %{_libdir}/pkcs11
%ghost %{_libdir}/libnssckbi.so
%{_libdir}/pkcs11/p11-kit-trust.so
%{_datadir}/p11-kit/modules/p11-kit-trust.module
%{_libexecdir}/p11-kit/trust-extract-compat
%{_datadir}/bash-completion/completions/trust
%files server
%defattr(-,root,root)
%{_libdir}/pkcs11/p11-kit-client.so
%{_libexecdir}/p11-kit/p11-kit-server
%{_userunitdir}/p11-kit-server.service
%{_userunitdir}/p11-kit-server.socket
%changelog
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 0.24.1-1
- Initial addition to Photon. Required for SSSD.

View File

@ -0,0 +1,47 @@
Summary: Perl wrapper for JSON. Provides JSON.pm
Name: perl-JSON
Version: 4.10
Release: 1%{?dist}
License: Perl 5 License (Artistic 1 & GPL 1)
Group: Development/Libraries
URL: https://metacpan.org/pod/JSON
Vendor: VMware, Inc.
Distribution: Photon
BuildArch: noarch
Source: https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/JSON-%{version}.tar.gz
%define sha512 JSON-%{version}=2aa0c40fbff23d3df84cfa729d00a32a69e06ea83d082b25b7223f90cb157fa3c2e72342fadcd2ebe09b5848a0e3a7d2caec6d1753e95952a56e3e9367f343e3
Requires: perl >= 5.28.0
BuildRequires: perl >= 5.28.0
# otherwise tdnf fails to install
Provides: perl(JSON::backportPP::Boolean)
%description
This module is a thin wrapper for JSON::XS-compatible modules with a few additional features. All the backend modules convert a Perl data structure to a JSON text and vice versa. This module uses JSON::XS by default, and when JSON::XS is not available, falls back on JSON::PP, which is in the Perl core since 5.14. If JSON::PP is not available either, this module then falls back on JSON::backportPP (which is actually JSON::PP in a different .pm file) bundled in the same distribution as this module. You can also explicitly specify to use Cpanel::JSON::XS, a fork of JSON::XS by Reini Urban.
All these backend modules have slight incompatibilities between them, including extra features that other modules don't support, but as long as you use only common features (most important ones are described below), migration from backend to backend should be reasonably easy. For details, see each backend module you use.
%prep
%autosetup -n JSON-%{version}
%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make_build
%install
make pure_install %{?_smp_mflags} DESTDIR=%{buildroot}
%check
export PERL_MM_USE_DEFAULT=1
cpan Test::Fatal Test::Requires Test::Warnings Test::Without::Module
make test %{?_smp_mflags}
%files
%{perl_vendorlib}/*
%exclude %{_mandir}/man?/*
%changelog
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 4.10-1
- Initial addition

View File

@ -1,64 +1,42 @@
Auther: Shreyas B. <shreyasb@vmware.con>
Date: Mon, 10 May 2021 2021-05-10 11:34:58.144455933 +0530
Subject: rename libdcerpc.so to libsmbdcerpc.so to avoid conflicts with libdcerpc.so from DCERPC
From 625ad345f0b644cc1b983caa06f67514c8edc874 Mon Sep 17 00:00:00 2001
From: Brennan Lamoreaux <blamoreaux@vmware.com>
Date: Tue, 14 Feb 2023 20:31:49 +0000
Subject: [PATCH] rename dcerpc to smbdcerpc 4.17.5
rename libdcerpc.so to libsmbdcerpc.so to avoid conflicts with libdcerpc.so from DCERPC.
Regenerated for samba 4.17.5
---
librpc/wscript_build | 2 +-
source4/dsdb/wscript_build | 2 +-
source4/lib/messaging/wscript_build | 2 +-
source4/lib/registry/wscript_build | 2 +-
source4/libcli/wscript_build | 2 +-
source4/libnet/wscript_build | 2 +-
source4/librpc/wscript_build | 12 ++++++------
source4/rpc_server/wscript_build | 2 +-
source4/torture/drs/wscript_build | 2 +-
source4/torture/wscript_build | 4 ++--
source4/wscript_build | 2 +-
11 files changed, 17 insertions(+), 17 deletions(-)
--- a/source4/librpc/wscript_build 2021-05-10 11:34:58.144455933 +0530
+++ b/source4/librpc/wscript_build 2021-05-10 12:32:09.940917028 +0530
@@ -138,20 +138,20 @@ bld.SAMBA_SUBSYSTEM('ndr-table',
bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
source='gen_ndr/ndr_irpc_c.c',
- public_deps='dcerpc NDR_IRPC'
+ public_deps='smbdcerpc NDR_IRPC'
diff --git a/librpc/wscript_build b/librpc/wscript_build
index 7913b7c..053ac23 100644
--- a/librpc/wscript_build
+++ b/librpc/wscript_build
@@ -727,7 +727,7 @@ bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
source='gen_ndr/ndr_winbind_c.c',
- public_deps='dcerpc NDR_WINBIND'
+ public_deps='smbdcerpc NDR_WINBIND'
)
bld.SAMBA_LIBRARY('dcerpc-samr',
source='',
pc_files='dcerpc_samr.pc',
vnum='0.0.1',
- public_deps='dcerpc ndr-standard RPC_NDR_SAMR',
+ public_deps='smbdcerpc ndr-standard RPC_NDR_SAMR',
public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
header_path='gen_ndr'
)
-bld.SAMBA_LIBRARY('dcerpc',
+bld.SAMBA_LIBRARY('smbdcerpc',
source='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_sock.c
rpc/dcerpc_roh_channel_in.c rpc/dcerpc_roh_channel_out.c rpc/dcerpc_roh.c
@@ -182,7 +182,7 @@ pyparam_util = bld.pyembed_libname('pypa
bld.SAMBA_SUBSYSTEM(pyrpc_util,
source='rpc/pyrpc_util.c',
- public_deps='%s %s dcerpc MESSAGING' % (pytalloc_util, pyparam_util),
+ public_deps='%s %s smbdcerpc MESSAGING' % (pytalloc_util, pyparam_util),
pyext=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED(),
)
@@ -327,7 +327,7 @@ bld.SAMBA_PYTHON('python_initshutdown',
bld.SAMBA_PYTHON('python_epmapper',
source='../../librpc/gen_ndr/py_epmapper.c',
- deps='dcerpc %s %s' % (pytalloc_util, pyrpc_util),
+ deps='smbdcerpc %s %s' % (pytalloc_util, pyrpc_util),
realname='samba/dcerpc/epmapper.so',
cflags_end=gen_cflags
)
@@ -335,7 +335,7 @@ bld.SAMBA_PYTHON('python_epmapper',
bld.SAMBA_PYTHON('python_mgmt',
source='../../librpc/gen_ndr/py_mgmt.c',
- deps='dcerpc %s %s' % (pytalloc_util, pyrpc_util),
+ deps='smbdcerpc %s %s' % (pytalloc_util, pyrpc_util),
realname='samba/dcerpc/mgmt.so',
cflags_end=gen_cflags
)
--- a/source4/dsdb/wscript_build 2021-05-10 11:35:03.720620197 +0530
+++ b/source4/dsdb/wscript_build 2021-05-10 11:50:14.935455033 +0530
bld.SAMBA_SUBSYSTEM('NDR_FSRVP_STATE',
diff --git a/source4/dsdb/wscript_build b/source4/dsdb/wscript_build
index 7f9b8fe..6891579 100644
--- a/source4/dsdb/wscript_build
+++ b/source4/dsdb/wscript_build
@@ -77,7 +77,7 @@ bld.SAMBA_PYTHON('python_dsdb',
# the dependency on dcerpc here is because gensec
# depends on dcerpc but the waf circular dependency finder
@ -66,52 +44,12 @@ Subject: rename libdcerpc.so to libsmbdcerpc.so to avoid conflicts with libdcerp
- deps='samdb %s dcerpc com_err %s %s dsdb_garbage_collect_tombstones scavenge_dns_records' %\
+ deps='samdb %s smbdcerpc com_err %s %s dsdb_garbage_collect_tombstones scavenge_dns_records' %\
(pyldb_util, pyrpc_util, pyparam_util),
realname='samba/dsdb.so',
enabled=bld.AD_DC_BUILD_IS_ENABLED()
--- a/source4/libnet/wscript_build 2021-05-10 11:35:09.100778688 +0530
+++ b/source4/libnet/wscript_build 2021-05-10 11:52:07.446767873 +0530
@@ -8,7 +8,7 @@ auto_proto='libnet_proto.h'
bld.SAMBA_LIBRARY(name,
source='libnet.c libnet_passwd.c libnet_time.c libnet_rpc.c libnet_join.c libnet_site.c libnet_become_dc.c libnet_unbecome_dc.c libnet_vampire.c libnet_user.c libnet_group.c libnet_share.c libnet_lookup.c libnet_domain.c userinfo.c groupinfo.c userman.c groupman.c prereq_domain.c',
autoproto=auto_proto,
- public_deps='samba-credentials dcerpc dcerpc-samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI cli_composite LIBCLI_RESOLVE LIBCLI_FINDDCS cli_cldap LIBCLI_FINDDCS gensec_schannel LIBCLI_AUTH ndr smbpasswdparser %s LIBCLI_SAMSYNC LIBTSOCKET GNUTLS_HELPERS' % (provision),
+ public_deps='samba-credentials smbdcerpc dcerpc-samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI cli_composite LIBCLI_RESOLVE LIBCLI_FINDDCS cli_cldap LIBCLI_FINDDCS gensec_schannel LIBCLI_AUTH ndr smbpasswdparser %s LIBCLI_SAMSYNC LIBTSOCKET GNUTLS_HELPERS' % (provision),
private_library=True,
pyembed=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
--- a/source4/torture/wscript_build 2021-05-10 11:35:14.368933874 +0530
+++ b/source4/torture/wscript_build 2021-05-10 11:53:50.461801045 +0530
@@ -315,7 +315,7 @@ TORTURE_MODULES = 'TORTURE_BASIC TORTURE
bld.SAMBA_SUBSYSTEM('torturemain',
source='smbtorture.c torture.c shell.c',
subsystem_name='smbtorture',
- deps='torture popt POPT_SAMBA POPT_CREDENTIALS dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
+ deps='torture popt POPT_SAMBA POPT_CREDENTIALS smbdcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
)
@@ -323,7 +323,7 @@ bld.SAMBA_BINARY('smbtorture',
source=[],
manpages='man/smbtorture.1',
private_headers='smbtorture.h',
- deps='torturemain torture popt POPT_SAMBA POPT_CREDENTIALS dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
+ deps='torturemain torture popt POPT_SAMBA POPT_CREDENTIALS smbdcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
pyembed=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
realname='samba/dsdb.so'
)
--- a/source4/lib/registry/wscript_build 2021-05-10 11:35:21.709150102 +0530
+++ b/source4/lib/registry/wscript_build 2021-05-10 11:54:57.551776416 +0530
@@ -12,7 +12,7 @@ bld.SAMBA_SUBSYSTEM('TDR_REGF',
bld.SAMBA_LIBRARY('registry',
source='interface.c util.c samba.c patchfile_dotreg.c patchfile_preg.c patchfile.c regf.c hive.c local.c ldb.c rpc.c',
- public_deps='dcerpc samba-util TDR_REGF ldb RPC_NDR_WINREG ldbsamba util_reg',
+ public_deps='smbdcerpc samba-util TDR_REGF ldb RPC_NDR_WINREG ldbsamba util_reg',
private_headers='registry.h',
private_library=True
)
--- a/source4/lib/messaging/wscript_build 2021-05-10 11:35:27.249313302 +0530
+++ b/source4/lib/messaging/wscript_build 2021-05-10 11:56:05.957790528 +0530
diff --git a/source4/lib/messaging/wscript_build b/source4/lib/messaging/wscript_build
index 3408396..a85da70 100644
--- a/source4/lib/messaging/wscript_build
+++ b/source4/lib/messaging/wscript_build
@@ -15,7 +15,7 @@ bld.SAMBA_LIBRARY('MESSAGING',
UNIX_PRIVS
cluster
@ -121,52 +59,23 @@ Subject: rename libdcerpc.so to libsmbdcerpc.so to avoid conflicts with libdcerp
messages_util
server_id_db
talloc_report_printf
--- a/source4/rpc_server/wscript_build 2021-05-10 11:35:33.361493347 +0530
+++ b/source4/rpc_server/wscript_build 2021-05-10 11:57:05.815552938 +0530
@@ -25,7 +25,7 @@ bld.SAMBA_LIBRARY('dcerpc_server',
source='dcerpc_server.c',
pc_files='dcerpc_server.pc',
deps='LIBCLI_AUTH ndr samba_server_gensec service auth',
- public_deps='dcerpc dcerpc-server-core',
+ public_deps='smbdcerpc dcerpc-server-core',
autoproto='dcerpc_server_proto.h',
public_headers='dcerpc_server.h',
vnum='0.0.1',
--- a/source4/torture/drs/wscript_build 2021-05-10 11:35:39.541675396 +0530
+++ b/source4/torture/drs/wscript_build 2021-05-10 11:57:59.325128432 +0530
@@ -5,7 +5,7 @@ bld.SAMBA_MODULE('TORTURE_DRS',
autoproto='proto.h',
subsystem='smbtorture',
init_function='torture_drs_init',
- deps='samba-util ldb POPT_SAMBA samba-errors torture ldbsamba talloc dcerpc ndr NDR_DRSUAPI gensec samba-hostconfig RPC_NDR_DRSUAPI DSDB_MODULE_HELPERS asn1util samdb NDR_DRSBLOBS samba-credentials samdb-common LIBCLI_RESOLVE LP_RESOLVE torturemain',
+ deps='samba-util ldb POPT_SAMBA samba-errors torture ldbsamba talloc smbdcerpc ndr NDR_DRSUAPI gensec samba-hostconfig RPC_NDR_DRSUAPI DSDB_MODULE_HELPERS asn1util samdb NDR_DRSBLOBS samba-credentials samdb-common LIBCLI_RESOLVE LP_RESOLVE torturemain',
internal_module=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
diff --git a/source4/lib/registry/wscript_build b/source4/lib/registry/wscript_build
index 2e01e43..d3c8968 100644
--- a/source4/lib/registry/wscript_build
+++ b/source4/lib/registry/wscript_build
@@ -12,7 +12,7 @@ bld.SAMBA_SUBSYSTEM('TDR_REGF',
bld.SAMBA_LIBRARY('registry',
source='interface.c util.c samba.c patchfile_dotreg.c patchfile_preg.c patchfile.c regf.c hive.c local.c ldb.c rpc.c',
- public_deps='dcerpc samba-util TDR_REGF ldb RPC_NDR_WINREG ldbsamba util_reg',
+ public_deps='smbdcerpc samba-util TDR_REGF ldb RPC_NDR_WINREG ldbsamba util_reg',
private_headers='registry.h',
private_library=True
)
--- a/librpc/wscript_build 2021-05-10 11:35:44.905833408 +0530
+++ b/librpc/wscript_build 2021-05-10 11:59:05.759084448 +0530
@@ -685,7 +685,7 @@ bld.SAMBA_SUBSYSTEM('NDR_WINBIND',
bld.SAMBA_SUBSYSTEM('RPC_NDR_WINBIND',
source='gen_ndr/ndr_winbind_c.c',
- public_deps='dcerpc NDR_WINBIND'
+ public_deps='smbdcerpc NDR_WINBIND'
)
bld.SAMBA_SUBSYSTEM('NDR_FSRVP_STATE',
--- a/source4/wscript_build 2021-05-10 11:35:50.974012157 +0530
+++ b/source4/wscript_build 2021-05-10 12:06:46.164523990 +0530
@@ -2,7 +2,7 @@
bld.SAMBA_BINARY('client/smbclient' + bld.env.suffix4,
source='client/client.c',
- deps='samba-hostconfig SMBREADLINE samba-util LIBCLI_SMB RPC_NDR_SRVSVC LIBCLI_LSA popt POPT_SAMBA POPT_CREDENTIALS smbclient-raw param_options dcerpc',
+ deps='samba-hostconfig SMBREADLINE samba-util LIBCLI_SMB RPC_NDR_SRVSVC LIBCLI_LSA popt POPT_SAMBA POPT_CREDENTIALS smbclient-raw param_options smbdcerpc',
install=False
)
--- a/source4/libcli/wscript_build 2021-05-10 11:36:17.038779932 +0530
+++ b/source4/libcli/wscript_build 2021-05-10 12:07:44.842209972 +0530
diff --git a/source4/libcli/wscript_build b/source4/libcli/wscript_build
index f1bb6bd..c0b70cd 100644
--- a/source4/libcli/wscript_build
+++ b/source4/libcli/wscript_build
@@ -12,7 +12,7 @@ bld.SAMBA_SUBSYSTEM('LIBSAMBA_TSOCKET',
bld.SAMBA_SUBSYSTEM('LIBCLI_LSA',
source='util/clilsa.c',
@ -175,4 +84,136 @@ Subject: rename libdcerpc.so to libsmbdcerpc.so to avoid conflicts with libdcerp
+ public_deps='RPC_NDR_LSA smbdcerpc',
deps='samba-security'
)
diff --git a/source4/libnet/wscript_build b/source4/libnet/wscript_build
index 0ec06f2..b55d725 100644
--- a/source4/libnet/wscript_build
+++ b/source4/libnet/wscript_build
@@ -9,7 +9,7 @@ bld.SAMBA_LIBRARY(name,
source='libnet.c libnet_passwd.c libnet_time.c libnet_rpc.c libnet_join.c libnet_site.c libnet_become_dc.c libnet_unbecome_dc.c libnet_vampire.c libnet_user.c libnet_group.c libnet_share.c libnet_lookup.c libnet_domain.c userinfo.c groupinfo.c userman.c groupman.c prereq_domain.c',
autoproto=auto_proto,
deps='INIT_SAMR',
- public_deps='samba-credentials dcerpc dcerpc-samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI cli_composite LIBCLI_RESOLVE LIBCLI_FINDDCS cli_cldap LIBCLI_FINDDCS gensec_schannel LIBCLI_AUTH ndr smbpasswdparser %s LIBCLI_SAMSYNC LIBTSOCKET GNUTLS_HELPERS' % (provision),
+ public_deps='samba-credentials smbdcerpc dcerpc-samr RPC_NDR_LSA RPC_NDR_SRVSVC RPC_NDR_DRSUAPI cli_composite LIBCLI_RESOLVE LIBCLI_FINDDCS cli_cldap LIBCLI_FINDDCS gensec_schannel LIBCLI_AUTH ndr smbpasswdparser %s LIBCLI_SAMSYNC LIBTSOCKET GNUTLS_HELPERS' % (provision),
private_library=True,
pyembed=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
diff --git a/source4/librpc/wscript_build b/source4/librpc/wscript_build
index 5192d9b..5ea7b2a 100644
--- a/source4/librpc/wscript_build
+++ b/source4/librpc/wscript_build
@@ -139,20 +139,20 @@ bld.SAMBA_SUBSYSTEM('ndr-table',
bld.SAMBA_SUBSYSTEM('RPC_NDR_IRPC',
source='gen_ndr/ndr_irpc_c.c',
- public_deps='dcerpc NDR_IRPC'
+ public_deps='smbdcerpc NDR_IRPC'
)
bld.SAMBA_LIBRARY('dcerpc-samr',
source='',
pc_files='dcerpc_samr.pc',
vnum='0.0.1',
- public_deps='dcerpc ndr-standard RPC_NDR_SAMR',
+ public_deps='smbdcerpc ndr-standard RPC_NDR_SAMR',
public_headers='../../librpc/gen_ndr/ndr_samr_c.h',
header_path='gen_ndr'
)
-bld.SAMBA_LIBRARY('dcerpc',
+bld.SAMBA_LIBRARY('smbdcerpc',
source='''rpc/dcerpc.c rpc/dcerpc_auth.c rpc/dcerpc_schannel.c
rpc/dcerpc_util.c rpc/dcerpc_smb.c rpc/dcerpc_sock.c
rpc/dcerpc_roh_channel_in.c rpc/dcerpc_roh_channel_out.c rpc/dcerpc_roh.c
@@ -202,7 +202,7 @@ pyparam_util = bld.pyembed_libname('pyparam_util')
bld.SAMBA_SUBSYSTEM(pyrpc_util,
source='rpc/pyrpc_util.c',
- public_deps='%s %s dcerpc MESSAGING' % (pytalloc_util, pyparam_util),
+ public_deps='%s %s smbdcerpc MESSAGING' % (pytalloc_util, pyparam_util),
pyext=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED(),
)
@@ -354,7 +354,7 @@ bld.SAMBA_PYTHON('python_initshutdown',
bld.SAMBA_PYTHON('python_epmapper',
source='../../librpc/gen_ndr/py_epmapper.c',
- deps='dcerpc %s %s' % (pytalloc_util, pyrpc_util),
+ deps='smbdcerpc %s %s' % (pytalloc_util, pyrpc_util),
realname='samba/dcerpc/epmapper.so',
cflags_end=gen_cflags
)
@@ -362,7 +362,7 @@ bld.SAMBA_PYTHON('python_epmapper',
bld.SAMBA_PYTHON('python_mgmt',
source='../../librpc/gen_ndr/py_mgmt.c',
- deps='dcerpc %s %s' % (pytalloc_util, pyrpc_util),
+ deps='smbdcerpc %s %s' % (pytalloc_util, pyrpc_util),
realname='samba/dcerpc/mgmt.so',
cflags_end=gen_cflags
)
diff --git a/source4/rpc_server/wscript_build b/source4/rpc_server/wscript_build
index 0e44a3c..ac3a741 100644
--- a/source4/rpc_server/wscript_build
+++ b/source4/rpc_server/wscript_build
@@ -22,7 +22,7 @@ bld.SAMBA_LIBRARY('dcerpc_server',
source='dcerpc_server.c',
pc_files='dcerpc_server.pc',
deps='LIBCLI_AUTH ndr samba_server_gensec service auth',
- public_deps='dcerpc dcerpc-server-core',
+ public_deps='smbdcerpc dcerpc-server-core',
autoproto='dcerpc_server_proto.h',
public_headers='dcerpc_server.h',
vnum='0.0.1',
diff --git a/source4/torture/drs/wscript_build b/source4/torture/drs/wscript_build
index 0dc26d6..f50ef6b 100644
--- a/source4/torture/drs/wscript_build
+++ b/source4/torture/drs/wscript_build
@@ -5,7 +5,7 @@ bld.SAMBA_MODULE('TORTURE_DRS',
autoproto='proto.h',
subsystem='smbtorture',
init_function='torture_drs_init',
- deps='samba-util ldb samba-errors torture ldbsamba talloc dcerpc ndr NDR_DRSUAPI gensec samba-hostconfig RPC_NDR_DRSUAPI DSDB_MODULE_HELPERS asn1util samdb NDR_DRSBLOBS samba-credentials samdb-common LIBCLI_RESOLVE LP_RESOLVE torturemain',
+ deps='samba-util ldb samba-errors torture ldbsamba talloc smbdcerpc ndr NDR_DRSUAPI gensec samba-hostconfig RPC_NDR_DRSUAPI DSDB_MODULE_HELPERS asn1util samdb NDR_DRSBLOBS samba-credentials samdb-common LIBCLI_RESOLVE LP_RESOLVE torturemain',
internal_module=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
)
diff --git a/source4/torture/wscript_build b/source4/torture/wscript_build
index d870a3a..8b41ad7 100644
--- a/source4/torture/wscript_build
+++ b/source4/torture/wscript_build
@@ -317,7 +317,7 @@ TORTURE_MODULES = 'TORTURE_BASIC TORTURE_RAW torture_rpc TORTURE_RAP TORTURE_AUT
bld.SAMBA_SUBSYSTEM('torturemain',
source='smbtorture.c torture.c shell.c',
subsystem_name='smbtorture',
- deps='torture dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
+ deps='torture smbdcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
)
@@ -325,7 +325,7 @@ bld.SAMBA_BINARY('smbtorture',
source=[],
manpages='man/smbtorture.1',
private_headers='smbtorture.h',
- deps='torturemain torture popt CMDLINE_S4 dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
+ deps='torturemain torture popt CMDLINE_S4 smbdcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
pyembed=True,
enabled=bld.PYTHON_BUILD_IS_ENABLED()
)
diff --git a/source4/wscript_build b/source4/wscript_build
index d204441..bf16575 100644
--- a/source4/wscript_build
+++ b/source4/wscript_build
@@ -2,7 +2,7 @@
bld.SAMBA_BINARY('client/smbclient' + bld.env.suffix4,
source='client/client.c',
- deps='samba-hostconfig SMBREADLINE samba-util LIBCLI_SMB RPC_NDR_SRVSVC LIBCLI_LSA CMDLINE_S4 smbclient-raw dcerpc',
+ deps='samba-hostconfig SMBREADLINE samba-util LIBCLI_SMB RPC_NDR_SRVSVC LIBCLI_LSA CMDLINE_S4 smbclient-raw smbdcerpc',
install=False
)
--
2.35.5

View File

@ -1,7 +1,7 @@
Summary: Samba Client Programs
Name: samba-client
Version: 4.14.4
Release: 9%{?dist}
Version: 4.17.5
Release: 1%{?dist}
License: GPLv3+ and LGPLv3+
Group: Productivity/Networking
Vendor: VMware, Inc.
@ -9,7 +9,7 @@ Distribution: Photon
URL: https://www.samba.org
Source0: https://www.samba.org/ftp/samba/stable/samba-%{version}.tar.gz
%define sha512 samba=200b2b2b08b369915e045f22ee993d5deea7a2533c6c582d4b88c614adcad5529109d449e843a2a1f292e5cfb1877d66421b5b0801ad988896cbe5413717e4dc
%define sha512 samba=352ae8bc161fb07ac6c7330c6ebd02c27eb453ffc1c32c8437edc441ba3044cb2e9b31c8cf181664a2b47098c75a55f06c105f5397c57ce75826ef2af331afa9
Source1: smb.conf.vendor
@ -36,6 +36,12 @@ BuildRequires: lmdb
BuildRequires: openldap-devel
BuildRequires: perl-Parse-Yapp
BuildRequires: dbus-devel
BuildRequires: sudo
BuildRequires: libtdb-devel
BuildRequires: libldb-devel
BuildRequires: libtevent-devel
BuildRequires: bison
BuildRequires: perl-JSON
Requires: %{name}-libs = %{samba_ver}
Requires: libtirpc
@ -53,6 +59,10 @@ Requires: dbus
Requires: libtalloc
Requires: ncurses-libs
Requires: popt
Requires: bindutils
Requires: libtdb
Requires: libldb
Requires: libtevent
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
@ -68,6 +78,10 @@ For a more detailed description of Samba, check the Web page https://www.Samba.o
# Samba Client Libaries
%package -n %{name}-libs
Summary: Samba client libraries
Requires: libtdb
Requires: libldb
Requires: libtalloc
Requires: libtevent
%description -n %{name}-libs
The samba-client-libs package contains internal libraries needed by the
@ -86,6 +100,7 @@ to develop programs.
%package -n libwbclient
Summary: Samba libwbclient Library
Group: System/Libraries
Provides: pkgconfig(wbclient)
%description -n libwbclient
This package includes the wbclient library.
@ -128,8 +143,8 @@ export LDFLAGS="-ltirpc"
--without-acl-support \
--with-shared-modules=%{_samba_modules} \
--disable-python \
--without-ads \
--without-ntvfs-fileserver
--bundled-libraries=cmocka,!talloc,!pytalloc,!pytalloc-util,!tevent,!pytevent,!tdb,!pytdb,!ldb,!pyldb,!pldb-util \
--enable-debug
%make_build bin/smbclient
@ -149,8 +164,11 @@ install -m 0644 packaging/systemd/samba.sysconfig %{buildroot}%{_sysconfdir}/sys
# Delete Unpackaged File(s)
for file_dir in \
%{_libdir}/samba/vfs/* \
%{_libdir}/samba/libldb-cmdline-samba4.so \
%{_libdir}/samba/libldb-key-value-samba4.so \
%{_libdir}/samba/libldb-tdb-err-map-samba4.so \
%{_libdir}/samba/libldb-tdb-int-samba4.so \
%{_libdir}/samba/libkdc-* \
%{_libdir}/samba/libldb-* \
%{_libdir}/samba/libpyldb-* \
%{_libdir}/samba/libpytalloc-* \
%{_libdir}/samba/nss_info/* \
@ -158,9 +176,7 @@ for file_dir in \
%{_libdir}/samba/krb5/winbind_krb5_locator.so \
%{_libdir}/samba/krb5/async_dns_krb5_locator.so \
%{_libdir}/samba/ldb/asq.so \
%{_libdir}/samba/ldb/ildap.so \
%{_libdir}/samba/ldb/ldb.so \
%{_libdir}/samba/ldb/ldbsamba_extensions.so \
%{_libdir}/samba/ldb/paged_searches.so \
%{_libdir}/samba/ldb/rdn_name.so \
%{_libdir}/samba/ldb/sample.so \
@ -171,16 +187,15 @@ for file_dir in \
%{_libdir}/samba/libauth-unix-token-samba4.so \
%{_libdir}/samba/libauth4-samba4.so \
%{_libdir}/samba/libcmocka-samba4.so \
%{_libdir}/samba/libdcerpc-samba4.so \
%{_libdir}/samba/libdsdb-module-samba4.so \
%{_libdir}/samba/libhdb-* \
%{_libdir}/samba/libheimntlm-samba4.so.* \
%{_libdir}/samba/libidmap-samba4.so \
%{_libdir}/samba/libnss-info-samba4.so \
%{_libdir}/samba/libsamba-net.cpython-37m-x86-64-linux-gnu-samba4.so \
%{_libdir}/samba/libsamba-python.cpython-37m-x86-64-linux-gnu-samba4.so \
%{_libdir}/samba/libshares-samba4.so \
%{_libdir}/samba/libsmbpasswdparser-samba4.so \
%{_libdir}/samba/libREG-FULL-samba4.so \
%{_libdir}/samba/libxattr-tdb-samba4.so \
%{_libdir}/security/pam_winbind.so \
%{_libdir}/libdcerpc-samr.* \
@ -189,15 +204,22 @@ for file_dir in \
%{_libdir}/libsamba-policy.cpython-37m-x86-64-linux-gnu.* \
%{_libdir}/pkgconfig/dcerpc.pc \
%{_libdir}/pkgconfig/dcerpc_samr.pc \
%{_libdir}/pkgconfig/ndr.pc \
%{_libdir}/pkgconfig/ndr_* \
%{_libdir}/pkgconfig/netapi.pc \
%{_libdir}/pkgconfig/samba-credentials.pc \
%{_libdir}/pkgconfig/samba-hostconfig.pc \
%{_libdir}/pkgconfig/samba-policy.cpython-37m-*-linux-gnu.pc \
%{_libdir}/pkgconfig/samba-util.pc \
%{_libdir}/pkgconfig/samdb.pc \
%{_libdir}/samba/auth/unix.so \
%{_libexecdir}/samba/rpcd_classic \
%{_libexecdir}/samba/rpcd_fsrvp \
%{_libexecdir}/samba/rpcd_epmapper \
%{_libexecdir}/samba/rpcd_lsad \
%{_libexecdir}/samba/rpcd_mdssvc \
%{_libexecdir}/samba/rpcd_rpcecho \
%{_libexecdir}/samba/rpcd_spoolss \
%{_libexecdir}/samba/rpcd_winreg \
%{_libexecdir}/samba/samba-bgqd \
%{_libexecdir}/samba/samba-dcerpcd \
%{_sbindir}/eventlogadm \
%{_sbindir}/nmbd \
%{_sbindir}/samba-gpupdate \
@ -213,7 +235,6 @@ for file_dir in \
%{_bindir}/locktest2 \
%{_bindir}/masktest \
%{_bindir}/ndrdump \
%{_bindir}/net \
%{_bindir}/nsstest \
%{_bindir}/ntlm_auth \
%{_bindir}/pdbedit \
@ -223,6 +244,7 @@ for file_dir in \
%{_bindir}/pthreadpooltest_cmocka \
%{_bindir}/resolvconftest \
%{_bindir}/rpc_open_tcp \
%{_bindir}/samba-tool \
%{_bindir}/smbconftort \
%{_bindir}/smbcontrol \
%{_bindir}/smbpasswd \
@ -243,25 +265,31 @@ for file_dir in \
%{_bindir}/vfstest \
%{_bindir}/vlp \
%{_bindir}/wbinfo \
%{_includedir}/samba-4.0/util/* \
%{_includedir}/samba-4.0/core/* \
%{_includedir}/samba-4.0/charset.h \
%{_includedir}/samba-4.0/util/attr.h \
%{_includedir}/samba-4.0/util/blocking.h \
%{_includedir}/samba-4.0/util/debug.h \
%{_includedir}/samba-4.0/util/fault.h \
%{_includedir}/samba-4.0/util/genrand.h \
%{_includedir}/samba-4.0/util/idtree.h \
%{_includedir}/samba-4.0/util/idtree_random.h \
%{_includedir}/samba-4.0/util/signal.h \
%{_includedir}/samba-4.0/util/substitute.h \
%{_includedir}/samba-4.0/util/tevent_ntstatus.h \
%{_includedir}/samba-4.0/util/tevent_unix.h \
%{_includedir}/samba-4.0/util/tevent_werror.h \
%{_includedir}/samba-4.0/util/tfork.h \
%{_includedir}/samba-4.0/credentials.h \
%{_includedir}/samba-4.0/dcerpc.h \
%{_includedir}/samba-4.0/dcesrv_core.h \
%{_includedir}/samba-4.0/domain_credentials.h \
%{_includedir}/samba-4.0/gen_ndr/* \
%{_includedir}/samba-4.0/ldb_wrap.h \
%{_includedir}/samba-4.0/lookup_sid.h \
%{_includedir}/samba-4.0/machine_sid.h \
%{_includedir}/samba-4.0/ndr.h \
%{_includedir}/samba-4.0/ndr/* \
%{_includedir}/samba-4.0/netapi.h \
%{_includedir}/samba-4.0/param.h \
%{_includedir}/samba-4.0/passdb.h \
%{_includedir}/samba-4.0/rpc_common.h \
%{_includedir}/samba-4.0/samba/session.h \
%{_includedir}/samba-4.0/samba/version.h \
%{_includedir}/samba-4.0/share.h \
%{_includedir}/samba-4.0/smb* \
%{_includedir}/samba-4.0/tdr.h \
@ -339,12 +367,11 @@ rm -rf %{buildroot}/*
# Samba Client
%files
%defattr(-,root,root,-)
%{_bindir}/mdsearch
%{_bindir}/cifsdd
%{_bindir}/dbwrap_tool
%{_bindir}/dumpmscat
%{_bindir}/findsmb
%{_bindir}/mvxattr
%{_bindir}/mdfind
%{_bindir}/nmblookup
%{_bindir}/oLschema2ldif
%{_bindir}/regdiff
@ -361,6 +388,7 @@ rm -rf %{buildroot}/*
%{_bindir}/smbspool
%{_bindir}/smbtar
%{_bindir}/smbtree
%{_bindir}/net
%ghost %{_libexecdir}/samba/cups_backend_smb
%{_tmpfilesdir}/samba.conf
%attr(0700,root,root) %dir /var/log/samba
@ -372,36 +400,7 @@ rm -rf %{buildroot}/*
%attr(755,root,root) %dir %{_sysconfdir}/samba
%config(noreplace) %{_sysconfdir}/samba/smb.conf
%config(noreplace) %{_sysconfdir}/sysconfig/samba
%{_mandir}/man1/dbwrap_tool.1*
%{_mandir}/man1/nmblookup.1*
%{_mandir}/man1/oLschema2ldif.1*
%{_mandir}/man1/regdiff.1*
%{_mandir}/man1/regpatch.1*
%{_mandir}/man1/regshell.1*
%{_mandir}/man1/regtree.1*
%{_mandir}/man1/findsmb.1*
%{_mandir}/man1/log2pcap.1*
%{_mandir}/man1/mdfind.1*
%{_mandir}/man1/mvxattr.1*
%{_mandir}/man1/rpcclient.1*
%{_mandir}/man1/sharesec.1*
%{_mandir}/man1/smbcacls.1*
%{_mandir}/man1/smbclient.1*
%{_mandir}/man1/smbcquotas.1*
%{_mandir}/man1/smbget.1*
%{_mandir}/man1/smbtar.1*
%{_mandir}/man1/smbtree.1*
%{_mandir}/man5/smbgetrc.5*
%{_mandir}/man7/traffic_learner.7.*
%{_mandir}/man7/traffic_replay.7.*
%{_mandir}/man8/cifsdd.8.*
%{_mandir}/man8/samba-regedit.8*
%{_mandir}/man8/smbspool.8*
%{_mandir}/man5/smb.conf.5*
%{_mandir}/man5/smbpasswd.5*
%{_mandir}/man7/samba.7*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man7/*
%{_mandir}/man8/*
@ -427,6 +426,25 @@ rm -rf %{buildroot}/*
%{_libdir}/libsmbdcerpc.so.*
%{_libdir}/libsmbclient.so.*
%dir %{_libdir}/samba
%{_libdir}/samba/libasn1-samba4.so
%{_libdir}/samba/libcom-err-samba4.so
%{_libdir}/samba/libdnsserver-common-samba4.so
%{_libdir}/samba/libgssapi-samba4.so
%{_libdir}/samba/libhcrypto-samba4.so
%{_libdir}/samba/libheimbase-samba4.so
%{_libdir}/samba/libhx509-samba4.so
%{_libdir}/samba/libroken-samba4.so
%{_libdir}/samba/libwind-samba4.so
%{_libdir}/samba/ldb/ildap.so
%{_libdir}/samba/libRPC-WORKER-samba4.so
%{_libdir}/samba/libcmdline-samba4.so
%{_libdir}/samba/libgss-preauth-samba4.so
%{_libdir}/samba/libheimntlm-samba4.so
%{_libdir}/samba/libkrb5-samba4.so
%{_libdir}/samba/libRPC-SERVER-LOOP-samba4.so
%{_libdir}/samba/ldb/ldbsamba_extensions.so
%{_libdir}/samba/libdcerpc-samba4.so
%{_libdir}/samba/libdcerpc-pkt-auth-samba4.so
%{_libdir}/samba/libCHARSET3-samba4.so
%{_libdir}/samba/libMESSAGING-SEND-samba4.so
%{_libdir}/samba/libMESSAGING-samba4.so
@ -445,7 +463,6 @@ rm -rf %{buildroot}/*
%{_libdir}/samba/libclidns-samba4.so
%{_libdir}/samba/libcluster-samba4.so
%{_libdir}/samba/libcmdline-contexts-samba4.so
%{_libdir}/samba/libcmdline-credentials-samba4.so
%{_libdir}/samba/libcommon-auth-samba4.so
%{_libdir}/samba/libdbwrap-samba4.so
%{_libdir}/samba/libdcerpc-samba-samba4.so
@ -502,26 +519,9 @@ rm -rf %{buildroot}/*
%{_libdir}/samba/libtime-basic-samba4.so
%{_libdir}/samba/libtorture-samba4.so
%{_libdir}/samba/libtrusts-util-samba4.so
%{_libdir}/samba/libutil-cmdline-samba4.so
%{_libdir}/samba/libutil-reg-samba4.so
%{_libdir}/samba/libutil-setid-samba4.so
%{_libdir}/samba/libutil-tdb-samba4.so
%{_libdir}/samba/libasn1-samba4.so.*
%{_libdir}/samba/libgssapi-samba4.so.*
%{_libdir}/samba/libcom_err-samba4.so.*
%{_libdir}/samba/libkrb5-samba4.so.*
%{_libdir}/samba/libldb.so.*
%{_libdir}/samba/libtdb.so.*
%{_libdir}/samba/libtevent.so.*
%{_libdir}/samba/libtalloc.so.*
%{_libdir}/samba/libhcrypto-samba4.so.*
%{_libdir}/samba/libheimbase-samba4.so.*
%{_libdir}/samba/libhx509-samba4.so.*
%{_libdir}/samba/libroken-samba4.so.*
%{_libdir}/samba/libwinbind-client-samba4.so
%{_libdir}/samba/libwind-samba4.so.*
%{_libdir}/samba/libpopt-samba3-cmdline-samba4.so
%{_libdir}/samba/libpopt-samba3-samba4.so
%dir %{_libdir}/samba/ldb
%dir %{_libdir}/samba/pdb
%{_libdir}/samba/pdb/ldapsam.so
@ -533,6 +533,15 @@ rm -rf %{buildroot}/*
%files -n %{name}-devel
%defattr(-,root,root,-)
%{_includedir}/samba-4.0/libsmbclient.h
%{_includedir}/samba-4.0/core/*.h
%{_includedir}/samba-4.0/samba/version.h
%{_includedir}/samba-4.0/ndr.h
%{_includedir}/samba-4.0/util/discard.h
%{_includedir}/samba-4.0/util/data_blob.h
%{_includedir}/samba-4.0/util/time.h
%{_includedir}/samba-4.0/charset.h
%{_includedir}/samba-4.0/gen_ndr/*
%{_includedir}/samba-4.0/ndr/*
%{_libdir}/libsmbclient.so
%{_libdir}/libsmbdcerpc.so
%{_libdir}/libdcerpc-binding.so
@ -550,6 +559,9 @@ rm -rf %{buildroot}/*
%{_libdir}/libsmbconf.so
%{_libdir}/libsmbldap.so
%{_libdir}/libtevent-util.so
%{_libdir}/samba/libidmap-samba4.so
%{_libdir}/pkgconfig/ndr*.pc
%{_libdir}/pkgconfig/samba-util.pc
%{_libdir}/pkgconfig/smbclient.pc
%{_mandir}/man7/libsmbclient.7*
@ -566,6 +578,8 @@ rm -rf %{buildroot}/*
%{_libdir}/pkgconfig/wbclient.pc
%changelog
* Tue Feb 14 2023 Brennan Lamoreaux <blamoreaux@vmware.com> 4.17.5-1
- Upgrade version for SSSD addition. Include some additional needed libraries.
* Wed Feb 08 2023 Shreenidhi Shedi <sshedi@vmware.com> 4.14.4-9
- Bump version as a part of openldap upgrade
* Thu Dec 08 2022 Dweep Advani <dadvani@vmware.com> 4.14.4-8

View File

@ -0,0 +1,22 @@
From f77785279f87051f62dd4ee05f9578b1f8547caa Mon Sep 17 00:00:00 2001
From: Brennan Lamoreaux <blamoreaux@vmware.com>
Date: Tue, 4 Oct 2022 17:18:59 +0000
Subject: [PATCH] replace python with python3 in sss_obfuscate
---
src/tools/sss_obfuscate | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tools/sss_obfuscate b/src/tools/sss_obfuscate
index 5981e81..1665f8d 100644
--- a/src/tools/sss_obfuscate
+++ b/src/tools/sss_obfuscate
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
from __future__ import print_function
--
2.30.5

19
SPECS/sssd/sssd.conf Normal file
View File

@ -0,0 +1,19 @@
# TODO: Replace ad.example.com with your domain in all locations.
[sssd]
domains = ad.example.com
config_file_version = 2
debug_level=9
[domain/ad.example.com]
default_shell = /bin/bash
krb5_store_password_if_offline = True
cache_credentials = True
krb5_realm = AD.EXAMPLE.COM
id_provider = ad
fallback_homedir = /home/%u@%d
ad_domain = ad.example.com
use_fully_qualified_names = True
access_provider = ad
auth_provider = ad
debug_level=9

1086
SPECS/sssd/sssd.spec Normal file

File diff suppressed because it is too large Load Diff