adcli delete dies with free(): invalid pointer Edit
When running this command:
cat /tmp/adcli_join_password | sudo adcli delete-computer -U ad_admin_user --stdin-password --domain=EXAMPLE.NET $(hostname -f)
adcli dies with this:
free(): invalid pointer
and the computer delete fails.
adcli join
to the domain works great!
$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Version: 0.8.2-1
I would expect the computer to be deleted from AD, but instead get a free() error.
$ apt-cache show adcli
Package: adcli
Architecture: amd64
Version: 0.8.2-1
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Laurent Bigonville <bigon@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 218
Depends: libsasl2-modules-gssapi-mit, libc6 (>= 2.14), libgssapi-krb5-2 (>= 1.6.dfsg.2), libk5crypto3 (>= 1.7+dfsg), libkrb5-3 (>= 1.10+dfsg~alpha1), libldap-2.4-2 (>= 2.4.7)
Filename: pool/universe/a/adcli/adcli_0.8.2-1_amd64.deb
Size: 64928
MD5sum: e0930766f90c806a2e529c5d243877a0
SHA1: ca6b6518047fd51b8c840ee8c5e05a272270af0f
SHA256: 9eebf57d5eebc245b65fa61310e3f98970b661d0d8fbf15dde32db80bb205a23
Homepage: https://www.freedesktop.org/software/realmd/
Description-en: Tool for performing actions on an Active Directory domain
This tool allows the administrator to join the local machine to an Active
Directory (AD) domain. It's taking care of creating the computer account on the
domain and adjusting the kerberos (keytab) configuration.
.
It also allows the domain administrator to manage the users or the groups and
the computer accounts in Active Directory (AD) domains.
Description-md5: 3f005076e7a98a598f65545cbab3b448
Link to downstream bug: https://bugs.launchpad.net/ubuntu/+source/adcli/+bug/1821242
Edited by Joshua Kugler