Package adcli: Specfile

Name: adcli
Version: 0.9.2

Release: alt1
Summary: Active Directory enrollment
License: LGPLv2+
Group: Networking/Other

Url: http://cgit.freedesktop.org/realmd/adcli
Source: %name-%version.tar
Patch: %name-%version.patch

Requires: libsasl2-plugin-gssapi

BuildRequires: intltool
BuildRequires: /usr/bin/krb5-config
BuildRequires: libldap-devel libsasl2-devel
BuildRequires: libxslt
BuildRequires: xmlto

%description
adcli is a library and tool for joining an Active Directory domain using
standard LDAP and Kerberos calls.

%package doc
Summary: adcli documentation
Group: Development/Documentation
BuildArch: noarch

%description doc
adcli is a tool for joining an Active Directory domain using
standard LDAP and Kerberos calls. This package contains its
documentation.

%prep
%setup
%patch -p1

%build
%autoreconf
%configure --disable-static --disable-silent-rules --enable-strict
%make_build


%install
%makeinstall_std

%check
%make_build check

%files
%_sbindir/adcli
%doc AUTHORS COPYING ChangeLog NEWS README
%_man8dir/*

%files doc
%doc %_datadir/doc/adcli

%changelog
* Mon Oct 17 2022 Evgeny Sinelnikov <sin@altlinux.org> 0.9.2-alt1
- Add support LDAP add/mod operation to set/change password:
 + fix unable to join to active directory after KB5008380/CVE-2021-42287 with
   option '--ldap-passwd';
 + https://gitlab.freedesktop.org/realmd/adcli/-/issues/27
- Add support fall back to LDAPS if CLDAP ping was not successful
 + If the --use-ldaps option is used and there is no reply on the CLDAP 389/udp
   port adcli will try to send the request to the LDAPS port 636/tcp.
- Fix write SID before secret to Samba's db looks like 'net changesecretpw'
- Add passwd-user sub-command for (re)set a user password.
- Add dont-expire-password option for computer.

* Sat Oct 30 2021 Alexey Shabalin <shaba@altlinux.org> 0.9.1-alt2
- Upstream master snapshot.

* Sat Jun 26 2021 Alexey Shabalin <shaba@altlinux.org> 0.9.1-alt1
- 0.9.1

* Tue Mar 03 2020 Alexey Shabalin <shaba@altlinux.org> 0.9.0-alt2
- discovery fix

* Thu Jan 23 2020 Alexey Shabalin <shaba@altlinux.org> 0.9.0-alt1
- 0.9.0

* Sat Jun 22 2019 Igor Vlasenko <viy@altlinux.ru> 0.8.2-alt3
- NMU: remove rpm-build-ubt from BR:

* Sat Jun 15 2019 Igor Vlasenko <viy@altlinux.ru> 0.8.2-alt2
- NMU: remove %%ubt from release

* Sun Aug 06 2017 Alexey Shabalin <shaba@altlinux.ru> 0.8.2-alt1
- 0.8.2

* Mon Apr 25 2016 Alexey Shabalin <shaba@altlinux.ru> 0.8.1-alt1
- 0.8.1

* Wed Nov 11 2015 Alexey Shabalin <shaba@altlinux.ru> 0.7.6-alt1
- 0.7.6 (ALT #31470)

* Wed Apr 30 2014 Alexey Shabalin <shaba@altlinux.ru> 0.7.5-alt1
- Initial build package