https://launchpad.net/ubuntu/+source/aad-auth/0.2/+build/24348161 RUN: /usr/share/launchpad-buildd/bin/builder-prep Kernel version: Linux lcy02-amd64-101 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64 Buildd toolchain package versions: launchpad-buildd_221~588~ubuntu20.04.1 python3-lpbuildd_221~588~ubuntu20.04.1 sbuild_0.79.0-1ubuntu1 git-build-recipe_0.3.6 git_1:2.25.1-1ubuntu3.5 dpkg-dev_1.19.7ubuntu3.2 python3-debian_0.1.36ubuntu1. Syncing the system clock with the buildd NTP service... 9 Sep 10:34:42 ntpdate[1822]: adjust time server 10.131.248.1 offset 0.000067 sec RUN: /usr/share/launchpad-buildd/bin/in-target unpack-chroot --backend=chroot --series=kinetic --arch=amd64 PACKAGEBUILD-24348161 --image-type chroot /home/buildd/filecache-default/93056656ffca866e6c2a454f453b424a388b800f Creating target for build PACKAGEBUILD-24348161 RUN: /usr/share/launchpad-buildd/bin/in-target mount-chroot --backend=chroot --series=kinetic --arch=amd64 PACKAGEBUILD-24348161 Starting target for build PACKAGEBUILD-24348161 RUN: /usr/share/launchpad-buildd/bin/in-target override-sources-list --backend=chroot --series=kinetic --arch=amd64 PACKAGEBUILD-24348161 'deb http://ftpmaster.internal/ubuntu kinetic main universe' 'deb http://ftpmaster.internal/ubuntu kinetic-security main universe' 'deb http://ftpmaster.internal/ubuntu kinetic-updates main universe' 'deb http://ftpmaster.internal/ubuntu kinetic-proposed main universe' Overriding sources.list in build-PACKAGEBUILD-24348161 RUN: /usr/share/launchpad-buildd/bin/in-target update-debian-chroot --backend=chroot --series=kinetic --arch=amd64 PACKAGEBUILD-24348161 Updating target for build PACKAGEBUILD-24348161 Get:1 http://ftpmaster.internal/ubuntu kinetic InRelease [267 kB] Get:2 http://ftpmaster.internal/ubuntu kinetic-security InRelease [90.7 kB] Get:3 http://ftpmaster.internal/ubuntu kinetic-updates InRelease [90.7 kB] Get:4 http://ftpmaster.internal/ubuntu kinetic-proposed InRelease [118 kB] Get:5 http://ftpmaster.internal/ubuntu kinetic/main amd64 Packages [1394 kB] Get:6 http://ftpmaster.internal/ubuntu kinetic/main Translation-en [511 kB] Get:7 http://ftpmaster.internal/ubuntu kinetic/universe amd64 Packages [14.1 MB] Get:8 http://ftpmaster.internal/ubuntu kinetic/universe Translation-en [5790 kB] Get:9 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 Packages [101 kB] Get:10 http://ftpmaster.internal/ubuntu kinetic-proposed/main Translation-en [30.9 kB] Get:11 http://ftpmaster.internal/ubuntu kinetic-proposed/universe amd64 Packages [233 kB] Get:12 http://ftpmaster.internal/ubuntu kinetic-proposed/universe Translation-en [83.7 kB] Fetched 22.8 MB in 2s (10.1 MB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... Calculating upgrade... The following packages will be upgraded: bash cpp-12 g++-12 gcc-12 gcc-12-base libasan8 libatomic1 libcc1-0 libgcc-12-dev libgcc-s1 libgomp1 libitm1 liblsan0 libquadmath0 libstdc++-12-dev libstdc++6 libsystemd-shared libsystemd0 libtsan2 libubsan1 libudev1 linux-libc-dev lto-disabled-list systemd systemd-sysv usrmerge 26 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 63.9 MB of archives. After this operation, 390 kB of additional disk space will be used. Get:1 http://ftpmaster.internal/ubuntu kinetic/main amd64 bash amd64 5.2~rc2-2ubuntu1 [800 kB] Get:2 http://ftpmaster.internal/ubuntu kinetic/main amd64 systemd-sysv amd64 251.4-1ubuntu4 [11.2 kB] Get:3 http://ftpmaster.internal/ubuntu kinetic/main amd64 systemd amd64 251.4-1ubuntu4 [2808 kB] Get:4 http://ftpmaster.internal/ubuntu kinetic/main amd64 libsystemd-shared amd64 251.4-1ubuntu4 [1696 kB] Get:5 http://ftpmaster.internal/ubuntu kinetic/main amd64 libsystemd0 amd64 251.4-1ubuntu4 [323 kB] Get:6 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libcc1-0 amd64 12.2.0-2ubuntu1 [46.4 kB] Get:7 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libgomp1 amd64 12.2.0-2ubuntu1 [125 kB] Get:8 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libitm1 amd64 12.2.0-2ubuntu1 [29.4 kB] Get:9 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libatomic1 amd64 12.2.0-2ubuntu1 [10.4 kB] Get:10 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libasan8 amd64 12.2.0-2ubuntu1 [2432 kB] Get:11 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 liblsan0 amd64 12.2.0-2ubuntu1 [1061 kB] Get:12 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libtsan2 amd64 12.2.0-2ubuntu1 [2455 kB] Get:13 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libubsan1 amd64 12.2.0-2ubuntu1 [969 kB] Get:14 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libquadmath0 amd64 12.2.0-2ubuntu1 [152 kB] Get:15 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 gcc-12-base amd64 12.2.0-2ubuntu1 [19.1 kB] Get:16 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libstdc++6 amd64 12.2.0-2ubuntu1 [678 kB] Get:17 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 g++-12 amd64 12.2.0-2ubuntu1 [12.0 MB] Get:18 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libstdc++-12-dev amd64 12.2.0-2ubuntu1 [2158 kB] Get:19 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libgcc-12-dev amd64 12.2.0-2ubuntu1 [2577 kB] Get:20 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 gcc-12 amd64 12.2.0-2ubuntu1 [21.4 MB] Get:21 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 cpp-12 amd64 12.2.0-2ubuntu1 [10.6 MB] Get:22 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libgcc-s1 amd64 12.2.0-2ubuntu1 [54.2 kB] Get:23 http://ftpmaster.internal/ubuntu kinetic/main amd64 libudev1 amd64 251.4-1ubuntu4 [79.5 kB] Get:24 http://ftpmaster.internal/ubuntu kinetic/main amd64 usrmerge all 29ubuntu2 [55.8 kB] Get:25 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 linux-libc-dev amd64 5.19.0-16.16 [1337 kB] Get:26 http://ftpmaster.internal/ubuntu kinetic/main amd64 lto-disabled-list all 35 [12.2 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 63.9 MB in 0s (160 MB/s) (Reading database ... 13569 files and directories currently installed.) Preparing to unpack .../bash_5.2~rc2-2ubuntu1_amd64.deb ... Unpacking bash (5.2~rc2-2ubuntu1) over (5.1-6ubuntu1) ... Setting up bash (5.2~rc2-2ubuntu1) ... update-alternatives: using /usr/share/man/man7/bash-builtins.7.gz to provide /usr/share/man/man7/builtins.7.gz (builtins.7.gz) in auto mode (Reading database ... 13570 files and directories currently installed.) Preparing to unpack .../systemd-sysv_251.4-1ubuntu4_amd64.deb ... Unpacking systemd-sysv (251.4-1ubuntu4) over (251.4-1ubuntu1) ... Preparing to unpack .../systemd_251.4-1ubuntu4_amd64.deb ... Unpacking systemd (251.4-1ubuntu4) over (251.4-1ubuntu1) ... Preparing to unpack .../libsystemd-shared_251.4-1ubuntu4_amd64.deb ... Unpacking libsystemd-shared:amd64 (251.4-1ubuntu4) over (251.4-1ubuntu1) ... Preparing to unpack .../libsystemd0_251.4-1ubuntu4_amd64.deb ... Unpacking libsystemd0:amd64 (251.4-1ubuntu4) over (251.4-1ubuntu1) ... Setting up libsystemd0:amd64 (251.4-1ubuntu4) ... (Reading database ... 13570 files and directories currently installed.) Preparing to unpack .../0-libcc1-0_12.2.0-2ubuntu1_amd64.deb ... Unpacking libcc1-0:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../1-libgomp1_12.2.0-2ubuntu1_amd64.deb ... Unpacking libgomp1:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../2-libitm1_12.2.0-2ubuntu1_amd64.deb ... Unpacking libitm1:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../3-libatomic1_12.2.0-2ubuntu1_amd64.deb ... Unpacking libatomic1:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../4-libasan8_12.2.0-2ubuntu1_amd64.deb ... Unpacking libasan8:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../5-liblsan0_12.2.0-2ubuntu1_amd64.deb ... Unpacking liblsan0:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../6-libtsan2_12.2.0-2ubuntu1_amd64.deb ... Unpacking libtsan2:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../7-libubsan1_12.2.0-2ubuntu1_amd64.deb ... Unpacking libubsan1:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../8-libquadmath0_12.2.0-2ubuntu1_amd64.deb ... Unpacking libquadmath0:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../9-gcc-12-base_12.2.0-2ubuntu1_amd64.deb ... Unpacking gcc-12-base:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Setting up gcc-12-base:amd64 (12.2.0-2ubuntu1) ... (Reading database ... 13570 files and directories currently installed.) Preparing to unpack .../libstdc++6_12.2.0-2ubuntu1_amd64.deb ... Unpacking libstdc++6:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Setting up libstdc++6:amd64 (12.2.0-2ubuntu1) ... (Reading database ... 13570 files and directories currently installed.) Preparing to unpack .../0-g++-12_12.2.0-2ubuntu1_amd64.deb ... Unpacking g++-12 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../1-libstdc++-12-dev_12.2.0-2ubuntu1_amd64.deb ... Unpacking libstdc++-12-dev:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../2-libgcc-12-dev_12.2.0-2ubuntu1_amd64.deb ... Unpacking libgcc-12-dev:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../3-gcc-12_12.2.0-2ubuntu1_amd64.deb ... Unpacking gcc-12 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../4-cpp-12_12.2.0-2ubuntu1_amd64.deb ... Unpacking cpp-12 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Preparing to unpack .../5-libgcc-s1_12.2.0-2ubuntu1_amd64.deb ... Unpacking libgcc-s1:amd64 (12.2.0-2ubuntu1) over (12.2.0-1ubuntu1) ... Setting up libgcc-s1:amd64 (12.2.0-2ubuntu1) ... (Reading database ... 13570 files and directories currently installed.) Preparing to unpack .../libudev1_251.4-1ubuntu4_amd64.deb ... Unpacking libudev1:amd64 (251.4-1ubuntu4) over (251.4-1ubuntu1) ... Setting up libudev1:amd64 (251.4-1ubuntu4) ... (Reading database ... 13570 files and directories currently installed.) Preparing to unpack .../usrmerge_29ubuntu2_all.deb ... Unpacking usrmerge (29ubuntu2) over (29ubuntu1) ... Preparing to unpack .../linux-libc-dev_5.19.0-16.16_amd64.deb ... Unpacking linux-libc-dev:amd64 (5.19.0-16.16) over (5.15.0-27.28) ... Preparing to unpack .../lto-disabled-list_35_all.deb ... Unpacking lto-disabled-list (35) over (33) ... Setting up lto-disabled-list (35) ... Setting up cpp-12 (12.2.0-2ubuntu1) ... Setting up linux-libc-dev:amd64 (5.19.0-16.16) ... Setting up libgomp1:amd64 (12.2.0-2ubuntu1) ... Setting up libquadmath0:amd64 (12.2.0-2ubuntu1) ... Setting up libatomic1:amd64 (12.2.0-2ubuntu1) ... Setting up libsystemd-shared:amd64 (251.4-1ubuntu4) ... Setting up usrmerge (29ubuntu2) ... Setting up libubsan1:amd64 (12.2.0-2ubuntu1) ... Setting up libasan8:amd64 (12.2.0-2ubuntu1) ... Setting up libtsan2:amd64 (12.2.0-2ubuntu1) ... Setting up libcc1-0:amd64 (12.2.0-2ubuntu1) ... Setting up liblsan0:amd64 (12.2.0-2ubuntu1) ... Setting up libitm1:amd64 (12.2.0-2ubuntu1) ... Setting up systemd (251.4-1ubuntu4) ... Initializing machine ID from random generator. Setting up libgcc-12-dev:amd64 (12.2.0-2ubuntu1) ... Setting up systemd-sysv (251.4-1ubuntu4) ... Setting up libstdc++-12-dev:amd64 (12.2.0-2ubuntu1) ... Setting up gcc-12 (12.2.0-2ubuntu1) ... Setting up g++-12 (12.2.0-2ubuntu1) ... Processing triggers for debianutils (5.7-0.3) ... Processing triggers for libc-bin (2.36-0ubuntu2) ... RUN: /usr/share/launchpad-buildd/bin/sbuild-package PACKAGEBUILD-24348161 amd64 kinetic-proposed -c chroot:build-PACKAGEBUILD-24348161 --arch=amd64 --dist=kinetic-proposed --nolog -A aad-auth_0.2.dsc Initiating build PACKAGEBUILD-24348161 with 4 jobs across 4 processor cores. Kernel reported to sbuild: 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 x86_64 sbuild (Debian sbuild) 0.79.0 (05 February 2020) on lcy02-amd64-101.buildd +==============================================================================+ | aad-auth 0.2 (amd64) Fri, 09 Sep 2022 10:34:53 +0000 | +==============================================================================+ Package: aad-auth Version: 0.2 Source Version: 0.2 Distribution: kinetic-proposed Machine Architecture: amd64 Host Architecture: amd64 Build Architecture: amd64 Build Type: binary I: NOTICE: Log filtering will replace 'home/buildd/build-PACKAGEBUILD-24348161/chroot-autobuild' with '<>' I: NOTICE: Log filtering will replace 'build/aad-auth-X1rVfF/resolver-xxi0S2' with '<>' +------------------------------------------------------------------------------+ | Fetch source files | +------------------------------------------------------------------------------+ Local sources ------------- aad-auth_0.2.dsc exists in .; copying to chroot I: NOTICE: Log filtering will replace 'build/aad-auth-X1rVfF/aad-auth-0.2' with '<>' I: NOTICE: Log filtering will replace 'build/aad-auth-X1rVfF' with '<>' +------------------------------------------------------------------------------+ | Install package build dependencies | +------------------------------------------------------------------------------+ Setup apt archive ----------------- Merged Build-Depends: debhelper-compat (= 13), dh-apport, dh-golang, golang-go (>= 2:1.18~), libpam0g-dev (>= 1.4), libc6-dev (>= 2.35), libglib2.0-dev (>= 2.72.1), pkg-config (>= 0.29.2), build-essential, fakeroot Filtered Build-Depends: debhelper-compat (= 13), dh-apport, dh-golang, golang-go (>= 2:1.18~), libpam0g-dev (>= 1.4), libc6-dev (>= 2.35), libglib2.0-dev (>= 2.72.1), pkg-config (>= 0.29.2), build-essential, fakeroot dpkg-deb: building package 'sbuild-build-depends-main-dummy' in '/<>/apt_archive/sbuild-build-depends-main-dummy.deb'. Ign:1 copy:/<>/apt_archive ./ InRelease Get:2 copy:/<>/apt_archive ./ Release [957 B] Ign:3 copy:/<>/apt_archive ./ Release.gpg Get:4 copy:/<>/apt_archive ./ Sources [443 B] Get:5 copy:/<>/apt_archive ./ Packages [530 B] Fetched 1930 B in 0s (0 B/s) Reading package lists... Reading package lists... Install main build dependencies (apt-based resolver) ---------------------------------------------------- Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following additional packages will be installed: autoconf automake autopoint autotools-dev bsdextrautils debhelper debugedit dh-apport dh-autoreconf dh-golang dh-strip-nondeterminism dwz file gettext gettext-base golang-1.19-go golang-1.19-src golang-go golang-src groff-base intltool-debian libarchive-zip-perl libblkid-dev libdebhelper-perl libdw1 libelf1 libexpat1 libffi-dev libfile-stripnondeterminism-perl libglib2.0-0 libglib2.0-bin libglib2.0-data libglib2.0-dev libglib2.0-dev-bin libicu71 libmagic-mgc libmagic1 libmount-dev libmpdec3 libpam0g-dev libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpipeline1 libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libselinux1-dev libsepol-dev libsub-override-perl libtool libuchardet0 libxml2 m4 man-db media-types pkg-config po-debconf python3 python3-distutils python3-lib2to3 python3-minimal python3.10 python3.10-minimal uuid-dev zlib1g-dev Suggested packages: autoconf-archive gnu-standards autoconf-doc dh-make gettext-doc libasprintf-dev libgettextpo-dev bzr | brz git mercurial subversion groff libgirepository1.0-dev libglib2.0-doc libgdk-pixbuf2.0-bin | libgdk-pixbuf2.0-dev libxml2-utils libtool-doc gfortran | fortran95-compiler gcj-jdk m4-doc apparmor less www-browser libmail-box-perl python3-doc python3-tk python3-venv python3.10-venv python3.10-doc binfmt-support Recommended packages: curl | wget | lynx libarchive-cpio-perl shared-mime-info xdg-user-dirs libltdl-dev libmail-sendmail-perl The following NEW packages will be installed: autoconf automake autopoint autotools-dev bsdextrautils debhelper debugedit dh-apport dh-autoreconf dh-golang dh-strip-nondeterminism dwz file gettext gettext-base golang-1.19-go golang-1.19-src golang-go golang-src groff-base intltool-debian libarchive-zip-perl libblkid-dev libdebhelper-perl libdw1 libelf1 libexpat1 libffi-dev libfile-stripnondeterminism-perl libglib2.0-0 libglib2.0-bin libglib2.0-data libglib2.0-dev libglib2.0-dev-bin libicu71 libmagic-mgc libmagic1 libmount-dev libmpdec3 libpam0g-dev libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix3 libpipeline1 libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libselinux1-dev libsepol-dev libsub-override-perl libtool libuchardet0 libxml2 m4 man-db media-types pkg-config po-debconf python3 python3-distutils python3-lib2to3 python3-minimal python3.10 python3.10-minimal sbuild-build-depends-main-dummy uuid-dev zlib1g-dev 0 upgraded, 68 newly installed, 0 to remove and 0 not upgraded. Need to get 116 MB of archives. After this operation, 578 MB of additional disk space will be used. Get:1 copy:/<>/apt_archive ./ sbuild-build-depends-main-dummy 0.invalid.0 [754 B] Get:2 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libpython3.10-minimal amd64 3.10.7-1 [803 kB] Get:3 http://ftpmaster.internal/ubuntu kinetic/main amd64 libexpat1 amd64 2.4.8-1 [90.6 kB] Get:4 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 python3.10-minimal amd64 3.10.7-1 [2115 kB] Get:5 http://ftpmaster.internal/ubuntu kinetic/main amd64 python3-minimal amd64 3.10.6-1 [24.1 kB] Get:6 http://ftpmaster.internal/ubuntu kinetic/main amd64 media-types all 8.0.0 [24.9 kB] Get:7 http://ftpmaster.internal/ubuntu kinetic/main amd64 libmpdec3 amd64 2.5.1-2build2 [86.8 kB] Get:8 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 libpython3.10-stdlib amd64 3.10.7-1 [1784 kB] Get:9 http://ftpmaster.internal/ubuntu kinetic-proposed/main amd64 python3.10 amd64 3.10.7-1 [497 kB] Get:10 http://ftpmaster.internal/ubuntu kinetic/main amd64 libpython3-stdlib amd64 3.10.6-1 [6848 B] Get:11 http://ftpmaster.internal/ubuntu kinetic/main amd64 python3 amd64 3.10.6-1 [22.3 kB] Get:12 http://ftpmaster.internal/ubuntu kinetic/main amd64 libelf1 amd64 0.187-2 [50.9 kB] Get:13 http://ftpmaster.internal/ubuntu kinetic/main amd64 libglib2.0-0 amd64 2.73.3-3 [1470 kB] Get:14 http://ftpmaster.internal/ubuntu kinetic/main amd64 libglib2.0-data all 2.73.3-3 [18.4 kB] Get:15 http://ftpmaster.internal/ubuntu kinetic/main amd64 libicu71 amd64 71.1-3 [10.6 MB] Get:16 http://ftpmaster.internal/ubuntu kinetic/main amd64 libxml2 amd64 2.9.14+dfsg-1 [756 kB] Get:17 http://ftpmaster.internal/ubuntu kinetic/main amd64 bsdextrautils amd64 2.38-4ubuntu1 [71.1 kB] Get:18 http://ftpmaster.internal/ubuntu kinetic/main amd64 libmagic-mgc amd64 1:5.41-4 [257 kB] Get:19 http://ftpmaster.internal/ubuntu kinetic/main amd64 libmagic1 amd64 1:5.41-4 [87.3 kB] Get:20 http://ftpmaster.internal/ubuntu kinetic/main amd64 file amd64 1:5.41-4 [21.5 kB] Get:21 http://ftpmaster.internal/ubuntu kinetic/main amd64 gettext-base amd64 0.21-8 [37.8 kB] Get:22 http://ftpmaster.internal/ubuntu kinetic/main amd64 libuchardet0 amd64 0.0.7-1build2 [76.9 kB] Get:23 http://ftpmaster.internal/ubuntu kinetic/main amd64 groff-base amd64 1.22.4-8build1 [955 kB] Get:24 http://ftpmaster.internal/ubuntu kinetic/main amd64 libpipeline1 amd64 1.5.6-2 [23.3 kB] Get:25 http://ftpmaster.internal/ubuntu kinetic/main amd64 man-db amd64 2.10.2-2 [1180 kB] Get:26 http://ftpmaster.internal/ubuntu kinetic/main amd64 m4 amd64 1.4.19-1 [244 kB] Get:27 http://ftpmaster.internal/ubuntu kinetic/main amd64 autoconf all 2.71-2 [338 kB] Get:28 http://ftpmaster.internal/ubuntu kinetic/main amd64 autotools-dev all 20220109.1 [44.9 kB] Get:29 http://ftpmaster.internal/ubuntu kinetic/main amd64 automake all 1:1.16.5-1.3 [558 kB] Get:30 http://ftpmaster.internal/ubuntu kinetic/main amd64 autopoint all 0.21-8 [421 kB] Get:31 http://ftpmaster.internal/ubuntu kinetic/main amd64 libdebhelper-perl all 13.9.1ubuntu1 [66.4 kB] Get:32 http://ftpmaster.internal/ubuntu kinetic/main amd64 libtool all 2.4.7-4 [166 kB] Get:33 http://ftpmaster.internal/ubuntu kinetic/main amd64 dh-autoreconf all 20 [16.1 kB] Get:34 http://ftpmaster.internal/ubuntu kinetic/main amd64 libarchive-zip-perl all 1.68-1 [90.2 kB] Get:35 http://ftpmaster.internal/ubuntu kinetic/main amd64 libsub-override-perl all 0.09-3 [9756 B] Get:36 http://ftpmaster.internal/ubuntu kinetic/main amd64 libfile-stripnondeterminism-perl all 1.13.0-1 [18.1 kB] Get:37 http://ftpmaster.internal/ubuntu kinetic/main amd64 dh-strip-nondeterminism all 1.13.0-1 [5344 B] Get:38 http://ftpmaster.internal/ubuntu kinetic/main amd64 libdw1 amd64 0.187-2 [247 kB] Get:39 http://ftpmaster.internal/ubuntu kinetic/main amd64 debugedit amd64 1:5.0-5 [46.1 kB] Get:40 http://ftpmaster.internal/ubuntu kinetic/main amd64 dwz amd64 0.14-1build2 [105 kB] Get:41 http://ftpmaster.internal/ubuntu kinetic/main amd64 gettext amd64 0.21-8 [867 kB] Get:42 http://ftpmaster.internal/ubuntu kinetic/main amd64 intltool-debian all 0.35.0+20060710.5 [24.9 kB] Get:43 http://ftpmaster.internal/ubuntu kinetic/main amd64 po-debconf all 1.0.21+nmu1 [233 kB] Get:44 http://ftpmaster.internal/ubuntu kinetic/main amd64 debhelper all 13.9.1ubuntu1 [939 kB] Get:45 http://ftpmaster.internal/ubuntu kinetic/universe amd64 dh-apport all 2.23.0-0ubuntu1 [7074 B] Get:46 http://ftpmaster.internal/ubuntu kinetic/main amd64 golang-1.19-src all 1.19-1ubuntu2 [19.2 MB] Get:47 http://ftpmaster.internal/ubuntu kinetic/main amd64 golang-1.19-go amd64 1.19-1ubuntu2 [66.9 MB] Get:48 http://ftpmaster.internal/ubuntu kinetic/main amd64 golang-src all 2:1.19~1 [4466 B] Get:49 http://ftpmaster.internal/ubuntu kinetic/main amd64 golang-go amd64 2:1.19~1 [43.3 kB] Get:50 http://ftpmaster.internal/ubuntu kinetic/main amd64 libglib2.0-bin amd64 2.73.3-3 [93.2 kB] Get:51 http://ftpmaster.internal/ubuntu kinetic/main amd64 libffi-dev amd64 3.4.2-4 [63.7 kB] Get:52 http://ftpmaster.internal/ubuntu kinetic/main amd64 python3-lib2to3 all 3.10.6-1 [77.5 kB] Get:53 http://ftpmaster.internal/ubuntu kinetic/main amd64 python3-distutils all 3.10.6-1 [139 kB] Get:54 http://ftpmaster.internal/ubuntu kinetic/main amd64 libglib2.0-dev-bin amd64 2.73.3-3 [128 kB] Get:55 http://ftpmaster.internal/ubuntu kinetic/main amd64 uuid-dev amd64 2.38-4ubuntu1 [32.5 kB] Get:56 http://ftpmaster.internal/ubuntu kinetic/main amd64 libblkid-dev amd64 2.38-4ubuntu1 [188 kB] Get:57 http://ftpmaster.internal/ubuntu kinetic/main amd64 libsepol-dev amd64 3.4-2 [377 kB] Get:58 http://ftpmaster.internal/ubuntu kinetic/main amd64 libpcre2-16-0 amd64 10.40-1ubuntu1 [210 kB] Get:59 http://ftpmaster.internal/ubuntu kinetic/main amd64 libpcre2-32-0 amd64 10.40-1ubuntu1 [197 kB] Get:60 http://ftpmaster.internal/ubuntu kinetic/main amd64 libpcre2-posix3 amd64 10.40-1ubuntu1 [6146 B] Get:61 http://ftpmaster.internal/ubuntu kinetic/main amd64 libpcre2-dev amd64 10.40-1ubuntu1 [744 kB] Get:62 http://ftpmaster.internal/ubuntu kinetic/main amd64 libselinux1-dev amd64 3.4-1 [163 kB] Get:63 http://ftpmaster.internal/ubuntu kinetic/main amd64 libmount-dev amd64 2.38-4ubuntu1 [14.7 kB] Get:64 http://ftpmaster.internal/ubuntu kinetic/main amd64 pkg-config amd64 0.29.2-1ubuntu3 [48.2 kB] Get:65 http://ftpmaster.internal/ubuntu kinetic/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-4.1ubuntu1 [164 kB] Get:66 http://ftpmaster.internal/ubuntu kinetic/main amd64 libglib2.0-dev amd64 2.73.3-3 [1763 kB] Get:67 http://ftpmaster.internal/ubuntu kinetic/main amd64 libpam0g-dev amd64 1.5.2-2ubuntu1 [112 kB] Get:68 http://ftpmaster.internal/ubuntu kinetic/main amd64 dh-golang all 1.58 [22.1 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 116 MB in 1s (165 MB/s) Selecting previously unselected package libpython3.10-minimal:amd64. (Reading database ... 13583 files and directories currently installed.) Preparing to unpack .../libpython3.10-minimal_3.10.7-1_amd64.deb ... Unpacking libpython3.10-minimal:amd64 (3.10.7-1) ... Selecting previously unselected package libexpat1:amd64. Preparing to unpack .../libexpat1_2.4.8-1_amd64.deb ... Unpacking libexpat1:amd64 (2.4.8-1) ... Selecting previously unselected package python3.10-minimal. Preparing to unpack .../python3.10-minimal_3.10.7-1_amd64.deb ... Unpacking python3.10-minimal (3.10.7-1) ... Setting up libpython3.10-minimal:amd64 (3.10.7-1) ... Setting up libexpat1:amd64 (2.4.8-1) ... Setting up python3.10-minimal (3.10.7-1) ... Selecting previously unselected package python3-minimal. (Reading database ... 13885 files and directories currently installed.) Preparing to unpack .../0-python3-minimal_3.10.6-1_amd64.deb ... Unpacking python3-minimal (3.10.6-1) ... Selecting previously unselected package media-types. Preparing to unpack .../1-media-types_8.0.0_all.deb ... Unpacking media-types (8.0.0) ... Selecting previously unselected package libmpdec3:amd64. Preparing to unpack .../2-libmpdec3_2.5.1-2build2_amd64.deb ... Unpacking libmpdec3:amd64 (2.5.1-2build2) ... Selecting previously unselected package libpython3.10-stdlib:amd64. Preparing to unpack .../3-libpython3.10-stdlib_3.10.7-1_amd64.deb ... Unpacking libpython3.10-stdlib:amd64 (3.10.7-1) ... Selecting previously unselected package python3.10. Preparing to unpack .../4-python3.10_3.10.7-1_amd64.deb ... Unpacking python3.10 (3.10.7-1) ... Selecting previously unselected package libpython3-stdlib:amd64. Preparing to unpack .../5-libpython3-stdlib_3.10.6-1_amd64.deb ... Unpacking libpython3-stdlib:amd64 (3.10.6-1) ... Setting up python3-minimal (3.10.6-1) ... Selecting previously unselected package python3. (Reading database ... 14286 files and directories currently installed.) Preparing to unpack .../00-python3_3.10.6-1_amd64.deb ... Unpacking python3 (3.10.6-1) ... Selecting previously unselected package libelf1:amd64. Preparing to unpack .../01-libelf1_0.187-2_amd64.deb ... Unpacking libelf1:amd64 (0.187-2) ... Selecting previously unselected package libglib2.0-0:amd64. Preparing to unpack .../02-libglib2.0-0_2.73.3-3_amd64.deb ... Unpacking libglib2.0-0:amd64 (2.73.3-3) ... Selecting previously unselected package libglib2.0-data. Preparing to unpack .../03-libglib2.0-data_2.73.3-3_all.deb ... Unpacking libglib2.0-data (2.73.3-3) ... Selecting previously unselected package libicu71:amd64. Preparing to unpack .../04-libicu71_71.1-3_amd64.deb ... Unpacking libicu71:amd64 (71.1-3) ... Selecting previously unselected package libxml2:amd64. Preparing to unpack .../05-libxml2_2.9.14+dfsg-1_amd64.deb ... Unpacking libxml2:amd64 (2.9.14+dfsg-1) ... Selecting previously unselected package bsdextrautils. Preparing to unpack .../06-bsdextrautils_2.38-4ubuntu1_amd64.deb ... Unpacking bsdextrautils (2.38-4ubuntu1) ... Selecting previously unselected package libmagic-mgc. Preparing to unpack .../07-libmagic-mgc_1%3a5.41-4_amd64.deb ... Unpacking libmagic-mgc (1:5.41-4) ... Selecting previously unselected package libmagic1:amd64. Preparing to unpack .../08-libmagic1_1%3a5.41-4_amd64.deb ... Unpacking libmagic1:amd64 (1:5.41-4) ... Selecting previously unselected package file. Preparing to unpack .../09-file_1%3a5.41-4_amd64.deb ... Unpacking file (1:5.41-4) ... Selecting previously unselected package gettext-base. Preparing to unpack .../10-gettext-base_0.21-8_amd64.deb ... Unpacking gettext-base (0.21-8) ... Selecting previously unselected package libuchardet0:amd64. Preparing to unpack .../11-libuchardet0_0.0.7-1build2_amd64.deb ... Unpacking libuchardet0:amd64 (0.0.7-1build2) ... Selecting previously unselected package groff-base. Preparing to unpack .../12-groff-base_1.22.4-8build1_amd64.deb ... Unpacking groff-base (1.22.4-8build1) ... Selecting previously unselected package libpipeline1:amd64. Preparing to unpack .../13-libpipeline1_1.5.6-2_amd64.deb ... Unpacking libpipeline1:amd64 (1.5.6-2) ... Selecting previously unselected package man-db. Preparing to unpack .../14-man-db_2.10.2-2_amd64.deb ... Unpacking man-db (2.10.2-2) ... Selecting previously unselected package m4. Preparing to unpack .../15-m4_1.4.19-1_amd64.deb ... Unpacking m4 (1.4.19-1) ... Selecting previously unselected package autoconf. Preparing to unpack .../16-autoconf_2.71-2_all.deb ... Unpacking autoconf (2.71-2) ... Selecting previously unselected package autotools-dev. Preparing to unpack .../17-autotools-dev_20220109.1_all.deb ... Unpacking autotools-dev (20220109.1) ... Selecting previously unselected package automake. Preparing to unpack .../18-automake_1%3a1.16.5-1.3_all.deb ... Unpacking automake (1:1.16.5-1.3) ... Selecting previously unselected package autopoint. Preparing to unpack .../19-autopoint_0.21-8_all.deb ... Unpacking autopoint (0.21-8) ... Selecting previously unselected package libdebhelper-perl. Preparing to unpack .../20-libdebhelper-perl_13.9.1ubuntu1_all.deb ... Unpacking libdebhelper-perl (13.9.1ubuntu1) ... Selecting previously unselected package libtool. Preparing to unpack .../21-libtool_2.4.7-4_all.deb ... Unpacking libtool (2.4.7-4) ... Selecting previously unselected package dh-autoreconf. Preparing to unpack .../22-dh-autoreconf_20_all.deb ... Unpacking dh-autoreconf (20) ... Selecting previously unselected package libarchive-zip-perl. Preparing to unpack .../23-libarchive-zip-perl_1.68-1_all.deb ... Unpacking libarchive-zip-perl (1.68-1) ... Selecting previously unselected package libsub-override-perl. Preparing to unpack .../24-libsub-override-perl_0.09-3_all.deb ... Unpacking libsub-override-perl (0.09-3) ... Selecting previously unselected package libfile-stripnondeterminism-perl. Preparing to unpack .../25-libfile-stripnondeterminism-perl_1.13.0-1_all.deb ... Unpacking libfile-stripnondeterminism-perl (1.13.0-1) ... Selecting previously unselected package dh-strip-nondeterminism. Preparing to unpack .../26-dh-strip-nondeterminism_1.13.0-1_all.deb ... Unpacking dh-strip-nondeterminism (1.13.0-1) ... Selecting previously unselected package libdw1:amd64. Preparing to unpack .../27-libdw1_0.187-2_amd64.deb ... Unpacking libdw1:amd64 (0.187-2) ... Selecting previously unselected package debugedit. Preparing to unpack .../28-debugedit_1%3a5.0-5_amd64.deb ... Unpacking debugedit (1:5.0-5) ... Selecting previously unselected package dwz. Preparing to unpack .../29-dwz_0.14-1build2_amd64.deb ... Unpacking dwz (0.14-1build2) ... Selecting previously unselected package gettext. Preparing to unpack .../30-gettext_0.21-8_amd64.deb ... Unpacking gettext (0.21-8) ... Selecting previously unselected package intltool-debian. Preparing to unpack .../31-intltool-debian_0.35.0+20060710.5_all.deb ... Unpacking intltool-debian (0.35.0+20060710.5) ... Selecting previously unselected package po-debconf. Preparing to unpack .../32-po-debconf_1.0.21+nmu1_all.deb ... Unpacking po-debconf (1.0.21+nmu1) ... Selecting previously unselected package debhelper. Preparing to unpack .../33-debhelper_13.9.1ubuntu1_all.deb ... Unpacking debhelper (13.9.1ubuntu1) ... Selecting previously unselected package dh-apport. Preparing to unpack .../34-dh-apport_2.23.0-0ubuntu1_all.deb ... Unpacking dh-apport (2.23.0-0ubuntu1) ... Selecting previously unselected package golang-1.19-src. Preparing to unpack .../35-golang-1.19-src_1.19-1ubuntu2_all.deb ... Unpacking golang-1.19-src (1.19-1ubuntu2) ... Selecting previously unselected package golang-1.19-go. Preparing to unpack .../36-golang-1.19-go_1.19-1ubuntu2_amd64.deb ... Unpacking golang-1.19-go (1.19-1ubuntu2) ... Selecting previously unselected package golang-src. Preparing to unpack .../37-golang-src_2%3a1.19~1_all.deb ... Unpacking golang-src (2:1.19~1) ... Selecting previously unselected package golang-go:amd64. Preparing to unpack .../38-golang-go_2%3a1.19~1_amd64.deb ... Unpacking golang-go:amd64 (2:1.19~1) ... Selecting previously unselected package libglib2.0-bin. Preparing to unpack .../39-libglib2.0-bin_2.73.3-3_amd64.deb ... Unpacking libglib2.0-bin (2.73.3-3) ... Selecting previously unselected package libffi-dev:amd64. Preparing to unpack .../40-libffi-dev_3.4.2-4_amd64.deb ... Unpacking libffi-dev:amd64 (3.4.2-4) ... Selecting previously unselected package python3-lib2to3. Preparing to unpack .../41-python3-lib2to3_3.10.6-1_all.deb ... Unpacking python3-lib2to3 (3.10.6-1) ... Selecting previously unselected package python3-distutils. Preparing to unpack .../42-python3-distutils_3.10.6-1_all.deb ... Unpacking python3-distutils (3.10.6-1) ... Selecting previously unselected package libglib2.0-dev-bin. Preparing to unpack .../43-libglib2.0-dev-bin_2.73.3-3_amd64.deb ... Unpacking libglib2.0-dev-bin (2.73.3-3) ... Selecting previously unselected package uuid-dev:amd64. Preparing to unpack .../44-uuid-dev_2.38-4ubuntu1_amd64.deb ... Unpacking uuid-dev:amd64 (2.38-4ubuntu1) ... Selecting previously unselected package libblkid-dev:amd64. Preparing to unpack .../45-libblkid-dev_2.38-4ubuntu1_amd64.deb ... Unpacking libblkid-dev:amd64 (2.38-4ubuntu1) ... Selecting previously unselected package libsepol-dev:amd64. Preparing to unpack .../46-libsepol-dev_3.4-2_amd64.deb ... Unpacking libsepol-dev:amd64 (3.4-2) ... Selecting previously unselected package libpcre2-16-0:amd64. Preparing to unpack .../47-libpcre2-16-0_10.40-1ubuntu1_amd64.deb ... Unpacking libpcre2-16-0:amd64 (10.40-1ubuntu1) ... Selecting previously unselected package libpcre2-32-0:amd64. Preparing to unpack .../48-libpcre2-32-0_10.40-1ubuntu1_amd64.deb ... Unpacking libpcre2-32-0:amd64 (10.40-1ubuntu1) ... Selecting previously unselected package libpcre2-posix3:amd64. Preparing to unpack .../49-libpcre2-posix3_10.40-1ubuntu1_amd64.deb ... Unpacking libpcre2-posix3:amd64 (10.40-1ubuntu1) ... Selecting previously unselected package libpcre2-dev:amd64. Preparing to unpack .../50-libpcre2-dev_10.40-1ubuntu1_amd64.deb ... Unpacking libpcre2-dev:amd64 (10.40-1ubuntu1) ... Selecting previously unselected package libselinux1-dev:amd64. Preparing to unpack .../51-libselinux1-dev_3.4-1_amd64.deb ... Unpacking libselinux1-dev:amd64 (3.4-1) ... Selecting previously unselected package libmount-dev:amd64. Preparing to unpack .../52-libmount-dev_2.38-4ubuntu1_amd64.deb ... Unpacking libmount-dev:amd64 (2.38-4ubuntu1) ... Selecting previously unselected package pkg-config. Preparing to unpack .../53-pkg-config_0.29.2-1ubuntu3_amd64.deb ... Unpacking pkg-config (0.29.2-1ubuntu3) ... Selecting previously unselected package zlib1g-dev:amd64. Preparing to unpack .../54-zlib1g-dev_1%3a1.2.11.dfsg-4.1ubuntu1_amd64.deb ... Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-4.1ubuntu1) ... Selecting previously unselected package libglib2.0-dev:amd64. Preparing to unpack .../55-libglib2.0-dev_2.73.3-3_amd64.deb ... Unpacking libglib2.0-dev:amd64 (2.73.3-3) ... Selecting previously unselected package libpam0g-dev:amd64. Preparing to unpack .../56-libpam0g-dev_1.5.2-2ubuntu1_amd64.deb ... Unpacking libpam0g-dev:amd64 (1.5.2-2ubuntu1) ... Selecting previously unselected package dh-golang. Preparing to unpack .../57-dh-golang_1.58_all.deb ... Unpacking dh-golang (1.58) ... Selecting previously unselected package sbuild-build-depends-main-dummy. Preparing to unpack .../58-sbuild-build-depends-main-dummy_0.invalid.0_amd64.deb ... Unpacking sbuild-build-depends-main-dummy (0.invalid.0) ... Setting up media-types (8.0.0) ... Setting up libpipeline1:amd64 (1.5.6-2) ... Setting up libicu71:amd64 (71.1-3) ... Setting up bsdextrautils (2.38-4ubuntu1) ... Setting up libpam0g-dev:amd64 (1.5.2-2ubuntu1) ... Setting up libmagic-mgc (1:5.41-4) ... Setting up libarchive-zip-perl (1.68-1) ... Setting up libglib2.0-0:amd64 (2.73.3-3) ... No schema files found: doing nothing. Setting up libdebhelper-perl (13.9.1ubuntu1) ... Setting up libmagic1:amd64 (1:5.41-4) ... Setting up gettext-base (0.21-8) ... Setting up golang-1.19-src (1.19-1ubuntu2) ... Setting up m4 (1.4.19-1) ... Setting up file (1:5.41-4) ... Setting up libffi-dev:amd64 (3.4.2-4) ... Setting up dh-apport (2.23.0-0ubuntu1) ... Setting up libpcre2-16-0:amd64 (10.40-1ubuntu1) ... Setting up autotools-dev (20220109.1) ... Setting up libpcre2-32-0:amd64 (10.40-1ubuntu1) ... Setting up libglib2.0-data (2.73.3-3) ... Setting up uuid-dev:amd64 (2.38-4ubuntu1) ... Setting up autopoint (0.21-8) ... Setting up pkg-config (0.29.2-1ubuntu3) ... Setting up libsepol-dev:amd64 (3.4-2) ... Setting up autoconf (2.71-2) ... Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-4.1ubuntu1) ... Setting up libpcre2-posix3:amd64 (10.40-1ubuntu1) ... Setting up libuchardet0:amd64 (0.0.7-1build2) ... Setting up libmpdec3:amd64 (2.5.1-2build2) ... Setting up libsub-override-perl (0.09-3) ... Setting up golang-src (2:1.19~1) ... Setting up libelf1:amd64 (0.187-2) ... Setting up libxml2:amd64 (2.9.14+dfsg-1) ... Setting up golang-1.19-go (1.19-1ubuntu2) ... Setting up automake (1:1.16.5-1.3) ... update-alternatives: using /usr/bin/automake-1.16 to provide /usr/bin/automake (automake) in auto mode Setting up libfile-stripnondeterminism-perl (1.13.0-1) ... Setting up libblkid-dev:amd64 (2.38-4ubuntu1) ... Setting up libdw1:amd64 (0.187-2) ... Setting up gettext (0.21-8) ... Setting up libpcre2-dev:amd64 (10.40-1ubuntu1) ... Setting up libtool (2.4.7-4) ... Setting up golang-go:amd64 (2:1.19~1) ... Setting up libselinux1-dev:amd64 (3.4-1) ... Setting up libglib2.0-bin (2.73.3-3) ... Setting up intltool-debian (0.35.0+20060710.5) ... Setting up libpython3.10-stdlib:amd64 (3.10.7-1) ... Setting up dh-autoreconf (20) ... Setting up dh-strip-nondeterminism (1.13.0-1) ... Setting up dwz (0.14-1build2) ... Setting up groff-base (1.22.4-8build1) ... Setting up debugedit (1:5.0-5) ... Setting up libmount-dev:amd64 (2.38-4ubuntu1) ... Setting up libpython3-stdlib:amd64 (3.10.6-1) ... Setting up python3.10 (3.10.7-1) ... Setting up po-debconf (1.0.21+nmu1) ... Setting up python3 (3.10.6-1) ... Setting up man-db (2.10.2-2) ... Not building database; man-db/auto-update is not 'true'. Created symlink /etc/systemd/system/timers.target.wants/man-db.timer → /lib/systemd/system/man-db.timer. Setting up python3-lib2to3 (3.10.6-1) ... Setting up python3-distutils (3.10.6-1) ... Setting up libglib2.0-dev-bin (2.73.3-3) ... Setting up debhelper (13.9.1ubuntu1) ... Setting up libglib2.0-dev:amd64 (2.73.3-3) ... Setting up dh-golang (1.58) ... Setting up sbuild-build-depends-main-dummy (0.invalid.0) ... Processing triggers for libc-bin (2.36-0ubuntu2) ... +------------------------------------------------------------------------------+ | Check architectures | +------------------------------------------------------------------------------+ Arch check ok (amd64 included in any all) +------------------------------------------------------------------------------+ | Build environment | +------------------------------------------------------------------------------+ Kernel: Linux 5.4.0-125-generic #141-Ubuntu SMP Wed Aug 10 13:42:03 UTC 2022 amd64 (x86_64) Toolchain package versions: binutils_2.39-1ubuntu1 dpkg-dev_1.21.9ubuntu1 g++-12_12.2.0-2ubuntu1 gcc-12_12.2.0-2ubuntu1 libc6-dev_2.36-0ubuntu2 libstdc++-12-dev_12.2.0-2ubuntu1 libstdc++6_12.2.0-2ubuntu1 linux-libc-dev_5.19.0-16.16 Package versions: adduser_3.121ubuntu1 advancecomp_2.3-1 apt_2.5.2 autoconf_2.71-2 automake_1:1.16.5-1.3 autopoint_0.21-8 autotools-dev_20220109.1 base-files_12.2ubuntu2 base-passwd_3.6.0 bash_5.2~rc2-2ubuntu1 binutils_2.39-1ubuntu1 binutils-common_2.39-1ubuntu1 binutils-x86-64-linux-gnu_2.39-1ubuntu1 bsdextrautils_2.38-4ubuntu1 bsdutils_1:2.38-4ubuntu1 build-essential_12.9ubuntu3 bzip2_1.0.8-5build1 ca-certificates_20211016 coreutils_8.32-4.1ubuntu1 cpp_4:12.2.0-1ubuntu1 cpp-12_12.2.0-2ubuntu1 dash_0.5.11+git20210903+057cd650a4ed-8ubuntu1 debconf_1.5.79ubuntu1 debhelper_13.9.1ubuntu1 debianutils_5.7-0.3 debugedit_1:5.0-5 dh-apport_2.23.0-0ubuntu1 dh-autoreconf_20 dh-golang_1.58 dh-strip-nondeterminism_1.13.0-1 diffutils_1:3.8-1 dpkg_1.21.9ubuntu1 dpkg-dev_1.21.9ubuntu1 dwz_0.14-1build2 e2fsprogs_1.46.5-2ubuntu2 fakeroot_1.29-1ubuntu1 file_1:5.41-4 findutils_4.9.0-3ubuntu1 g++_4:12.2.0-1ubuntu1 g++-12_12.2.0-2ubuntu1 gcc_4:12.2.0-1ubuntu1 gcc-12_12.2.0-2ubuntu1 gcc-12-base_12.2.0-2ubuntu1 gettext_0.21-8 gettext-base_0.21-8 golang-1.19-go_1.19-1ubuntu2 golang-1.19-src_1.19-1ubuntu2 golang-go_2:1.19~1 golang-src_2:1.19~1 gpg_2.2.35-3ubuntu1 gpg-agent_2.2.35-3ubuntu1 gpgconf_2.2.35-3ubuntu1 gpgv_2.2.35-3ubuntu1 grep_3.7-1build1 groff-base_1.22.4-8build1 gzip_1.12-1ubuntu1 hostname_3.23ubuntu2 init_1.64 init-system-helpers_1.64 intltool-debian_0.35.0+20060710.5 libacl1_2.3.1-1 libapparmor1_3.0.7-1ubuntu1 libapt-pkg6.0_2.5.2 libarchive-zip-perl_1.68-1 libargon2-1_0~20171227-0.3 libasan8_12.2.0-2ubuntu1 libassuan0_2.5.5-4 libatomic1_12.2.0-2ubuntu1 libattr1_1:2.5.1-1build1 libaudit-common_1:3.0.7-1build1 libaudit1_1:3.0.7-1build1 libbinutils_2.39-1ubuntu1 libblkid-dev_2.38-4ubuntu1 libblkid1_2.38-4ubuntu1 libbz2-1.0_1.0.8-5build1 libc-bin_2.36-0ubuntu2 libc-dev-bin_2.36-0ubuntu2 libc6_2.36-0ubuntu2 libc6-dev_2.36-0ubuntu2 libcap-ng0_0.8.3-1 libcap2_1:2.44-1build3 libcc1-0_12.2.0-2ubuntu1 libcom-err2_1.46.5-2ubuntu2 libcrypt-dev_1:4.4.28-2 libcrypt1_1:4.4.28-2 libcryptsetup12_2:2.5.0-2ubuntu1 libctf-nobfd0_2.39-1ubuntu1 libctf0_2.39-1ubuntu1 libdb5.3_5.3.28+dfsg1-0.10 libdebconfclient0_0.264ubuntu1 libdebhelper-perl_13.9.1ubuntu1 libdevmapper1.02.1_2:1.02.185-1ubuntu1 libdpkg-perl_1.21.9ubuntu1 libdw1_0.187-2 libelf1_0.187-2 libexpat1_2.4.8-1 libext2fs2_1.46.5-2ubuntu2 libfakeroot_1.29-1ubuntu1 libfdisk1_2.38-4ubuntu1 libffi-dev_3.4.2-4 libffi8_3.4.2-4 libfile-stripnondeterminism-perl_1.13.0-1 libgcc-12-dev_12.2.0-2ubuntu1 libgcc-s1_12.2.0-2ubuntu1 libgcrypt20_1.10.1-2ubuntu1 libgdbm-compat4_1.23-1 libgdbm6_1.23-1 libglib2.0-0_2.73.3-3 libglib2.0-bin_2.73.3-3 libglib2.0-data_2.73.3-3 libglib2.0-dev_2.73.3-3 libglib2.0-dev-bin_2.73.3-3 libgmp10_2:6.2.1+dfsg1-1ubuntu2 libgnutls30_3.7.7-2ubuntu1 libgomp1_12.2.0-2ubuntu1 libgpg-error0_1.45-2 libgprofng0_2.39-1ubuntu1 libgssapi-krb5-2_1.20-1 libhogweed6_3.8.1-2 libicu71_71.1-3 libidn2-0_2.3.3-1 libip4tc2_1.8.7-1ubuntu6 libisl23_0.25-1 libitm1_12.2.0-2ubuntu1 libjson-c5_0.16-1 libk5crypto3_1.20-1 libkeyutils1_1.6.3-1 libkmod2_30+20220630-3ubuntu1 libkrb5-3_1.20-1 libkrb5support0_1.20-1 liblockfile-bin_1.17-1build2 liblockfile1_1.17-1build2 liblsan0_12.2.0-2ubuntu1 liblz4-1_1.9.3-2build2 liblzma5_5.2.5-2.1 libmagic-mgc_1:5.41-4 libmagic1_1:5.41-4 libmount-dev_2.38-4ubuntu1 libmount1_2.38-4ubuntu1 libmpc3_1.2.1-2build1 libmpdec3_2.5.1-2build2 libmpfr6_4.1.0-3build3 libncurses6_6.3+20220423-2 libncursesw6_6.3+20220423-2 libnettle8_3.8.1-2 libnpth0_1.6-3build2 libnsl-dev_1.3.0-2build2 libnsl2_1.3.0-2build2 libp11-kit0_0.24.1-1ubuntu1 libpam-modules_1.5.2-2ubuntu1 libpam-modules-bin_1.5.2-2ubuntu1 libpam-runtime_1.5.2-2ubuntu1 libpam0g_1.5.2-2ubuntu1 libpam0g-dev_1.5.2-2ubuntu1 libpcre2-16-0_10.40-1ubuntu1 libpcre2-32-0_10.40-1ubuntu1 libpcre2-8-0_10.40-1ubuntu1 libpcre2-dev_10.40-1ubuntu1 libpcre2-posix3_10.40-1ubuntu1 libpcre3_2:8.39-14 libperl5.34_5.34.0-5ubuntu1 libpipeline1_1.5.6-2 libpng16-16_1.6.37-5 libprocps8_2:3.3.17-7ubuntu1 libpython3-stdlib_3.10.6-1 libpython3.10-minimal_3.10.7-1 libpython3.10-stdlib_3.10.7-1 libquadmath0_12.2.0-2ubuntu1 libreadline8_8.2~rc2-2 libseccomp2_2.5.4-1ubuntu1 libselinux1_3.4-1 libselinux1-dev_3.4-1 libsemanage-common_3.4-1 libsemanage2_3.4-1 libsepol-dev_3.4-2 libsepol2_3.4-2 libsmartcols1_2.38-4ubuntu1 libsqlite3-0_3.39.2-1 libss2_1.46.5-2ubuntu2 libssl3_3.0.5-2ubuntu1 libstdc++-12-dev_12.2.0-2ubuntu1 libstdc++6_12.2.0-2ubuntu1 libsub-override-perl_0.09-3 libsystemd-shared_251.4-1ubuntu4 libsystemd0_251.4-1ubuntu4 libtasn1-6_4.18.0-4build1 libtinfo6_6.3+20220423-2 libtirpc-common_1.3.3+ds-1 libtirpc-dev_1.3.3+ds-1 libtirpc3_1.3.3+ds-1 libtool_2.4.7-4 libtsan2_12.2.0-2ubuntu1 libubsan1_12.2.0-2ubuntu1 libuchardet0_0.0.7-1build2 libudev1_251.4-1ubuntu4 libunistring2_1.0-1 libuuid1_2.38-4ubuntu1 libxml2_2.9.14+dfsg-1 libxxhash0_0.8.1-1 libzstd1_1.5.2+dfsg-1 linux-libc-dev_5.19.0-16.16 lockfile-progs_0.1.19build1 login_1:4.11.1+dfsg1-2ubuntu1 logsave_1.46.5-2ubuntu2 lsb-base_11.2ubuntu1 lto-disabled-list_35 m4_1.4.19-1 make_4.3-4.1build1 man-db_2.10.2-2 mawk_1.3.4.20200120-3.1 media-types_8.0.0 mount_2.38-4ubuntu1 ncurses-base_6.3+20220423-2 ncurses-bin_6.3+20220423-2 openssl_3.0.5-2ubuntu1 optipng_0.7.7-2build1 passwd_1:4.11.1+dfsg1-2ubuntu1 patch_2.7.6-7build2 perl_5.34.0-5ubuntu1 perl-base_5.34.0-5ubuntu1 perl-modules-5.34_5.34.0-5ubuntu1 pinentry-curses_1.2.0-2ubuntu1 pkg-config_0.29.2-1ubuntu3 pkgbinarymangler_149 po-debconf_1.0.21+nmu1 policyrcd-script-zg2_0.1-3.1 procps_2:3.3.17-7ubuntu1 python3_3.10.6-1 python3-distutils_3.10.6-1 python3-lib2to3_3.10.6-1 python3-minimal_3.10.6-1 python3.10_3.10.7-1 python3.10-minimal_3.10.7-1 readline-common_8.2~rc2-2 rpcsvc-proto_1.4.2-0ubuntu6 sbuild-build-depends-main-dummy_0.invalid.0 sed_4.8-1ubuntu2 sensible-utils_0.0.17 sgml-base_1.30 systemd_251.4-1ubuntu4 systemd-sysv_251.4-1ubuntu4 sysvinit-utils_3.04-1ubuntu1 tar_1.34+dfsg-1build3 tzdata_2022c-1ubuntu3 ubuntu-keyring_2021.03.26 usrmerge_29ubuntu2 util-linux_2.38-4ubuntu1 util-linux-extra_2.38-4ubuntu1 uuid-dev_2.38-4ubuntu1 xz-utils_5.2.5-2.1 zlib1g_1:1.2.11.dfsg-4.1ubuntu1 zlib1g-dev_1:1.2.11.dfsg-4.1ubuntu1 +------------------------------------------------------------------------------+ | Build | +------------------------------------------------------------------------------+ Unpack source ------------- -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 3.0 (native) Source: aad-auth Binary: libpam-aad, libnss-aad, aad-common Architecture: any all Version: 0.2 Maintainer: Ubuntu Developers Homepage: https://github.com/ubuntu/aad-auth Description: Azure Active Directory Authentication Azure Active Directory Authentication enables authentication of Azure Active Directory accounts on your local system. It dynamically creates local accounts, supporting additional features like offline connectivity. Standards-Version: 4.6.0.1 Testsuite: autopkgtest Testsuite-Triggers: @builddeps@ Build-Depends: debhelper-compat (= 13), dh-apport, dh-golang, golang-go (>= 2:1.18~), libpam0g-dev (>= 1.4), libc6-dev (>= 2.35), libglib2.0-dev (>= 2.72.1), pkg-config (>= 0.29.2) Package-List: aad-common deb admin optional arch=all libnss-aad deb admin optional arch=any libpam-aad deb admin optional arch=any Checksums-Sha1: 3dd1b4387e6f7471c866b5295ab3541e8ad97daa 2142520 aad-auth_0.2.tar.xz Checksums-Sha256: 1d16625f86536e90b686f993eb3dd2502a8d194d884838f038e5aeb3f5dc80e5 2142520 aad-auth_0.2.tar.xz Files: ebf87d66ace23f9f211903851e76ddb1 2142520 aad-auth_0.2.tar.xz Go-Import-Path: github.com/ubuntu/aad-auth -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQTdAO+PTSPDDXjsmQmYskqc5KwgjgUCYxsWgAAKCRCYskqc5Kwg jigQAJ9yOk15tVjXy++cqlBJL6sc6IxfUQCeL+bQrMzsL2Qye0YUzewBK706qIw= =0G9O -----END PGP SIGNATURE----- gpgv: Signature made Fri Sep 9 10:33:36 2022 UTC gpgv: using DSA key DD00EF8F4D23C30D78EC990998B24A9CE4AC208E gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify signature ./aad-auth_0.2.dsc dpkg-source: info: extracting aad-auth in /<> dpkg-source: info: unpacking aad-auth_0.2.tar.xz Check disk space ---------------- Sufficient free space for build User Environment ---------------- APT_CONFIG=/var/lib/sbuild/apt.conf DEB_BUILD_OPTIONS=parallel=4 HOME=/sbuild-nonexistent LANG=C.UTF-8 LC_ALL=C.UTF-8 LOGNAME=buildd PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games SCHROOT_ALIAS_NAME=build-PACKAGEBUILD-24348161 SCHROOT_CHROOT_NAME=build-PACKAGEBUILD-24348161 SCHROOT_COMMAND=env SCHROOT_GID=2501 SCHROOT_GROUP=buildd SCHROOT_SESSION_ID=build-PACKAGEBUILD-24348161 SCHROOT_UID=2001 SCHROOT_USER=buildd SHELL=/bin/sh TERM=unknown USER=buildd V=1 dpkg-buildpackage ----------------- Command: dpkg-buildpackage -us -uc -mLaunchpad Build Daemon -b -rfakeroot dpkg-buildpackage: info: source package aad-auth dpkg-buildpackage: info: source version 0.2 dpkg-buildpackage: info: source distribution kinetic dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean dh clean --buildsystem=golang --with=golang,apport debian/rules override_dh_auto_clean make[1]: Entering directory '/<>' dh_auto_clean # Create the vendor directory when building the source package [ -d vendor/ ] || go mod vendor make[1]: Leaving directory '/<>' dh_autoreconf_clean -O--buildsystem=golang dh_clean -O--buildsystem=golang debian/rules build dh build --buildsystem=golang --with=golang,apport dh_update_autotools_config -O--buildsystem=golang dh_autoreconf -O--buildsystem=golang dh_auto_configure -O--buildsystem=golang debian/rules override_dh_auto_build make[1]: Entering directory '/<>' # Build PAM library go build -ldflags='-extldflags -Wl,-soname,pam_aad.so' -buildmode=c-shared -o pam_aad.so ./pam # Build NSS library make -C nss/ make[2]: Entering directory '/<>/nss' rm -f libnss_aad.so.2 gcc -DSCRIPTPATH=\"/usr/libexec/aad-auth\" *.c -g -Wall -Wextra -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -lglib-2.0 -fPIC -shared -Wl,-soname,libnss_aad.so.2 -o libnss_aad.so.2 common.c: In function ‘run_aad_auth’: common.c:52:9: warning: format not a string literal and no format arguments [-Wformat-security] 52 | g_fprintf(stderr, err); | ^~~~~~~~~ common.c:60:9: warning: format not a string literal and no format arguments [-Wformat-security] 60 | g_fprintf(stderr, err); | ^~~~~~~~~ make[2]: Leaving directory '/<>/nss' # Build the CLI # DH_GOLANG_BUILDPKG=github.com/ubuntu/aad-auth/cmd/aad-auth dh_auto_build # Build the NSS helper binary DH_GOLANG_BUILDPKG=github.com/ubuntu/aad-auth/nss/aad-auth dh_auto_build cd obj-x86_64-linux-gnu && go install -trimpath -v -p 4 github.com/ubuntu/aad-auth/nss/aad-auth internal/unsafeheader internal/goarch internal/goexperiment internal/goos internal/cpu internal/abi runtime/internal/atomic runtime/internal/math runtime/internal/sys runtime/internal/syscall internal/race internal/bytealg sync/atomic internal/itoa encoding math/bits unicode/utf8 unicode math crypto/internal/subtle runtime crypto/subtle crypto/internal/boring/sig internal/nettrace internal/reflectlite sync math/rand internal/testlog runtime/cgo internal/singleflight errors sort internal/oserror strconv syscall io path strings reflect hash crypto bytes time internal/syscall/unix internal/syscall/execenv bufio regexp/syntax context internal/poll io/fs embed internal/fmtsort os encoding/binary crypto/internal/randutil regexp github.com/ubuntu/aad-auth/vendor/golang.org/x/crypto/blowfish vendor/golang.org/x/net/dns/dnsmessage crypto/cipher fmt io/ioutil path/filepath crypto/internal/boring encoding/base64 crypto/sha1 crypto/sha256 crypto/sha512 internal/godebug internal/intern flag database/sql/driver net/url github.com/ubuntu/aad-auth/vendor/github.com/snapcore/go-gettext/pluralforms database/sql log os/user math/big github.com/ubuntu/aad-auth/vendor/github.com/snapcore/go-gettext github.com/ubuntu/aad-auth/internal/i18n github.com/ubuntu/aad-auth/internal/logger net/netip github.com/ubuntu/aad-auth/vendor/github.com/mattn/go-sqlite3 net crypto/rand github.com/ubuntu/aad-auth/vendor/golang.org/x/crypto/bcrypt log/syslog github.com/ubuntu/aad-auth/internal/cache github.com/ubuntu/aad-auth/internal/nss github.com/ubuntu/aad-auth/internal/nss/group github.com/ubuntu/aad-auth/internal/nss/shadow github.com/ubuntu/aad-auth/internal/nss/passwd github.com/ubuntu/aad-auth/nss/aad-auth make[1]: Leaving directory '/<>' dh_auto_test -O--buildsystem=golang cd obj-x86_64-linux-gnu && go test -vet=off -v -p 4 github.com/ubuntu/aad-auth/internal/aad github.com/ubuntu/aad-auth/internal/cache github.com/ubuntu/aad-auth/internal/config github.com/ubuntu/aad-auth/internal/consts github.com/ubuntu/aad-auth/internal/generators github.com/ubuntu/aad-auth/internal/i18n github.com/ubuntu/aad-auth/internal/logger github.com/ubuntu/aad-auth/internal/nss github.com/ubuntu/aad-auth/internal/nss/group github.com/ubuntu/aad-auth/internal/nss/passwd github.com/ubuntu/aad-auth/internal/nss/shadow github.com/ubuntu/aad-auth/internal/pam github.com/ubuntu/aad-auth/internal/testutils github.com/ubuntu/aad-auth/internal/user github.com/ubuntu/aad-auth/nss/aad-auth github.com/ubuntu/aad-auth/pam === RUN TestAuthenticate === PAUSE TestAuthenticate === CONT TestAuthenticate === RUN TestAuthenticate/unreadable_server_response === PAUSE TestAuthenticate/unreadable_server_response === RUN TestAuthenticate/invalid_credentials === PAUSE TestAuthenticate/invalid_credentials === RUN TestAuthenticate/no_such_user === PAUSE TestAuthenticate/no_such_user === RUN TestAuthenticate/unknown_error_code === PAUSE TestAuthenticate/unknown_error_code === RUN TestAuthenticate/multiple_errors,_first_known_(here_mfa)_wins === PAUSE TestAuthenticate/multiple_errors,_first_known_(here_mfa)_wins === RUN TestAuthenticate/can't_connect_to_authority === PAUSE TestAuthenticate/can't_connect_to_authority === RUN TestAuthenticate/invalid_server_response === PAUSE TestAuthenticate/invalid_server_response === RUN TestAuthenticate/unknown_error_type === PAUSE TestAuthenticate/unknown_error_type === RUN TestAuthenticate/multiple_errors,_first_known_(here_invalid_credentials)_wins === PAUSE TestAuthenticate/multiple_errors,_first_known_(here_invalid_credentials)_wins === RUN TestAuthenticate/can_authenticate_with_password_only === PAUSE TestAuthenticate/can_authenticate_with_password_only === RUN TestAuthenticate/can_authenticate_even_with_mfa_required === PAUSE TestAuthenticate/can_authenticate_even_with_mfa_required === CONT TestAuthenticate/unreadable_server_response 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "unreadable server response" 2022/09/09 10:36:40 ERROR: Can't read server response: invalid READ === CONT TestAuthenticate/can_authenticate_with_password_only 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "success@domain.com" 2022/09/09 10:36:40 DEBUG: Authentication successful with user/password === CONT TestAuthenticate/no_such_user 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "no such user" === CONT TestAuthenticate/can't_connect_to_authority 2022/09/09 10:36:40 DEBUG: Got response: User doesn't exist === CONT TestAuthenticate/invalid_credentials 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "connection failed" for user "success@domain.com" === CONT TestAuthenticate/multiple_errors,_first_known_(here_mfa)_wins 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "multiple errors, first known is mfa" 2022/09/09 10:36:40 DEBUG: Authentication successful even if requiring MFA === CONT TestAuthenticate/multiple_errors,_first_known_(here_invalid_credentials)_wins 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "multiple errors, first known is invalid credential" 2022/09/09 10:36:40 DEBUG: Got response: Invalid credentials === CONT TestAuthenticate/unknown_error_code 2022/09/09 10:36:40 ERROR: Connection to authority failed: connection failed === CONT TestAuthenticate/can_authenticate_even_with_mfa_required 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "requireMFA@domain.com" 2022/09/09 10:36:40 DEBUG: Authentication successful even if requiring MFA === CONT TestAuthenticate/unknown_error_type 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "invalid credentials" 2022/09/09 10:36:40 DEBUG: Got response: Invalid credentials 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "unknown error code" 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "unknown error type" 2022/09/09 10:36:40 DEBUG: acquiring token failed: not a msal error === CONT TestAuthenticate/invalid_server_response 2022/09/09 10:36:40 DEBUG: Connecting to "https://login.microsoftonline.com/tenant id", with clientID "valid" for user "invalid server response" 2022/09/09 10:36:40 ERROR: Invalid server response, not a json object: invalid character 'N' looking for beginning of value 2022/09/09 10:36:40 ERROR: Unknown error code(s) from server: [4242] --- PASS: TestAuthenticate (0.00s) --- PASS: TestAuthenticate/unreadable_server_response (0.00s) --- PASS: TestAuthenticate/can_authenticate_with_password_only (0.00s) --- PASS: TestAuthenticate/no_such_user (0.00s) --- PASS: TestAuthenticate/multiple_errors,_first_known_(here_mfa)_wins (0.00s) --- PASS: TestAuthenticate/multiple_errors,_first_known_(here_invalid_credentials)_wins (0.00s) --- PASS: TestAuthenticate/can't_connect_to_authority (0.00s) --- PASS: TestAuthenticate/can_authenticate_even_with_mfa_required (0.00s) --- PASS: TestAuthenticate/invalid_credentials (0.00s) --- PASS: TestAuthenticate/unknown_error_type (0.00s) --- PASS: TestAuthenticate/invalid_server_response (0.00s) --- PASS: TestAuthenticate/unknown_error_code (0.00s) PASS ok github.com/ubuntu/aad-auth/internal/aad 0.004s === RUN TestParseHomeDir === PAUSE TestParseHomeDir === RUN TestNew === PAUSE TestNew === RUN TestCloseCacheRetention === PAUSE TestCloseCacheRetention === RUN TestCloseCacheDifferentOptions === PAUSE TestCloseCacheDifferentOptions === RUN TestCleanupDB === PAUSE TestCleanupDB === RUN TestUpdate === PAUSE TestUpdate === RUN TestCanAuthenticate === PAUSE TestCanAuthenticate === RUN TestGetGroupByName === PAUSE TestGetGroupByName === RUN TestGetGroupByGID === PAUSE TestGetGroupByGID === RUN TestNextGroupEntry === PAUSE TestNextGroupEntry === RUN TestNextGroupEntryNoGroup === PAUSE TestNextGroupEntryNoGroup === RUN TestNextGroupCloseBeforeIterationEnds === PAUSE TestNextGroupCloseBeforeIterationEnds === RUN TestGetUserByName === PAUSE TestGetUserByName === RUN TestGetUserByUID === PAUSE TestGetUserByUID === RUN TestNextPasswdEntry === PAUSE TestNextPasswdEntry === RUN TestNextPasswdEntryNoUser === PAUSE TestNextPasswdEntryNoUser === RUN TestNextPasswdCloseBeforeIterationEnds === PAUSE TestNextPasswdCloseBeforeIterationEnds === RUN TestGetShadowByName === PAUSE TestGetShadowByName === RUN TestNextShadowEntry === PAUSE TestNextShadowEntry === RUN TestNextShadowEntryNoShadow === PAUSE TestNextShadowEntryNoShadow === RUN TestNextShadowCloseBeforeIterationEnds === PAUSE TestNextShadowCloseBeforeIterationEnds === CONT TestParseHomeDir === RUN TestParseHomeDir/handle_%f_without_domain_attached === PAUSE TestParseHomeDir/handle_%f_without_domain_attached === RUN TestParseHomeDir/multiple_consecutive_patterns === PAUSE TestParseHomeDir/multiple_consecutive_patterns === RUN TestParseHomeDir/full_path_without_modifier_is_returned_as_is === PAUSE TestParseHomeDir/full_path_without_modifier_is_returned_as_is === RUN TestParseHomeDir/error_out_on_path_with_invalid_pattern === PAUSE TestParseHomeDir/error_out_on_path_with_invalid_pattern === RUN TestParseHomeDir/handle_%u === PAUSE TestParseHomeDir/handle_%u === RUN TestParseHomeDir/handle_%U === PAUSE TestParseHomeDir/handle_%U === RUN TestParseHomeDir/handle_%l === PAUSE TestParseHomeDir/handle_%l === RUN TestParseHomeDir/handle_%% === PAUSE TestParseHomeDir/handle_%% === RUN TestParseHomeDir/pattern_after_string === PAUSE TestParseHomeDir/pattern_after_string === RUN TestParseHomeDir/multiple_patterns_separated_with_characters === PAUSE TestParseHomeDir/multiple_patterns_separated_with_characters === RUN TestParseHomeDir/handle_%f === PAUSE TestParseHomeDir/handle_%f === RUN TestParseHomeDir/handle_%d === PAUSE TestParseHomeDir/handle_%d === CONT TestParseHomeDir/handle_%f_without_domain_attached 2022/09/09 10:37:16 DEBUG: Getting home directory for userWithoutDomain === CONT TestNextShadowCloseBeforeIterationEnds 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextShadowCloseBeforeIterationEnds3725166994/001 === CONT TestNextShadowEntryNoShadow === CONT TestCleanupDB === CONT TestCloseCacheDifferentOptions === RUN TestCleanupDB/clean_up_old_users === PAUSE TestCleanupDB/clean_up_old_users === RUN TestCleanupDB/do_not_clean_up_anyone === PAUSE TestCleanupDB/do_not_clean_up_anyone === CONT TestNextShadowEntry 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowCloseBeforeIterationEnds3725166994/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowCloseBeforeIterationEnds3725166994/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextShadowEntryNoShadow2881912763/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowEntryNoShadow2881912763/001/shadow.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowEntryNoShadow2881912763/001/passwd.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestCloseCacheDifferentOptions2976651542/001 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestNextShadowEntryNoShadow (0.04s) === CONT TestGetShadowByName === RUN TestGetShadowByName/get_existing_shadow_information_for_user_by_name_with_encrypted_password === PAUSE TestGetShadowByName/get_existing_shadow_information_for_user_by_name_with_encrypted_password === RUN TestGetShadowByName/have_access_to_encrypted_password_in_RW_too === PAUSE TestGetShadowByName/have_access_to_encrypted_password_in_RW_too === RUN TestGetShadowByName/error_on_non_existing_user_shadow === PAUSE TestGetShadowByName/error_on_non_existing_user_shadow === RUN TestGetShadowByName/error_on_no_access_to_shadow_file === PAUSE TestGetShadowByName/error_on_no_access_to_shadow_file === CONT TestNextPasswdCloseBeforeIterationEnds 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCloseCacheDifferentOptions2976651542/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCloseCacheDifferentOptions2976651542/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestCloseCacheDifferentOptions2976651542/002 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCloseCacheDifferentOptions2976651542/002/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCloseCacheDifferentOptions2976651542/002/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextShadowEntry1658055626/001 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestCloseCacheDifferentOptions (0.08s) === CONT TestNextPasswdEntryNoUser 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowEntry1658055626/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowEntry1658055626/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextPasswdCloseBeforeIterationEnds1087270311/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdCloseBeforeIterationEnds1087270311/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdCloseBeforeIterationEnds1087270311/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextShadowCloseBeforeIterationEnds3725166994/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowCloseBeforeIterationEnds3725166994/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowCloseBeforeIterationEnds3725166994/001/shadow.db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextPasswdEntryNoUser3517937098/001 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdEntryNoUser3517937098/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdEntryNoUser3517937098/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db --- PASS: TestNextPasswdEntryNoUser (0.07s) 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db === CONT TestNextPasswdEntry 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextShadowEntry1658055626/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowEntry1658055626/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextShadowEntry1658055626/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextPasswdEntry3901596374/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdEntry3901596374/001/shadow.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdEntry3901596374/001/passwd.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextPasswdCloseBeforeIterationEnds1087270311/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdCloseBeforeIterationEnds1087270311/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdCloseBeforeIterationEnds1087270311/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextPasswdEntry3901596374/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdEntry3901596374/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextPasswdEntry3901596374/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: request next passwd entry in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db --- PASS: TestNextPasswdEntry (0.05s) === CONT TestGetUserByUID === RUN TestGetUserByUID/error_on_non_existing_user === PAUSE TestGetUserByUID/error_on_non_existing_user === RUN TestGetUserByUID/get_existing_user_by_uid_with_encrypted_password === PAUSE TestGetUserByUID/get_existing_user_by_uid_with_encrypted_password === RUN TestGetUserByUID/have_access_to_encrypted_password_in_RW_too === PAUSE TestGetUserByUID/have_access_to_encrypted_password_in_RW_too === RUN TestGetUserByUID/no_encrypted_password === PAUSE TestGetUserByUID/no_encrypted_password === CONT TestGetUserByName === RUN TestGetUserByName/error_on_non_existing_user === PAUSE TestGetUserByName/error_on_non_existing_user === RUN TestGetUserByName/get_existing_user_by_name_with_encrypted_password === PAUSE TestGetUserByName/get_existing_user_by_name_with_encrypted_password === RUN TestGetUserByName/have_access_to_encrypted_password_in_RW_too === PAUSE TestGetUserByName/have_access_to_encrypted_password_in_RW_too === RUN TestGetUserByName/no_encrypted_password === PAUSE TestGetUserByName/no_encrypted_password === CONT TestNextGroupCloseBeforeIterationEnds 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextGroupCloseBeforeIterationEnds2942613836/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupCloseBeforeIterationEnds2942613836/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupCloseBeforeIterationEnds2942613836/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextGroupCloseBeforeIterationEnds2942613836/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupCloseBeforeIterationEnds2942613836/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupCloseBeforeIterationEnds2942613836/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestNextShadowCloseBeforeIterationEnds (0.25s) === CONT TestNextGroupEntryNoGroup 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextGroupEntryNoGroup975485648/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupEntryNoGroup975485648/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupEntryNoGroup975485648/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestNextGroupEntryNoGroup (0.02s) === CONT TestNextGroupEntry 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextGroupEntry2057823940/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupEntry2057823940/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupEntry2057823940/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestNextPasswdCloseBeforeIterationEnds (0.23s) === CONT TestGetGroupByGID === RUN TestGetGroupByGID/get_existing_group_by_gid === PAUSE TestGetGroupByGID/get_existing_group_by_gid === RUN TestGetGroupByGID/error_on_non_existing_group === PAUSE TestGetGroupByGID/error_on_non_existing_group === CONT TestGetGroupByName === RUN TestGetGroupByName/get_existing_group_by_name === PAUSE TestGetGroupByName/get_existing_group_by_name === RUN TestGetGroupByName/error_on_non_existing_group === PAUSE TestGetGroupByName/error_on_non_existing_group === CONT TestCanAuthenticate === RUN TestCanAuthenticate/handle_separately_multiple_users_and_password === PAUSE TestCanAuthenticate/handle_separately_multiple_users_and_password === RUN TestCanAuthenticate/can_authenticate_even_with_shadow_file_RO === PAUSE TestCanAuthenticate/can_authenticate_even_with_shadow_file_RO === RUN TestCanAuthenticate/error_on_wrong_password === PAUSE TestCanAuthenticate/error_on_wrong_password === RUN TestCanAuthenticate/error_on_wrong_user === PAUSE TestCanAuthenticate/error_on_wrong_user === RUN TestCanAuthenticate/error_on_checking_when_can’t_access_shadow_file === PAUSE TestCanAuthenticate/error_on_checking_when_can’t_access_shadow_file === RUN TestCanAuthenticate/do_not_let_too_old_unpurged_accounts_to_log_in_ === PAUSE TestCanAuthenticate/do_not_let_too_old_unpurged_accounts_to_log_in_ === RUN TestCanAuthenticate/can_authenticate_one_user === PAUSE TestCanAuthenticate/can_authenticate_one_user === CONT TestUpdate === RUN TestUpdate/we_don’t_create_about_the_user_case === PAUSE TestUpdate/we_don’t_create_about_the_user_case === RUN TestUpdate/update_an_existing_user_should_refresh_password_and_last_online_login === PAUSE TestUpdate/update_an_existing_user_should_refresh_password_and_last_online_login === RUN TestUpdate/collide_generated_uids === PAUSE TestUpdate/collide_generated_uids === RUN TestUpdate/can't_insert_with_shadow_unavailable_Only === PAUSE TestUpdate/can't_insert_with_shadow_unavailable_Only === RUN TestUpdate/can't_insert_with_shadow_Read_Only === PAUSE TestUpdate/can't_insert_with_shadow_Read_Only === RUN TestUpdate/can't_update_an_existing_user_failed_if_no_access_to_shadow === PAUSE TestUpdate/can't_update_an_existing_user_failed_if_no_access_to_shadow === RUN TestUpdate/insert_a_new_user === PAUSE TestUpdate/insert_a_new_user === RUN TestUpdate/insert_2_new_users === PAUSE TestUpdate/insert_2_new_users === CONT TestParseHomeDir/handle_%% 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestCloseCacheRetention 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestCloseCacheRetention278271157/001 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCloseCacheRetention278271157/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCloseCacheRetention278271157/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Reusing existing opened cache 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextGroupEntry2057823940/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupEntry2057823940/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextGroupEntry2057823940/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db --- PASS: TestNextGroupEntry (0.04s) === CONT TestNew === RUN TestNew/can't_open_existing_cache_with_wrong_passwd_permission === PAUSE TestNew/can't_open_existing_cache_with_wrong_passwd_permission === RUN TestNew/reuse_opened_cache === PAUSE TestNew/reuse_opened_cache === RUN TestNew/can't_create_DB_not_being_root_UID_or_GID === PAUSE TestNew/can't_create_DB_not_being_root_UID_or_GID === RUN TestNew/can't_create_a_cache_with_Shadow_group === PAUSE TestNew/can't_create_a_cache_with_Shadow_group === RUN TestNew/can_still_open_shadow_file_RO === PAUSE TestNew/can_still_open_shadow_file_RO === RUN TestNew/no_access_to_shadow_file_is_still_allowed === PAUSE TestNew/no_access_to_shadow_file_is_still_allowed === RUN TestNew/create_cache_with_all_permissions === PAUSE TestNew/create_cache_with_all_permissions === RUN TestNew/reuse_closed_cache_(files_exists) === PAUSE TestNew/reuse_closed_cache_(files_exists) === RUN TestNew/can't_open_existing_cache_with_wrong_shadow_permission === PAUSE TestNew/can't_open_existing_cache_with_wrong_shadow_permission === CONT TestParseHomeDir/handle_%d 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestParseHomeDir/handle_%f 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestParseHomeDir/multiple_patterns_separated_with_characters 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestParseHomeDir/pattern_after_string 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestParseHomeDir/handle_%u 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestParseHomeDir/handle_%l 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestParseHomeDir/handle_%U 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestParseHomeDir/full_path_without_modifier_is_returned_as_is 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestParseHomeDir/error_out_on_path_with_invalid_pattern 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com === CONT TestParseHomeDir/multiple_consecutive_patterns 2022/09/09 10:37:16 DEBUG: Getting home directory for user1@test.com --- PASS: TestParseHomeDir (0.00s) --- PASS: TestParseHomeDir/handle_%f_without_domain_attached (0.00s) --- PASS: TestParseHomeDir/handle_%% (0.00s) --- PASS: TestParseHomeDir/handle_%d (0.00s) --- PASS: TestParseHomeDir/handle_%f (0.00s) --- PASS: TestParseHomeDir/multiple_patterns_separated_with_characters (0.00s) --- PASS: TestParseHomeDir/pattern_after_string (0.00s) --- PASS: TestParseHomeDir/handle_%u (0.00s) --- PASS: TestParseHomeDir/handle_%l (0.00s) --- PASS: TestParseHomeDir/handle_%U (0.00s) --- PASS: TestParseHomeDir/full_path_without_modifier_is_returned_as_is (0.00s) --- PASS: TestParseHomeDir/error_out_on_path_with_invalid_pattern (0.00s) --- PASS: TestParseHomeDir/multiple_consecutive_patterns (0.00s) === CONT TestCleanupDB/clean_up_old_users 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestCleanupDBclean_up_old_users613232711/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCleanupDBclean_up_old_users613232711/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCleanupDBclean_up_old_users613232711/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestNextGroupCloseBeforeIterationEnds (0.14s) === CONT TestCleanupDB/do_not_clean_up_anyone 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestCleanupDBdo_not_clean_up_anyone877440684/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCleanupDBdo_not_clean_up_anyone877440684/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCleanupDBdo_not_clean_up_anyone877440684/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestCleanupDBclean_up_old_users613232711/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCleanupDBclean_up_old_users613232711/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCleanupDBclean_up_old_users613232711/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request next shadow entry in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestNextShadowEntry (0.36s) === CONT TestGetShadowByName/get_existing_shadow_information_for_user_by_name_with_encrypted_password 2022/09/09 10:37:16 DEBUG: getting user information from cache for "veryolduser@domain.com" 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: getting user information from cache for "middleolduser@domain.com" 2022/09/09 10:37:16 DEBUG: getting user information from cache for "futureuser@domain.com" 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetShadowByNameget_existing_shadow_information_for_user_by_name_with_encrypted_password1444114619/001 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request === CONT TestGetShadowByName/error_on_no_access_to_shadow_file 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameget_existing_shadow_information_for_user_by_name_with_encrypted_password1444114619/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameget_existing_shadow_information_for_user_by_name_with_encrypted_password1444114619/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 1 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetShadowByNameerror_on_no_access_to_shadow_file2896294266/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameerror_on_no_access_to_shadow_file2896294266/001/shadow.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameerror_on_no_access_to_shadow_file2896294266/001/passwd.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestCleanupDBdo_not_clean_up_anyone877440684/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCleanupDBdo_not_clean_up_anyone877440684/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCleanupDBdo_not_clean_up_anyone877440684/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Do not clean up database as revalidation period is set to 0 2022/09/09 10:37:16 DEBUG: getting user information from cache for "veryolduser@domain.com" 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: getting user information from cache for "middleolduser@domain.com" 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: getting user information from cache for "futureuser@domain.com" 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestCleanupDB (0.00s) --- PASS: TestCleanupDB/clean_up_old_users (0.07s) --- PASS: TestCleanupDB/do_not_clean_up_anyone (0.08s) === CONT TestGetShadowByName/error_on_non_existing_user_shadow 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetShadowByNameerror_on_non_existing_user_shadow3531080935/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameerror_on_non_existing_user_shadow3531080935/001/shadow.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameerror_on_non_existing_user_shadow3531080935/001/passwd.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 1 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetShadowByNameget_existing_shadow_information_for_user_by_name_with_encrypted_password1444114619/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameget_existing_shadow_information_for_user_by_name_with_encrypted_password1444114619/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameget_existing_shadow_information_for_user_by_name_with_encrypted_password1444114619/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 1 2022/09/09 10:37:16 DEBUG: getting shadow information from cache for "myuser@domain.com" 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetShadowByNameerror_on_no_access_to_shadow_file2896294266/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameerror_on_no_access_to_shadow_file2896294266/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameerror_on_no_access_to_shadow_file2896294266/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: getting shadow information from cache for "myuser@domain.com" 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db === CONT TestGetShadowByName/have_access_to_encrypted_password_in_RW_too 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetShadowByNamehave_access_to_encrypted_password_in_RW_too468156476/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNamehave_access_to_encrypted_password_in_RW_too468156476/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNamehave_access_to_encrypted_password_in_RW_too468156476/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetShadowByNameerror_on_non_existing_user_shadow3531080935/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameerror_on_non_existing_user_shadow3531080935/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNameerror_on_non_existing_user_shadow3531080935/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 1 2022/09/09 10:37:16 DEBUG: getting shadow information from cache for "notexist@domain.com" 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request === CONT TestGetUserByUID/error_on_non_existing_user 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByUIDerror_on_non_existing_user2187931829/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDerror_on_non_existing_user2187931829/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDerror_on_non_existing_user2187931829/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetShadowByNamehave_access_to_encrypted_password_in_RW_too468156476/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNamehave_access_to_encrypted_password_in_RW_too468156476/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetShadowByNamehave_access_to_encrypted_password_in_RW_too468156476/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: getting shadow information from cache for "myuser@domain.com" 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByUIDerror_on_non_existing_user2187931829/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDerror_on_non_existing_user2187931829/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDerror_on_non_existing_user2187931829/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: getting user information from cache for uid 4242 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request === CONT TestGetUserByName/error_on_non_existing_user 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByNameerror_on_non_existing_user2054558708/001 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request === CONT TestGetUserByUID/get_existing_user_by_uid_with_encrypted_password 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameerror_on_non_existing_user2054558708/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameerror_on_non_existing_user2054558708/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByUIDget_existing_user_by_uid_with_encrypted_password4265119053/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDget_existing_user_by_uid_with_encrypted_password4265119053/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDget_existing_user_by_uid_with_encrypted_password4265119053/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 1 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByNameerror_on_non_existing_user2054558708/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameerror_on_non_existing_user2054558708/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameerror_on_non_existing_user2054558708/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: getting user information from cache for "notexist@domain.com" 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db === CONT TestGetUserByUID/have_access_to_encrypted_password_in_RW_too 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByUIDhave_access_to_encrypted_password_in_RW_too936553803/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDhave_access_to_encrypted_password_in_RW_too936553803/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDhave_access_to_encrypted_password_in_RW_too936553803/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByUIDget_existing_user_by_uid_with_encrypted_password4265119053/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDget_existing_user_by_uid_with_encrypted_password4265119053/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDget_existing_user_by_uid_with_encrypted_password4265119053/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 1 2022/09/09 10:37:16 DEBUG: getting user information from cache for uid 1929326240 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db --- PASS: TestGetShadowByName (0.00s) --- PASS: TestGetShadowByName/error_on_no_access_to_shadow_file (0.08s) --- PASS: TestGetShadowByName/error_on_non_existing_user_shadow (0.06s) --- PASS: TestGetShadowByName/get_existing_shadow_information_for_user_by_name_with_encrypted_password (0.16s) --- PASS: TestGetShadowByName/have_access_to_encrypted_password_in_RW_too (0.14s) === CONT TestGetUserByUID/no_encrypted_password 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByUIDno_encrypted_password3934673674/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDno_encrypted_password3934673674/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDno_encrypted_password3934673674/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByUIDhave_access_to_encrypted_password_in_RW_too936553803/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDhave_access_to_encrypted_password_in_RW_too936553803/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDhave_access_to_encrypted_password_in_RW_too936553803/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: getting user information from cache for uid 1929326240 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByUIDno_encrypted_password3934673674/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDno_encrypted_password3934673674/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByUIDno_encrypted_password3934673674/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: getting user information from cache for uid 1929326240 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db === CONT TestGetUserByName/no_encrypted_password 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByNameno_encrypted_password3721119216/001 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request === CONT TestGetUserByName/have_access_to_encrypted_password_in_RW_too 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameno_encrypted_password3721119216/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameno_encrypted_password3721119216/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByNamehave_access_to_encrypted_password_in_RW_too2422848240/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNamehave_access_to_encrypted_password_in_RW_too2422848240/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNamehave_access_to_encrypted_password_in_RW_too2422848240/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByNameno_encrypted_password3721119216/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameno_encrypted_password3721119216/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameno_encrypted_password3721119216/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 0 2022/09/09 10:37:16 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db === CONT TestGetUserByName/get_existing_user_by_name_with_encrypted_password 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByNameget_existing_user_by_name_with_encrypted_password2596174743/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameget_existing_user_by_name_with_encrypted_password2596174743/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameget_existing_user_by_name_with_encrypted_password2596174743/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 1 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByNamehave_access_to_encrypted_password_in_RW_too2422848240/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNamehave_access_to_encrypted_password_in_RW_too2422848240/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNamehave_access_to_encrypted_password_in_RW_too2422848240/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db --- PASS: TestGetUserByUID (0.00s) --- PASS: TestGetUserByUID/error_on_non_existing_user (0.04s) --- PASS: TestGetUserByUID/no_encrypted_password (0.05s) --- PASS: TestGetUserByUID/get_existing_user_by_uid_with_encrypted_password (0.13s) --- PASS: TestGetUserByUID/have_access_to_encrypted_password_in_RW_too (0.15s) === CONT TestGetGroupByGID/get_existing_group_by_gid 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetGroupByGIDget_existing_group_by_gid3688074471/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByGIDget_existing_group_by_gid3688074471/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByGIDget_existing_group_by_gid3688074471/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetUserByNameget_existing_user_by_name_with_encrypted_password2596174743/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameget_existing_user_by_name_with_encrypted_password2596174743/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetUserByNameget_existing_user_by_name_with_encrypted_password2596174743/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 1 2022/09/09 10:37:16 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetGroupByGIDget_existing_group_by_gid3688074471/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByGIDget_existing_group_by_gid3688074471/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByGIDget_existing_group_by_gid3688074471/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: getting group information from cache for gid 1929326240 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request === CONT TestGetGroupByName/get_existing_group_by_name 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetGroupByNameget_existing_group_by_name1151642353/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByNameget_existing_group_by_name1151642353/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByNameget_existing_group_by_name1151642353/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db === CONT TestGetGroupByGID/error_on_non_existing_group 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetGroupByGIDerror_on_non_existing_group3911593141/001 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestGetUserByName (0.00s) --- PASS: TestGetUserByName/error_on_non_existing_user (0.04s) --- PASS: TestGetUserByName/no_encrypted_password (0.05s) --- PASS: TestGetUserByName/get_existing_user_by_name_with_encrypted_password (0.13s) --- PASS: TestGetUserByName/have_access_to_encrypted_password_in_RW_too (0.17s) === CONT TestCanAuthenticate/handle_separately_multiple_users_and_password 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByGIDerror_on_non_existing_group3911593141/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByGIDerror_on_non_existing_group3911593141/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestCanAuthenticatehandle_separately_multiple_users_and_password1910202961/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCanAuthenticatehandle_separately_multiple_users_and_password1910202961/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestCanAuthenticatehandle_separately_multiple_users_and_password1910202961/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetGroupByNameget_existing_group_by_name1151642353/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByNameget_existing_group_by_name1151642353/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByNameget_existing_group_by_name1151642353/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: getting group information from cache for "myuser@domain.com" 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetGroupByGIDerror_on_non_existing_group3911593141/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByGIDerror_on_non_existing_group3911593141/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByGIDerror_on_non_existing_group3911593141/001/shadow.db === CONT TestGetGroupByName/error_on_non_existing_group 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: getting group information from cache for gid 4242 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db --- PASS: TestGetGroupByGID (0.00s) --- PASS: TestGetGroupByGID/get_existing_group_by_gid (0.05s) --- PASS: TestGetGroupByGID/error_on_non_existing_group (0.06s) === CONT TestUpdate/we_don’t_create_about_the_user_case 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestGetGroupByNameerror_on_non_existing_group3921277316/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByNameerror_on_non_existing_group3921277316/001/shadow.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestGetGroupByNameerror_on_non_existing_group3921277316/001/passwd.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestUpdatewe_dont_create_about_the_user_case3361357136/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestUpdatewe_dont_create_about_the_user_case3361357136/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestUpdatewe_dont_create_about_the_user_case3361357136/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for "MyUser" 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: generate user id for user "MyUser" 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 INFO: user id for "MyUser" is 650373726 2022/09/09 10:37:17 DEBUG: Getting home directory for MyUser 2022/09/09 10:37:17 DEBUG: inserting in cache user "MyUser" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticatehandle_separately_multiple_users_and_password1910202961/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatehandle_separately_multiple_users_and_password1910202961/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatehandle_separately_multiple_users_and_password1910202961/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 INFO: try to authenticate "myuser@domain.com" from cache 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Last online login was: 2022-09-07 10:37:16 +0000 UTC. Current time: 2022-09-09 10:37:17.006872731 +0000 UTC m=+0.935167770. Revalidation needed every 90 days 2022/09/09 10:37:17 DEBUG: encrypt password for user "MyUser" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestGetGroupByNameerror_on_non_existing_group3921277316/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestGetGroupByNameerror_on_non_existing_group3921277316/001/shadow.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestGetGroupByNameerror_on_non_existing_group3921277316/001/passwd.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting group information from cache for "notexist@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestGetGroupByName (0.00s) --- PASS: TestGetGroupByName/get_existing_group_by_name (0.11s) --- PASS: TestGetGroupByName/error_on_non_existing_group (0.07s) 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db === CONT TestCanAuthenticate/can_authenticate_one_user 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticatecan_authenticate_one_user228615158/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatecan_authenticate_one_user228615158/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatecan_authenticate_one_user228615158/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticatecan_authenticate_one_user228615158/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatecan_authenticate_one_user228615158/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatecan_authenticate_one_user228615158/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 INFO: try to authenticate "myuser@domain.com" from cache 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Last online login was: 2022-09-07 10:37:17 +0000 UTC. Current time: 2022-09-09 10:37:17.067028141 +0000 UTC m=+0.995323180. Revalidation needed every 90 days 2022/09/09 10:37:17 DEBUG: updating from last online login information for user "MyUser" 2022/09/09 10:37:17 INFO: try to authenticate "otheruser@domain.com" from cache 2022/09/09 10:37:17 DEBUG: getting user information from cache for "otheruser@domain.com" 2022/09/09 10:37:17 DEBUG: Last online login was: 2022-09-07 10:37:16 +0000 UTC. Current time: 2022-09-09 10:37:17.088689664 +0000 UTC m=+1.016984703. Revalidation needed every 90 days 2022/09/09 10:37:17 DEBUG: getting user information from cache for "MyUser" 2022/09/09 10:37:17 DEBUG: Close database request === CONT TestCanAuthenticate/do_not_let_too_old_unpurged_accounts_to_log_in_ 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticatedo_not_let_too_old_unpurged_accounts_to_log_in_2746634609/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatedo_not_let_too_old_unpurged_accounts_to_log_in_2746634609/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatedo_not_let_too_old_unpurged_accounts_to_log_in_2746634609/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Do not clean up database as revalidation period is set to 0 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db === CONT TestCanAuthenticate/error_on_checking_when_can’t_access_shadow_file 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticateerror_on_checking_when_cant_access_shadow_file2193366099/001 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request === CONT TestCanAuthenticate/error_on_wrong_user 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_checking_when_cant_access_shadow_file2193366099/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_checking_when_cant_access_shadow_file2193366099/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 0 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticatedo_not_let_too_old_unpurged_accounts_to_log_in_2746634609/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatedo_not_let_too_old_unpurged_accounts_to_log_in_2746634609/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatedo_not_let_too_old_unpurged_accounts_to_log_in_2746634609/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Do not clean up database as revalidation period is set to 0 2022/09/09 10:37:17 INFO: try to authenticate "veryolduser@domain.com" from cache 2022/09/09 10:37:17 DEBUG: getting user information from cache for "veryolduser@domain.com" 2022/09/09 10:37:17 DEBUG: Last online login was: 1971-11-12 23:22:48 +0000 UTC. Current time: 2022-09-09 10:37:17.172593505 +0000 UTC m=+1.100888533. Revalidation needed every 0 days 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticateerror_on_wrong_user1608097300/001 === CONT TestCanAuthenticate/error_on_wrong_password 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_wrong_user1608097300/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_wrong_user1608097300/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticateerror_on_wrong_password965457950/001 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_wrong_password965457950/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_wrong_password965457950/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticateerror_on_checking_when_cant_access_shadow_file2193366099/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_checking_when_cant_access_shadow_file2193366099/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_checking_when_cant_access_shadow_file2193366099/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 0 2022/09/09 10:37:17 INFO: try to authenticate "myuser@domain.com" from cache 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db === CONT TestCanAuthenticate/can_authenticate_even_with_shadow_file_RO 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticatecan_authenticate_even_with_shadow_file_RO700643771/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatecan_authenticate_even_with_shadow_file_RO700643771/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatecan_authenticate_even_with_shadow_file_RO700643771/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 1 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticateerror_on_wrong_user1608097300/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_wrong_user1608097300/001/shadow.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_wrong_user1608097300/001/passwd.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 INFO: try to authenticate "does not exist user" from cache 2022/09/09 10:37:17 DEBUG: getting user information from cache for "does not exist user" 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db === CONT TestUpdate/can't_insert_with_shadow_Read_Only 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestUpdatecant_insert_with_shadow_Read_Only766628322/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecant_insert_with_shadow_Read_Only766628322/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecant_insert_with_shadow_Read_Only766628322/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 1 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticateerror_on_wrong_password965457950/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_wrong_password965457950/001/shadow.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticateerror_on_wrong_password965457950/001/passwd.db 2022/09/09 10:37:17 DEBUG: generate user id for user "myuser@domain.com" 2022/09/09 10:37:17 INFO: user id for "myuser@domain.com" is 1929326240 2022/09/09 10:37:17 DEBUG: Getting home directory for myuser@domain.com 2022/09/09 10:37:17 DEBUG: inserting in cache user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request === CONT TestUpdate/insert_2_new_users 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 INFO: try to authenticate "myuser@domain.com" from cache 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestUpdateinsert_2_new_users3042527005/001 2022/09/09 10:37:17 DEBUG: Last online login was: 2022-09-07 10:37:17 +0000 UTC. Current time: 2022-09-09 10:37:17.346948721 +0000 UTC m=+1.275243758. Revalidation needed every 90 days 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdateinsert_2_new_users3042527005/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdateinsert_2_new_users3042527005/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestCanAuthenticatecan_authenticate_even_with_shadow_file_RO700643771/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatecan_authenticate_even_with_shadow_file_RO700643771/001/passwd.db 2022/09/09 10:37:17 DEBUG: generate user id for user "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestCanAuthenticatecan_authenticate_even_with_shadow_file_RO700643771/001/shadow.db 2022/09/09 10:37:17 INFO: user id for "firstuser@domain.com" is 3233547936 2022/09/09 10:37:17 DEBUG: Getting home directory for firstuser@domain.com 2022/09/09 10:37:17 DEBUG: inserting in cache user "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: Shadow db mode: 1 2022/09/09 10:37:17 INFO: try to authenticate "myuser@domain.com" from cache 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Don't teardown cache as still in use by 1 2022/09/09 10:37:17 DEBUG: Last online login was: 2022-09-07 10:37:17 +0000 UTC. Current time: 2022-09-09 10:37:17.375362529 +0000 UTC m=+1.303657567. Revalidation needed every 90 days 2022/09/09 10:37:17 DEBUG: encrypt password for user "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db === CONT TestUpdate/insert_a_new_user 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestUpdateinsert_a_new_user3871579938/001 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestCanAuthenticate (0.00s) --- PASS: TestCanAuthenticate/can_authenticate_one_user (0.13s) --- PASS: TestCanAuthenticate/handle_separately_multiple_users_and_password (0.28s) --- PASS: TestCanAuthenticate/do_not_let_too_old_unpurged_accounts_to_log_in_ (0.07s) --- PASS: TestCanAuthenticate/error_on_checking_when_can’t_access_shadow_file (0.12s) --- PASS: TestCanAuthenticate/error_on_wrong_user (0.14s) --- PASS: TestCanAuthenticate/error_on_wrong_password (0.29s) --- PASS: TestCanAuthenticate/can_authenticate_even_with_shadow_file_RO (0.23s) === CONT TestUpdate/can't_update_an_existing_user_failed_if_no_access_to_shadow 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdateinsert_a_new_user3871579938/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdateinsert_a_new_user3871579938/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: generate user id for user "myuser@domain.com" 2022/09/09 10:37:17 INFO: user id for "myuser@domain.com" is 1929326240 2022/09/09 10:37:17 DEBUG: Getting home directory for myuser@domain.com 2022/09/09 10:37:17 DEBUG: inserting in cache user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestUpdatecant_update_an_existing_user_failed_if_no_access_to_shadow2533080407/001 2022/09/09 10:37:17 DEBUG: updating from last online login information for user "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: encrypt password for user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: getting user information from cache for "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: getting user information from cache for "seconduser@domain.com" 2022/09/09 10:37:17 DEBUG: generate user id for user "seconduser@domain.com" 2022/09/09 10:37:17 INFO: user id for "seconduser@domain.com" is 909690528 2022/09/09 10:37:17 DEBUG: Getting home directory for seconduser@domain.com 2022/09/09 10:37:17 DEBUG: inserting in cache user "seconduser@domain.com" 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecant_update_an_existing_user_failed_if_no_access_to_shadow2533080407/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecant_update_an_existing_user_failed_if_no_access_to_shadow2533080407/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: generate user id for user "myuser@domain.com" 2022/09/09 10:37:17 INFO: user id for "myuser@domain.com" is 1929326240 2022/09/09 10:37:17 DEBUG: Getting home directory for myuser@domain.com 2022/09/09 10:37:17 DEBUG: inserting in cache user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: encrypt password for user "seconduser@domain.com" 2022/09/09 10:37:17 DEBUG: encrypt password for user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: updating from last online login information for user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db === CONT TestUpdate/collide_generated_uids 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestUpdatecollide_generated_uids1558382591/001 2022/09/09 10:37:17 DEBUG: updating from last online login information for user "seconduser@domain.com" 2022/09/09 10:37:17 DEBUG: updating from last online login information for user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: getting user information from cache for "seconduser@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request === CONT TestUpdate/can't_insert_with_shadow_unavailable_Only 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecollide_generated_uids1558382591/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecollide_generated_uids1558382591/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: generate user id for user "firstuser@domain.com" 2022/09/09 10:37:17 INFO: user id for "firstuser@domain.com" is 3233547936 2022/09/09 10:37:17 DEBUG: Getting home directory for firstuser@domain.com 2022/09/09 10:37:17 DEBUG: inserting in cache user "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestUpdatecant_insert_with_shadow_unavailable_Only3186262694/001 2022/09/09 10:37:17 DEBUG: encrypt password for user "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecant_insert_with_shadow_unavailable_Only3186262694/001/shadow.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecant_insert_with_shadow_unavailable_Only3186262694/001/passwd.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 0 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: generate user id for user "myuser@domain.com" 2022/09/09 10:37:17 INFO: user id for "myuser@domain.com" is 1929326240 2022/09/09 10:37:17 DEBUG: Getting home directory for myuser@domain.com 2022/09/09 10:37:17 DEBUG: inserting in cache user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db === CONT TestUpdate/update_an_existing_user_should_refresh_password_and_last_online_login 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestUpdateupdate_an_existing_user_should_refresh_password_and_last_online_login1290392785/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdateupdate_an_existing_user_should_refresh_password_and_last_online_login1290392785/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdateupdate_an_existing_user_should_refresh_password_and_last_online_login1290392785/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: generate user id for user "myuser@domain.com" 2022/09/09 10:37:17 INFO: user id for "myuser@domain.com" is 1929326240 2022/09/09 10:37:17 DEBUG: Getting home directory for myuser@domain.com 2022/09/09 10:37:17 DEBUG: inserting in cache user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: encrypt password for user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: updating from last online login information for user "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: getting user information from cache for "firstuser@domain.com" 2022/09/09 10:37:17 DEBUG: getting user information from cache for "userfirst@domain.com" 2022/09/09 10:37:17 DEBUG: generate user id for user "userfirst@domain.com" 2022/09/09 10:37:17 INFO: user id for "userfirst@domain.com" is 3233547937 2022/09/09 10:37:17 DEBUG: Getting home directory for userfirst@domain.com 2022/09/09 10:37:17 DEBUG: inserting in cache user "userfirst@domain.com" 2022/09/09 10:37:17 DEBUG: encrypt password for user "userfirst@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestUpdatecant_update_an_existing_user_failed_if_no_access_to_shadow2533080407/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecant_update_an_existing_user_failed_if_no_access_to_shadow2533080407/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdatecant_update_an_existing_user_failed_if_no_access_to_shadow2533080407/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 0 2022/09/09 10:37:17 DEBUG: updating from last online login information for user "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: updating from last online login information for user "userfirst@domain.com" 2022/09/09 10:37:17 DEBUG: getting user information from cache for "userfirst@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request === CONT TestNew/can't_open_existing_cache_with_wrong_passwd_permission 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewcant_open_existing_cache_with_wrong_passwd_permission4088634854/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewcant_open_existing_cache_with_wrong_passwd_permission4088634854/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewcant_open_existing_cache_with_wrong_passwd_permission4088634854/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestUpdateupdate_an_existing_user_should_refresh_password_and_last_online_login1290392785/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdateupdate_an_existing_user_should_refresh_password_and_last_online_login1290392785/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestUpdateupdate_an_existing_user_should_refresh_password_and_last_online_login1290392785/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewcant_open_existing_cache_with_wrong_passwd_permission4088634854/001 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcant_open_existing_cache_with_wrong_passwd_permission4088634854/001/shadow.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcant_open_existing_cache_with_wrong_passwd_permission4088634854/001/passwd.db === CONT TestNew/no_access_to_shadow_file_is_still_allowed 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewno_access_to_shadow_file_is_still_allowed2591533085/001 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewno_access_to_shadow_file_is_still_allowed2591533085/001/shadow.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewno_access_to_shadow_file_is_still_allowed2591533085/001/passwd.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 0 2022/09/09 10:37:18 DEBUG: Close database request === CONT TestNew/can't_open_existing_cache_with_wrong_shadow_permission 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewcant_open_existing_cache_with_wrong_shadow_permission2551418958/001 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcant_open_existing_cache_with_wrong_shadow_permission2551418958/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcant_open_existing_cache_with_wrong_shadow_permission2551418958/001/shadow.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:18 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:18 DEBUG: request to close group iteration in db 2022/09/09 10:37:18 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewcant_open_existing_cache_with_wrong_shadow_permission2551418958/001 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcant_open_existing_cache_with_wrong_shadow_permission2551418958/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcant_open_existing_cache_with_wrong_shadow_permission2551418958/001/shadow.db === CONT TestNew/reuse_closed_cache_(files_exists) 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewreuse_closed_cache_(files_exists)3706361748/001 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewreuse_closed_cache_(files_exists)3706361748/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewreuse_closed_cache_(files_exists)3706361748/001/shadow.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:18 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:18 DEBUG: request to close group iteration in db 2022/09/09 10:37:18 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewreuse_closed_cache_(files_exists)3706361748/001 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewreuse_closed_cache_(files_exists)3706361748/001/shadow.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewreuse_closed_cache_(files_exists)3706361748/001/passwd.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: Close database request === CONT TestNew/create_cache_with_all_permissions 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewcreate_cache_with_all_permissions142525791/001 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcreate_cache_with_all_permissions142525791/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcreate_cache_with_all_permissions142525791/001/shadow.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:18 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:18 DEBUG: request to close group iteration in db 2022/09/09 10:37:18 DEBUG: request to close shadow iteration in db === CONT TestNew/can't_create_a_cache_with_Shadow_group 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewcant_create_a_cache_with_Shadow_group541361925/001 === CONT TestNew/can_still_open_shadow_file_RO 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewcan_still_open_shadow_file_RO2869626934/001 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcan_still_open_shadow_file_RO2869626934/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewcan_still_open_shadow_file_RO2869626934/001/shadow.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 1 2022/09/09 10:37:18 DEBUG: Close database request === CONT TestNew/can't_create_DB_not_being_root_UID_or_GID 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewcant_create_DB_not_being_root_UID_or_GID958799698/001 === CONT TestNew/reuse_opened_cache 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestNewreuse_opened_cache3863867226/001 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewreuse_opened_cache3863867226/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestNewreuse_opened_cache3863867226/001/shadow.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: Reusing existing opened cache 2022/09/09 10:37:18 DEBUG: Close database request --- PASS: TestNew (0.00s) --- PASS: TestNew/can't_open_existing_cache_with_wrong_passwd_permission (0.12s) --- PASS: TestNew/no_access_to_shadow_file_is_still_allowed (0.02s) --- PASS: TestNew/can't_open_existing_cache_with_wrong_shadow_permission (0.12s) --- PASS: TestNew/reuse_closed_cache_(files_exists) (0.13s) --- PASS: TestNew/create_cache_with_all_permissions (0.02s) --- PASS: TestNew/can't_create_a_cache_with_Shadow_group (0.02s) --- PASS: TestNew/can_still_open_shadow_file_RO (0.03s) --- PASS: TestNew/can't_create_DB_not_being_root_UID_or_GID (0.00s) --- PASS: TestNew/reuse_opened_cache (0.01s) 2022/09/09 10:37:18 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:18 DEBUG: encrypt password for user "myuser@domain.com" 2022/09/09 10:37:18 DEBUG: updating from last online login information for user "myuser@domain.com" 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:18 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:18 DEBUG: request to close group iteration in db 2022/09/09 10:37:18 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:18 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:18 DEBUG: encrypt password for user "myuser@domain.com" 2022/09/09 10:37:19 DEBUG: updating from last online login information for user "myuser@domain.com" 2022/09/09 10:37:19 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:19 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:19 DEBUG: request to close group iteration in db 2022/09/09 10:37:19 DEBUG: request to close shadow iteration in db --- PASS: TestUpdate (0.00s) --- PASS: TestUpdate/we_don’t_create_about_the_user_case (0.15s) --- PASS: TestUpdate/can't_insert_with_shadow_Read_Only (0.03s) --- PASS: TestUpdate/insert_a_new_user (0.21s) --- PASS: TestUpdate/insert_2_new_users (0.34s) --- PASS: TestUpdate/can't_insert_with_shadow_unavailable_Only (0.06s) --- PASS: TestUpdate/collide_generated_uids (0.24s) --- PASS: TestUpdate/can't_update_an_existing_user_failed_if_no_access_to_shadow (1.44s) --- PASS: TestUpdate/update_an_existing_user_should_refresh_password_and_last_online_login (1.32s) 2022/09/09 10:37:19 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:19 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:19 DEBUG: request to close group iteration in db 2022/09/09 10:37:19 DEBUG: request to close shadow iteration in db --- PASS: TestCloseCacheRetention (3.07s) PASS ok github.com/ubuntu/aad-auth/internal/cache 3.353s === RUN TestLoadDefaultHomeAndShell === PAUSE TestLoadDefaultHomeAndShell === RUN TestLoadConfig === PAUSE TestLoadConfig === CONT TestLoadDefaultHomeAndShell === RUN TestLoadDefaultHomeAndShell/file_with_only_dhome === PAUSE TestLoadDefaultHomeAndShell/file_with_only_dhome === RUN TestLoadDefaultHomeAndShell/file_with_only_dshell === PAUSE TestLoadDefaultHomeAndShell/file_with_only_dshell === RUN TestLoadDefaultHomeAndShell/file_with_no_values === PAUSE TestLoadDefaultHomeAndShell/file_with_no_values === RUN TestLoadDefaultHomeAndShell/file_does_not_exists_returns_empty_values === PAUSE TestLoadDefaultHomeAndShell/file_does_not_exists_returns_empty_values === RUN TestLoadDefaultHomeAndShell/empty_path_to_adduser.conf_returns_empty_values === PAUSE TestLoadDefaultHomeAndShell/empty_path_to_adduser.conf_returns_empty_values === RUN TestLoadDefaultHomeAndShell/file_with_both_home_and_shell === PAUSE TestLoadDefaultHomeAndShell/file_with_both_home_and_shell === CONT TestLoadDefaultHomeAndShell/file_with_only_dhome === CONT TestLoadConfig === RUN TestLoadConfig/aad.conf,_all_values,_only_in_domain === PAUSE TestLoadConfig/aad.conf,_all_values,_only_in_domain === RUN TestLoadConfig/add.conf_with_'shell'_only_in_domain === PAUSE TestLoadConfig/add.conf_with_'shell'_only_in_domain === RUN TestLoadConfig/aad.conf_missing_'app_id'_value === PAUSE TestLoadConfig/aad.conf_missing_'app_id'_value === RUN TestLoadConfig/aad.conf_with_'offline_credentials_expiration'_only_in_domain === PAUSE TestLoadConfig/aad.conf_with_'offline_credentials_expiration'_only_in_domain === RUN TestLoadConfig/aad.conf_with_'tenant_id'_only_in_domain === PAUSE TestLoadConfig/aad.conf_with_'tenant_id'_only_in_domain === RUN TestLoadConfig/aad.conf_with_invalid_'offline_credentials_expiration'_value === PAUSE TestLoadConfig/aad.conf_with_invalid_'offline_credentials_expiration'_value === RUN TestLoadConfig/aad.conf,_all_values,_no_domain === PAUSE TestLoadConfig/aad.conf,_all_values,_no_domain === RUN TestLoadConfig/aad.conf_with_missing_'homedirpattern'_and_'shell'_values_in_domain === PAUSE TestLoadConfig/aad.conf_with_missing_'homedirpattern'_and_'shell'_values_in_domain === RUN TestLoadConfig/aad.conf_with_missing_required_'app_id'_value_in_domain === PAUSE TestLoadConfig/aad.conf_with_missing_required_'app_id'_value_in_domain === RUN TestLoadConfig/aad.conf_with_'homedirpattern'_and_'shell'_only_in_domain === PAUSE TestLoadConfig/aad.conf_with_'homedirpattern'_and_'shell'_only_in_domain === RUN TestLoadConfig/aad.conf_with_missing_'homedir'_and_'shell'_values,_but_valid_adduser.conf === PAUSE TestLoadConfig/aad.conf_with_missing_'homedir'_and_'shell'_values,_but_valid_adduser.conf === RUN TestLoadConfig/aad.conf_does_not_exist === PAUSE TestLoadConfig/aad.conf_does_not_exist === RUN TestLoadConfig/aad.conf_with_missing_'offline_credentials_expiration'_value_in_domain === PAUSE TestLoadConfig/aad.conf_with_missing_'offline_credentials_expiration'_value_in_domain === RUN TestLoadConfig/aad.conf_with_missing_required_'tenant_id'_value_in_domain === PAUSE TestLoadConfig/aad.conf_with_missing_required_'tenant_id'_value_in_domain === RUN TestLoadConfig/aad.conf_with_missing_'offline_credentials_expiration' === PAUSE TestLoadConfig/aad.conf_with_missing_'offline_credentials_expiration' === RUN TestLoadConfig/aad.conf_with_missing_'homedirpattern' === PAUSE TestLoadConfig/aad.conf_with_missing_'homedirpattern' === RUN TestLoadConfig/aad.conf_with_missing_'homedirpattern'_and_'shell' === PAUSE TestLoadConfig/aad.conf_with_missing_'homedirpattern'_and_'shell' === RUN TestLoadConfig/aad.conf_with_'homedirpattern'_only_in_domain === PAUSE TestLoadConfig/aad.conf_with_'homedirpattern'_only_in_domain === RUN TestLoadConfig/aad.conf_with_missing_'shell' === PAUSE TestLoadConfig/aad.conf_with_missing_'shell' === RUN TestLoadConfig/aad.conf_with_'app_id'_only_in_domain === PAUSE TestLoadConfig/aad.conf_with_'app_id'_only_in_domain === RUN TestLoadConfig/aad.conf_missing_'tenant_id'_value === PAUSE TestLoadConfig/aad.conf_missing_'tenant_id'_value === RUN TestLoadConfig/aad.conf,_all_values,_with_domain === PAUSE TestLoadConfig/aad.conf,_all_values,_with_domain === RUN TestLoadConfig/aad.conf,_all_values,_mismatch_domain === PAUSE TestLoadConfig/aad.conf,_all_values,_mismatch_domain === RUN TestLoadConfig/aad.conf_with_missing_'shell'_value_in_domain === PAUSE TestLoadConfig/aad.conf_with_missing_'shell'_value_in_domain === RUN TestLoadConfig/aad.conf_with_missing_'homedirpattern'_value_in_domain === PAUSE TestLoadConfig/aad.conf_with_missing_'homedirpattern'_value_in_domain === RUN TestLoadConfig/aad.conf_with_missing_'homedir'_and_'shell'_values_and_wrong_adduser.conf === PAUSE TestLoadConfig/aad.conf_with_missing_'homedir'_and_'shell'_values_and_wrong_adduser.conf === RUN TestLoadConfig/aad.conf_with_invalid_'offline_credentials_expiration'_value_in_domain === PAUSE TestLoadConfig/aad.conf_with_invalid_'offline_credentials_expiration'_value_in_domain === CONT TestLoadConfig/aad.conf,_all_values,_only_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-all_values_only_in_domain.conf === CONT TestLoadDefaultHomeAndShell/file_with_both_home_and_shell === CONT TestLoadDefaultHomeAndShell/empty_path_to_adduser.conf_returns_empty_values === CONT TestLoadDefaultHomeAndShell/file_does_not_exists_returns_empty_values 2022/09/09 10:37:15 DEBUG: Could not open testdata/TestLoadDefaultHomeAndShell/foo/doesnotexists.conf, using defaults for homedir and shell: open testdata/TestLoadDefaultHomeAndShell/foo/doesnotexists.conf: no such file or directory === CONT TestLoadDefaultHomeAndShell/file_with_no_values === CONT TestLoadDefaultHomeAndShell/file_with_only_dshell --- PASS: TestLoadDefaultHomeAndShell (0.00s) --- PASS: TestLoadDefaultHomeAndShell/file_with_only_dhome (0.00s) --- PASS: TestLoadDefaultHomeAndShell/file_with_both_home_and_shell (0.00s) --- PASS: TestLoadDefaultHomeAndShell/empty_path_to_adduser.conf_returns_empty_values (0.00s) --- PASS: TestLoadDefaultHomeAndShell/file_does_not_exists_returns_empty_values (0.00s) --- PASS: TestLoadDefaultHomeAndShell/file_with_no_values (0.00s) --- PASS: TestLoadDefaultHomeAndShell/file_with_only_dshell (0.00s) === CONT TestLoadConfig/aad.conf_with_invalid_'offline_credentials_expiration'_value_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-invalid_expiration-domain.conf 2022/09/09 10:37:15 WARNING: Invalid cache revalidation period strconv.Atoi: parsing "lalala": invalid syntax === CONT TestLoadConfig/aad.conf_with_missing_'homedirpattern'_and_'shell'_values_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_homedirpattern_and_shell-domain.conf === CONT TestLoadConfig/aad.conf,_all_values,_no_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-all_values-no_domain.conf === CONT TestLoadConfig/aad.conf_with_invalid_'offline_credentials_expiration'_value 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-invalid_expiration.conf 2022/09/09 10:37:15 WARNING: Invalid cache revalidation period strconv.Atoi: parsing "lalala": invalid syntax === CONT TestLoadConfig/aad.conf_with_'tenant_id'_only_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-tenantId_only_in_domain.conf === CONT TestLoadConfig/aad.conf_with_missing_'offline_credentials_expiration'_value_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_expiration-domain.conf === CONT TestLoadConfig/aad.conf_with_missing_required_'app_id'_value_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_appId-domain.conf === CONT TestLoadConfig/aad.conf_missing_'app_id'_value 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_appId.conf === CONT TestLoadConfig/aad.conf_with_'offline_credentials_expiration'_only_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-expiration_only_in_domain.conf === CONT TestLoadConfig/aad.conf_missing_'tenant_id'_value 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_tenantId.conf === CONT TestLoadConfig/aad.conf_with_missing_'homedir'_and_'shell'_values_and_wrong_adduser.conf 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_homedirpattern_and_shell.conf 2022/09/09 10:37:15 DEBUG: Could not open doesnotexist.conf, using defaults for homedir and shell: open doesnotexist.conf: no such file or directory === CONT TestLoadConfig/aad.conf_with_missing_'homedirpattern'_value_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_homedirpattern-domain.conf === CONT TestLoadConfig/aad.conf_with_missing_'shell'_value_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_shell-domain.conf === CONT TestLoadConfig/aad.conf,_all_values,_mismatch_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-all_values-with_domain.conf === CONT TestLoadConfig/aad.conf,_all_values,_with_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-all_values-with_domain.conf === CONT TestLoadConfig/aad.conf_with_'homedirpattern'_only_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-homedirpattern_only_in_domain.conf === CONT TestLoadConfig/aad.conf_with_'app_id'_only_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-appId_only_in_domain.conf === CONT TestLoadConfig/aad.conf_with_missing_'shell' 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_shell.conf === CONT TestLoadConfig/add.conf_with_'shell'_only_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-shell_only_in_domain.conf === CONT TestLoadConfig/aad.conf_does_not_exist 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/doestnotexists.conf === CONT TestLoadConfig/aad.conf_with_missing_'homedirpattern'_and_'shell' 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_homedirpattern_and_shell.conf === CONT TestLoadConfig/aad.conf_with_missing_'offline_credentials_expiration' 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_expiration.conf === CONT TestLoadConfig/aad.conf_with_missing_required_'tenant_id'_value_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_tenantId-domain.conf === CONT TestLoadConfig/aad.conf_with_missing_'homedirpattern' 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_homedirpattern.conf === CONT TestLoadConfig/aad.conf_with_missing_'homedir'_and_'shell'_values,_but_valid_adduser.conf 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-missing_homedirpattern_and_shell.conf 2022/09/09 10:37:15 DEBUG: Could not open valid_adduser.conf, using defaults for homedir and shell: open valid_adduser.conf: no such file or directory === CONT TestLoadConfig/aad.conf_with_'homedirpattern'_and_'shell'_only_in_domain 2022/09/09 10:37:15 DEBUG: Loading configuration from testdata/TestLoadConfig/aad-homedirpattern_and_shell_only_in_domain.conf --- PASS: TestLoadConfig (0.00s) --- PASS: TestLoadConfig/aad.conf,_all_values,_only_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_invalid_'offline_credentials_expiration'_value_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf,_all_values,_no_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'homedirpattern'_and_'shell'_values_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_invalid_'offline_credentials_expiration'_value (0.00s) --- PASS: TestLoadConfig/aad.conf_with_'tenant_id'_only_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'offline_credentials_expiration'_value_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_required_'app_id'_value_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_missing_'app_id'_value (0.00s) --- PASS: TestLoadConfig/aad.conf_with_'offline_credentials_expiration'_only_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_missing_'tenant_id'_value (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'homedir'_and_'shell'_values_and_wrong_adduser.conf (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'homedirpattern'_value_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'shell'_value_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf,_all_values,_mismatch_domain (0.00s) --- PASS: TestLoadConfig/aad.conf,_all_values,_with_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_'homedirpattern'_only_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_'app_id'_only_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'shell' (0.00s) --- PASS: TestLoadConfig/add.conf_with_'shell'_only_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_does_not_exist (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'homedirpattern'_and_'shell' (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'offline_credentials_expiration' (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_required_'tenant_id'_value_in_domain (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'homedirpattern' (0.00s) --- PASS: TestLoadConfig/aad.conf_with_missing_'homedir'_and_'shell'_values,_but_valid_adduser.conf (0.00s) --- PASS: TestLoadConfig/aad.conf_with_'homedirpattern'_and_'shell'_only_in_domain (0.00s) PASS ok github.com/ubuntu/aad-auth/internal/config 0.017s ? github.com/ubuntu/aad-auth/internal/consts [no test files] ? github.com/ubuntu/aad-auth/internal/generators [no test files] === RUN TestTranslations === RUN TestTranslations/One_text_elem,_prefer_en_DK_over_en === RUN TestTranslations/No_loc_fallbacks_to_LANG_if_no_LC_MESSAGES === RUN TestTranslations/Invalid_locale_directory === RUN TestTranslations/Fallback_to_en_if_en_DK_isn't_present === RUN TestTranslations/Prefer_locale-langpack_to_locale === RUN TestTranslations/Untranslated_elem === RUN TestTranslations/en_DK@_is_en_DK === RUN TestTranslations/en_DK._is_en_DK === RUN TestTranslations/No_loc_prefers_LC_MESSAGES_first === RUN TestTranslations/Missing_locale === RUN TestTranslations/Missing_domain === RUN TestTranslations/Init_wasn't_ran === RUN TestTranslations/Multiple_text_elems --- PASS: TestTranslations (0.03s) --- PASS: TestTranslations/One_text_elem,_prefer_en_DK_over_en (0.00s) --- PASS: TestTranslations/No_loc_fallbacks_to_LANG_if_no_LC_MESSAGES (0.00s) --- PASS: TestTranslations/Invalid_locale_directory (0.00s) --- PASS: TestTranslations/Fallback_to_en_if_en_DK_isn't_present (0.00s) --- PASS: TestTranslations/Prefer_locale-langpack_to_locale (0.00s) --- PASS: TestTranslations/Untranslated_elem (0.00s) --- PASS: TestTranslations/en_DK@_is_en_DK (0.00s) --- PASS: TestTranslations/en_DK._is_en_DK (0.00s) --- PASS: TestTranslations/No_loc_prefers_LC_MESSAGES_first (0.00s) --- PASS: TestTranslations/Missing_locale (0.00s) --- PASS: TestTranslations/Missing_domain (0.00s) --- PASS: TestTranslations/Init_wasn't_ran (0.00s) --- PASS: TestTranslations/Multiple_text_elems (0.00s) PASS ok github.com/ubuntu/aad-auth/internal/i18n 0.038s === RUN TestNormalizeMsg === PAUSE TestNormalizeMsg === RUN TestCtxWithLogger --- PASS: TestCtxWithLogger (0.00s) === RUN TestCloseLoggerFromContextNoLogger 2022/09/09 10:36:40 ERROR: no logger attached to context --- PASS: TestCloseLoggerFromContextNoLogger (0.00s) === RUN TestLogging === RUN TestLogging/info,_on_stderr === RUN TestLogging/warn,_on_stderr === RUN TestLogging/debug,_with_logger === RUN TestLogging/info,_with_logger === RUN TestLogging/err,_with_logger === RUN TestLogging/err,_on_stderr === RUN TestLogging/crit,_with_logger === RUN TestLogging/crit,_on_stderr === RUN TestLogging/message_already_have_an_EOL === RUN TestLogging/debug,_on_stderr === RUN TestLogging/warn,_with_logger --- PASS: TestLogging (0.00s) --- PASS: TestLogging/info,_on_stderr (0.00s) --- PASS: TestLogging/warn,_on_stderr (0.00s) --- PASS: TestLogging/debug,_with_logger (0.00s) --- PASS: TestLogging/info,_with_logger (0.00s) --- PASS: TestLogging/err,_with_logger (0.00s) --- PASS: TestLogging/err,_on_stderr (0.00s) --- PASS: TestLogging/crit,_with_logger (0.00s) --- PASS: TestLogging/crit,_on_stderr (0.00s) --- PASS: TestLogging/message_already_have_an_EOL (0.00s) --- PASS: TestLogging/debug,_on_stderr (0.00s) --- PASS: TestLogging/warn,_with_logger (0.00s) === CONT TestNormalizeMsg === RUN TestNormalizeMsg/msg_will_always_end_by_EOL === PAUSE TestNormalizeMsg/msg_will_always_end_by_EOL === RUN TestNormalizeMsg/msg_with_EOL_is_unchanged === PAUSE TestNormalizeMsg/msg_with_EOL_is_unchanged === CONT TestNormalizeMsg/msg_will_always_end_by_EOL === CONT TestNormalizeMsg/msg_with_EOL_is_unchanged --- PASS: TestNormalizeMsg (0.00s) --- PASS: TestNormalizeMsg/msg_will_always_end_by_EOL (0.00s) --- PASS: TestNormalizeMsg/msg_with_EOL_is_unchanged (0.00s) PASS ok github.com/ubuntu/aad-auth/internal/logger 0.002s === RUN TestConvertErr === PAUSE TestConvertErr === RUN TestCtxWithSyslogLogger === PAUSE TestCtxWithSyslogLogger === RUN TestCtxWithSyslogLoggerDebugWithEnVariable === RUN TestCtxWithSyslogLoggerDebugWithEnVariable/log_debug_message_when_in_debug_mode === RUN TestCtxWithSyslogLoggerDebugWithEnVariable/log_to_stderr_when_set_to 2022/09/09 10:37:15 ERROR: no logger attached to context === RUN TestCtxWithSyslogLoggerDebugWithEnVariable/don't_log_anything_when_not_in_debug --- PASS: TestCtxWithSyslogLoggerDebugWithEnVariable (0.00s) --- PASS: TestCtxWithSyslogLoggerDebugWithEnVariable/log_debug_message_when_in_debug_mode (0.00s) --- PASS: TestCtxWithSyslogLoggerDebugWithEnVariable/log_to_stderr_when_set_to (0.00s) --- PASS: TestCtxWithSyslogLoggerDebugWithEnVariable/don't_log_anything_when_not_in_debug (0.00s) === RUN TestLogging === PAUSE TestLogging === CONT TestConvertErr === RUN TestConvertErr/wrapped_ErrTryAgainEAgain_error_retains_original_error_type === PAUSE TestConvertErr/wrapped_ErrTryAgainEAgain_error_retains_original_error_type === RUN TestConvertErr/wrapped_ErrTryAgainERange_error_retains_original_error_type === PAUSE TestConvertErr/wrapped_ErrTryAgainERange_error_retains_original_error_type === RUN TestConvertErr/wrapped_ErrUnavailableENoEnt_error_retains_original_error_type === PAUSE TestConvertErr/wrapped_ErrUnavailableENoEnt_error_retains_original_error_type === RUN TestConvertErr/wrapped_ErrNotFoundENoEnt_error_retains_original_error_type === PAUSE TestConvertErr/wrapped_ErrNotFoundENoEnt_error_retains_original_error_type === RUN TestConvertErr/wrapped_ErrNotFoundSuccess_error_retains_original_error_type === PAUSE TestConvertErr/wrapped_ErrNotFoundSuccess_error_retains_original_error_type === RUN TestConvertErr/wrapped_ErrNoEnt_error_is_converted_to_ErrNotFoundENoEnt === CONT TestLogging === CONT TestCtxWithSyslogLogger --- PASS: TestCtxWithSyslogLogger (0.00s) === PAUSE TestConvertErr/wrapped_ErrNoEnt_error_is_converted_to_ErrNotFoundENoEnt === RUN TestConvertErr/random_error_is_converted_to_ErrUnavailableENoEnt === PAUSE TestConvertErr/random_error_is_converted_to_ErrUnavailableENoEnt === RUN TestConvertErr/nil_error_should_return_nil === PAUSE TestConvertErr/nil_error_should_return_nil === RUN TestLogging/debug_is_not_printed_with_default_log_level === PAUSE TestLogging/debug_is_not_printed_with_default_log_level === RUN TestLogging/info_message_is_printed_with_default_log_level === PAUSE TestLogging/info_message_is_printed_with_default_log_level === RUN TestLogging/debug === PAUSE TestLogging/debug === RUN TestLogging/info === PAUSE TestLogging/info === RUN TestLogging/warn === PAUSE TestLogging/warn === RUN TestLogging/err === PAUSE TestLogging/err === RUN TestLogging/crit === PAUSE TestLogging/crit === CONT TestConvertErr/wrapped_ErrTryAgainEAgain_error_retains_original_error_type === CONT TestConvertErr/wrapped_ErrNoEnt_error_is_converted_to_ErrNotFoundENoEnt === CONT TestConvertErr/wrapped_ErrNotFoundENoEnt_error_retains_original_error_type === CONT TestConvertErr/wrapped_ErrUnavailableENoEnt_error_retains_original_error_type === CONT TestConvertErr/wrapped_ErrTryAgainERange_error_retains_original_error_type === CONT TestConvertErr/nil_error_should_return_nil === CONT TestLogging/crit === CONT TestLogging/err === CONT TestLogging/warn === CONT TestLogging/info === CONT TestLogging/debug === CONT TestLogging/info_message_is_printed_with_default_log_level === CONT TestConvertErr/wrapped_ErrNotFoundSuccess_error_retains_original_error_type === CONT TestLogging/debug_is_not_printed_with_default_log_level --- PASS: TestLogging (0.00s) --- PASS: TestLogging/crit (0.00s) --- PASS: TestLogging/err (0.00s) --- PASS: TestLogging/warn (0.00s) --- PASS: TestLogging/info (0.00s) --- PASS: TestLogging/debug (0.00s) --- PASS: TestLogging/info_message_is_printed_with_default_log_level (0.00s) --- PASS: TestLogging/debug_is_not_printed_with_default_log_level (0.00s) === CONT TestConvertErr/random_error_is_converted_to_ErrUnavailableENoEnt --- PASS: TestConvertErr (0.00s) --- PASS: TestConvertErr/wrapped_ErrTryAgainEAgain_error_retains_original_error_type (0.00s) --- PASS: TestConvertErr/wrapped_ErrNoEnt_error_is_converted_to_ErrNotFoundENoEnt (0.00s) --- PASS: TestConvertErr/wrapped_ErrNotFoundENoEnt_error_retains_original_error_type (0.00s) --- PASS: TestConvertErr/wrapped_ErrUnavailableENoEnt_error_retains_original_error_type (0.00s) --- PASS: TestConvertErr/wrapped_ErrTryAgainERange_error_retains_original_error_type (0.00s) --- PASS: TestConvertErr/nil_error_should_return_nil (0.00s) --- PASS: TestConvertErr/wrapped_ErrNotFoundSuccess_error_retains_original_error_type (0.00s) --- PASS: TestConvertErr/random_error_is_converted_to_ErrUnavailableENoEnt (0.00s) PASS ok github.com/ubuntu/aad-auth/internal/nss 0.027s === RUN TestNewByName === PAUSE TestNewByName === RUN TestNewByGID === PAUSE TestNewByGID === RUN TestNextEntry === RUN TestNextEntry/get_all_groups 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextEntryget_all_groups2743116359/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntryget_all_groups2743116359/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntryget_all_groups2743116359/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextEntryget_all_groups2743116359/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntryget_all_groups2743116359/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntryget_all_groups2743116359/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: get next group entry 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: get next group entry 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: get next group entry 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: get next group entry 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request === RUN TestNextEntry/no_group_in_db_does_not_fail 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextEntryno_group_in_db_does_not_fail1785244503/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntryno_group_in_db_does_not_fail1785244503/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntryno_group_in_db_does_not_fail1785244503/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: get next group entry 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: Close database request === RUN TestNextEntry/error_on_iteration_not_being_initialized_first 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextEntryerror_on_iteration_not_being_initialized_first3313991375/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntryerror_on_iteration_not_being_initialized_first3313991375/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntryerror_on_iteration_not_being_initialized_first3313991375/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: get next group entry 2022/09/09 10:37:16 DEBUG: Close database request === RUN TestNextEntry/partial_iteration_then_ends_works 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextEntrypartial_iteration_then_ends_works1574626826/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works1574626826/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works1574626826/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:16 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestNextEntrypartial_iteration_then_ends_works1574626826/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works1574626826/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works1574626826/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: get next group entry 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: get next group entry 2022/09/09 10:37:16 DEBUG: request next group entry in db 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: Close database request 2022/09/09 10:37:16 DEBUG: Close database request --- PASS: TestNextEntry (0.22s) --- PASS: TestNextEntry/get_all_groups (0.06s) --- PASS: TestNextEntry/no_group_in_db_does_not_fail (0.03s) --- PASS: TestNextEntry/error_on_iteration_not_being_initialized_first (0.05s) --- PASS: TestNextEntry/partial_iteration_then_ends_works (0.07s) === RUN TestStartEndEntryIteration === RUN TestStartEndEntryIteration/can_start_and_end_iteration 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestStartEndEntryIterationcan_start_and_end_iteration4141468967/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationcan_start_and_end_iteration4141468967/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationcan_start_and_end_iteration4141468967/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: Close database request === RUN TestStartEndEntryIteration/no_error_when_ending_a_not_started_iteration 2022/09/09 10:37:16 WARNING: group entry iteration ended without initialization first === RUN TestStartEndEntryIteration/error_in_start_when_iteration_already_in_progress 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestStartEndEntryIterationerror_in_start_when_iteration_already_in_progress2551708359/001 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationerror_in_start_when_iteration_already_in_progress2551708359/001/passwd.db 2022/09/09 10:37:16 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationerror_in_start_when_iteration_already_in_progress2551708359/001/shadow.db 2022/09/09 10:37:16 DEBUG: Shadow db mode: 2 2022/09/09 10:37:16 DEBUG: Clean up database 2022/09/09 10:37:16 DEBUG: request to close group iteration in db 2022/09/09 10:37:16 DEBUG: Close database request === RUN TestStartEndEntryIteration/error_in_start_when_error_on_opening_cache 2022/09/09 10:37:16 DEBUG: Cache initialization 2022/09/09 10:37:16 DEBUG: Opening cache in /tmp/TestStartEndEntryIterationerror_in_start_when_error_on_opening_cache3640486465/001 --- PASS: TestStartEndEntryIteration (0.05s) --- PASS: TestStartEndEntryIteration/can_start_and_end_iteration (0.02s) --- PASS: TestStartEndEntryIteration/no_error_when_ending_a_not_started_iteration (0.00s) --- PASS: TestStartEndEntryIteration/error_in_start_when_iteration_already_in_progress (0.03s) --- PASS: TestStartEndEntryIteration/error_in_start_when_error_on_opening_cache (0.00s) === RUN TestRestartIterationWithoutEndingPreviousOne 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestRestartIterationWithoutEndingPreviousOne1368754548/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne1368754548/001/shadow.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne1368754548/001/passwd.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestRestartIterationWithoutEndingPreviousOne1368754548/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne1368754548/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne1368754548/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: get next group entry 2022/09/09 10:37:17 DEBUG: request next group entry in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Reusing existing opened cache 2022/09/09 10:37:17 DEBUG: get next group entry 2022/09/09 10:37:17 DEBUG: request next group entry in db 2022/09/09 10:37:17 DEBUG: get next group entry 2022/09/09 10:37:17 DEBUG: request next group entry in db 2022/09/09 10:37:17 DEBUG: get next group entry 2022/09/09 10:37:17 DEBUG: request next group entry in db 2022/09/09 10:37:17 DEBUG: get next group entry 2022/09/09 10:37:17 DEBUG: request next group entry in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 WARNING: group entry iteration ended without initialization first 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestRestartIterationWithoutEndingPreviousOne (0.06s) === RUN TestString --- PASS: TestString (0.00s) === RUN TestToCgroup === PAUSE TestToCgroup === CONT TestNewByName === CONT TestToCgroup === CONT TestNewByGID === RUN TestNewByGID/get_existing_group_by_gid === PAUSE TestNewByGID/get_existing_group_by_gid === RUN TestNewByGID/error_on_non_existing_group === RUN TestToCgroup/can't_allocate_with_buffer_too_small === PAUSE TestNewByGID/error_on_non_existing_group === RUN TestNewByGID/error_on_cache_not_available === PAUSE TestNewByGID/error_on_cache_not_available === CONT TestNewByGID/get_existing_group_by_gid === PAUSE TestToCgroup/can't_allocate_with_buffer_too_small === RUN TestToCgroup/can_convert_group_to_C_group === PAUSE TestToCgroup/can_convert_group_to_C_group === RUN TestToCgroup/can_convert_group_with_five_members_to_C_group === PAUSE TestToCgroup/can_convert_group_with_five_members_to_C_group 2022/09/09 10:37:17 DEBUG: Cache initialization === CONT TestToCgroup/can't_allocate_with_buffer_too_small 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByGIDget_existing_group_by_gid4228945139/001 === RUN TestNewByName/get_existing_group_by_name === PAUSE TestNewByName/get_existing_group_by_name === RUN TestNewByName/error_on_non_existing_group === PAUSE TestNewByName/error_on_non_existing_group === RUN TestNewByName/shadow_group_is_ignored,_as_not_part_of_aad === PAUSE TestNewByName/shadow_group_is_ignored,_as_not_part_of_aad === RUN TestNewByName/error_on_cache_not_available === PAUSE TestNewByName/error_on_cache_not_available === CONT TestNewByName/get_existing_group_by_name === CONT TestToCgroup/can_convert_group_with_five_members_to_C_group === CONT TestToCgroup/can_convert_group_to_C_group === CONT TestNewByGID/error_on_cache_not_available --- PASS: TestToCgroup (0.00s) --- PASS: TestToCgroup/can't_allocate_with_buffer_too_small (0.00s) --- PASS: TestToCgroup/can_convert_group_with_five_members_to_C_group (0.00s) --- PASS: TestToCgroup/can_convert_group_to_C_group (0.00s) === CONT TestNewByName/error_on_cache_not_available 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDget_existing_group_by_gid4228945139/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDget_existing_group_by_gid4228945139/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameget_existing_group_by_name763513979/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_group_by_name763513979/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_group_by_name763513979/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByGIDerror_on_cache_not_available693377758/001 2022/09/09 10:37:17 DEBUG: Requesting an group entry matching GID 1929326240 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDerror_on_cache_not_available693377758/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDerror_on_cache_not_available693377758/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_cache_not_available458038206/001 2022/09/09 10:37:17 DEBUG: Requesting a group entry matching name "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_cache_not_available458038206/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_cache_not_available458038206/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByGIDget_existing_group_by_gid4228945139/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDget_existing_group_by_gid4228945139/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDget_existing_group_by_gid4228945139/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting group information from cache for gid 1929326240 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameget_existing_group_by_name763513979/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_group_by_name763513979/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_group_by_name763513979/001/shadow.db 2022/09/09 10:37:17 DEBUG: Close database request === CONT TestNewByGID/error_on_non_existing_group 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting group information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByGIDerror_on_non_existing_group179983014/001 2022/09/09 10:37:17 DEBUG: Close database request === CONT TestNewByName/shadow_group_is_ignored,_as_not_part_of_aad 2022/09/09 10:37:17 DEBUG: Requesting an group entry matching GID 1929326240 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDerror_on_non_existing_group179983014/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDerror_on_non_existing_group179983014/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameshadow_group_is_ignored,_as_not_part_of_aad2946754428/001 2022/09/09 10:37:17 DEBUG: Requesting a group entry matching name "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameshadow_group_is_ignored,_as_not_part_of_aad2946754428/001/shadow.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameshadow_group_is_ignored,_as_not_part_of_aad2946754428/001/passwd.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByGIDerror_on_cache_not_available693377758/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDerror_on_cache_not_available693377758/001/passwd.db 2022/09/09 10:37:17 DEBUG: Close database request === CONT TestNewByName/error_on_non_existing_group 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_non_existing_group3380214912/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_group3380214912/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_group3380214912/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Requesting an group entry matching GID 4242 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_cache_not_available458038206/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_cache_not_available458038206/001/passwd.db 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByGIDerror_on_non_existing_group179983014/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDerror_on_non_existing_group179983014/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByGIDerror_on_non_existing_group179983014/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: getting group information from cache for gid 4242 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. --- PASS: TestNewByGID (0.00s) --- PASS: TestNewByGID/get_existing_group_by_gid (0.11s) --- PASS: TestNewByGID/error_on_cache_not_available (0.21s) --- PASS: TestNewByGID/error_on_non_existing_group (0.13s) 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Requesting a group entry matching name "shadow" 2022/09/09 10:37:17 DEBUG: Ignoring shadow group as it's not in our database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Requesting a group entry matching name "notexists@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_non_existing_group3380214912/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_group3380214912/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_group3380214912/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting group information from cache for "notexists@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestNewByName (0.00s) --- PASS: TestNewByName/get_existing_group_by_name (0.12s) --- PASS: TestNewByName/error_on_cache_not_available (0.24s) --- PASS: TestNewByName/shadow_group_is_ignored,_as_not_part_of_aad (0.15s) --- PASS: TestNewByName/error_on_non_existing_group (0.09s) PASS ok github.com/ubuntu/aad-auth/internal/nss/group 0.631s === RUN TestNewByName === PAUSE TestNewByName === RUN TestNewByUID === PAUSE TestNewByUID === RUN TestNextEntry === RUN TestNextEntry/no_user_in_db_does_not_fail 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntryno_user_in_db_does_not_fail896678096/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryno_user_in_db_does_not_fail896678096/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryno_user_in_db_does_not_fail896678096/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: Close database request === RUN TestNextEntry/error_on_iteration_not_being_initialized_first 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntryerror_on_iteration_not_being_initialized_first3102184395/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryerror_on_iteration_not_being_initialized_first3102184395/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryerror_on_iteration_not_being_initialized_first3102184395/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: Close database request === RUN TestNextEntry/partial_iteration_then_ends_works 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntrypartial_iteration_then_ends_works186528149/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works186528149/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works186528149/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntrypartial_iteration_then_ends_works186528149/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works186528149/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works186528149/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request === RUN TestNextEntry/get_all_users 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntryget_all_users1281154654/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryget_all_users1281154654/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryget_all_users1281154654/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntryget_all_users1281154654/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryget_all_users1281154654/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryget_all_users1281154654/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestNextEntry (0.32s) --- PASS: TestNextEntry/no_user_in_db_does_not_fail (0.03s) --- PASS: TestNextEntry/error_on_iteration_not_being_initialized_first (0.08s) --- PASS: TestNextEntry/partial_iteration_then_ends_works (0.11s) --- PASS: TestNextEntry/get_all_users (0.10s) === RUN TestStartEndEntryIteration === RUN TestStartEndEntryIteration/can_start_and_end_iteration 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestStartEndEntryIterationcan_start_and_end_iteration3026801014/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationcan_start_and_end_iteration3026801014/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationcan_start_and_end_iteration3026801014/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: Close database request === RUN TestStartEndEntryIteration/no_error_when_ending_a_not_started_iteration 2022/09/09 10:37:17 WARNING: passwd entry iteration ended without initialization first === RUN TestStartEndEntryIteration/error_in_start_when_iteration_already_in_progress 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestStartEndEntryIterationerror_in_start_when_iteration_already_in_progress714809394/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationerror_in_start_when_iteration_already_in_progress714809394/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationerror_in_start_when_iteration_already_in_progress714809394/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: Close database request === RUN TestStartEndEntryIteration/error_in_start_when_error_on_opening_cache 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestStartEndEntryIterationerror_in_start_when_error_on_opening_cache2038513561/001 --- PASS: TestStartEndEntryIteration (0.07s) --- PASS: TestStartEndEntryIteration/can_start_and_end_iteration (0.03s) --- PASS: TestStartEndEntryIteration/no_error_when_ending_a_not_started_iteration (0.00s) --- PASS: TestStartEndEntryIteration/error_in_start_when_iteration_already_in_progress (0.04s) --- PASS: TestStartEndEntryIteration/error_in_start_when_error_on_opening_cache (0.00s) === RUN TestRestartIterationWithoutEndingPreviousOne 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestRestartIterationWithoutEndingPreviousOne3067379584/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne3067379584/001/shadow.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne3067379584/001/passwd.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestRestartIterationWithoutEndingPreviousOne3067379584/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne3067379584/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne3067379584/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Reusing existing opened cache 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: get next passwd entry 2022/09/09 10:37:17 DEBUG: request next passwd entry in db 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 WARNING: passwd entry iteration ended without initialization first 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestRestartIterationWithoutEndingPreviousOne (0.14s) === RUN TestString --- PASS: TestString (0.00s) === RUN TestToCpasswd === PAUSE TestToCpasswd === CONT TestNewByName === CONT TestNewByUID === CONT TestToCpasswd === RUN TestNewByName/get_existing_user_by_name === PAUSE TestNewByName/get_existing_user_by_name === RUN TestNewByName/error_on_non_existing_user === PAUSE TestNewByName/error_on_non_existing_user === RUN TestNewByUID/get_existing_user_by_uid === RUN TestNewByName/error_on_cache_not_available === RUN TestToCpasswd/can_convert_to_C_pwd === PAUSE TestToCpasswd/can_convert_to_C_pwd === RUN TestToCpasswd/can't_allocate_with_buffer_too_small === PAUSE TestToCpasswd/can't_allocate_with_buffer_too_small === CONT TestToCpasswd/can_convert_to_C_pwd === PAUSE TestNewByUID/get_existing_user_by_uid === CONT TestToCpasswd/can't_allocate_with_buffer_too_small === RUN TestNewByUID/error_on_non_existing_user === PAUSE TestNewByUID/error_on_non_existing_user === RUN TestNewByUID/error_on_cache_not_available === PAUSE TestNewByUID/error_on_cache_not_available === CONT TestNewByUID/get_existing_user_by_uid === CONT TestNewByUID/error_on_cache_not_available --- PASS: TestToCpasswd (0.00s) --- PASS: TestToCpasswd/can't_allocate_with_buffer_too_small (0.00s) --- PASS: TestToCpasswd/can_convert_to_C_pwd (0.00s) === CONT TestNewByUID/error_on_non_existing_user 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByUIDget_existing_user_by_uid3779318018/001 === PAUSE TestNewByName/error_on_cache_not_available === CONT TestNewByName/get_existing_user_by_name 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDget_existing_user_by_uid3779318018/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDget_existing_user_by_uid3779318018/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByUIDerror_on_cache_not_available1215686532/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDerror_on_cache_not_available1215686532/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDerror_on_cache_not_available1215686532/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByUIDerror_on_non_existing_user4187557471/001 2022/09/09 10:37:17 DEBUG: Requesting a passwd entry matching UID 1929326240 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDerror_on_non_existing_user4187557471/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDerror_on_non_existing_user4187557471/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameget_existing_user_by_name2660380015/001 2022/09/09 10:37:17 DEBUG: Requesting a passwd entry matching UID 1929326240 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_user_by_name2660380015/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_user_by_name2660380015/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByUIDget_existing_user_by_uid3779318018/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDget_existing_user_by_uid3779318018/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDget_existing_user_by_uid3779318018/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for uid 1929326240 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByUIDerror_on_cache_not_available1215686532/001 === CONT TestNewByName/error_on_cache_not_available 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDerror_on_cache_not_available1215686532/001/passwd.db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_cache_not_available2450284780/001 === CONT TestNewByName/error_on_non_existing_user 2022/09/09 10:37:17 DEBUG: Requesting a passwd entry matching UID 4242 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_cache_not_available2450284780/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_cache_not_available2450284780/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_non_existing_user2026514166/001 2022/09/09 10:37:17 DEBUG: Requesting a passwd entry matching name "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_user2026514166/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_user2026514166/001/shadow.db 2022/09/09 10:37:17 DEBUG: Requesting a passwd entry matching name "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByUIDerror_on_non_existing_user4187557471/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDerror_on_non_existing_user4187557471/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByUIDerror_on_non_existing_user4187557471/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for uid 4242 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameget_existing_user_by_name2660380015/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_user_by_name2660380015/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_user_by_name2660380015/001/shadow.db --- PASS: TestNewByUID (0.00s) --- PASS: TestNewByUID/get_existing_user_by_uid (0.14s) --- PASS: TestNewByUID/error_on_cache_not_available (0.14s) --- PASS: TestNewByUID/error_on_non_existing_user (0.21s) 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_cache_not_available2450284780/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_cache_not_available2450284780/001/passwd.db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Requesting a passwd entry matching name "notexists@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_non_existing_user2026514166/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_user2026514166/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_user2026514166/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting user information from cache for "notexists@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestNewByName (0.00s) --- PASS: TestNewByName/error_on_cache_not_available (0.07s) --- PASS: TestNewByName/get_existing_user_by_name (0.21s) --- PASS: TestNewByName/error_on_non_existing_user (0.09s) PASS ok github.com/ubuntu/aad-auth/internal/nss/passwd 0.766s === RUN TestNewByName === PAUSE TestNewByName === RUN TestNextEntry === RUN TestNextEntry/partial_iteration_then_ends_works 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntrypartial_iteration_then_ends_works1199221476/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works1199221476/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works1199221476/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntrypartial_iteration_then_ends_works1199221476/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works1199221476/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntrypartial_iteration_then_ends_works1199221476/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request === RUN TestNextEntry/get_all_users 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntryget_all_users1559358492/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryget_all_users1559358492/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryget_all_users1559358492/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntryget_all_users1559358492/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryget_all_users1559358492/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryget_all_users1559358492/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request === RUN TestNextEntry/no_user_in_db_does_not_fail 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntryno_user_in_db_does_not_fail781965711/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryno_user_in_db_does_not_fail781965711/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryno_user_in_db_does_not_fail781965711/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request === RUN TestNextEntry/error_on_iteration_not_being_initialized_first 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNextEntryerror_on_iteration_not_being_initialized_first2544132142/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryerror_on_iteration_not_being_initialized_first2544132142/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNextEntryerror_on_iteration_not_being_initialized_first2544132142/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestNextEntry (0.30s) --- PASS: TestNextEntry/partial_iteration_then_ends_works (0.07s) --- PASS: TestNextEntry/get_all_users (0.08s) --- PASS: TestNextEntry/no_user_in_db_does_not_fail (0.05s) --- PASS: TestNextEntry/error_on_iteration_not_being_initialized_first (0.10s) === RUN TestStartEndEntryIteration === RUN TestStartEndEntryIteration/error_in_start_when_error_on_opening_cache 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestStartEndEntryIterationerror_in_start_when_error_on_opening_cache1321615806/001 === RUN TestStartEndEntryIteration/can_start_and_end_iteration 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestStartEndEntryIterationcan_start_and_end_iteration3019312812/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationcan_start_and_end_iteration3019312812/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationcan_start_and_end_iteration3019312812/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request === RUN TestStartEndEntryIteration/no_error_when_ending_a_not_started_iteration 2022/09/09 10:37:17 WARNING: shadow entry iteration ended without initialization first === RUN TestStartEndEntryIteration/error_in_start_when_iteration_already_in_progress 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestStartEndEntryIterationerror_in_start_when_iteration_already_in_progress2401517675/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationerror_in_start_when_iteration_already_in_progress2401517675/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestStartEndEntryIterationerror_in_start_when_iteration_already_in_progress2401517675/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestStartEndEntryIteration (0.07s) --- PASS: TestStartEndEntryIteration/error_in_start_when_error_on_opening_cache (0.00s) --- PASS: TestStartEndEntryIteration/can_start_and_end_iteration (0.03s) --- PASS: TestStartEndEntryIteration/no_error_when_ending_a_not_started_iteration (0.00s) --- PASS: TestStartEndEntryIteration/error_in_start_when_iteration_already_in_progress (0.04s) === RUN TestRestartIterationWithoutEndingPreviousOne 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestRestartIterationWithoutEndingPreviousOne45490936/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne45490936/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne45490936/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestRestartIterationWithoutEndingPreviousOne45490936/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne45490936/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestRestartIterationWithoutEndingPreviousOne45490936/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Reusing existing opened cache 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: get next shadow entry 2022/09/09 10:37:17 DEBUG: request next shadow entry in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 WARNING: shadow entry iteration ended without initialization first 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestRestartIterationWithoutEndingPreviousOne (0.13s) === RUN TestString --- PASS: TestString (0.00s) === RUN TestToCshadow === PAUSE TestToCshadow === CONT TestNewByName === RUN TestNewByName/get_existing_user_by_name === PAUSE TestNewByName/get_existing_user_by_name === RUN TestNewByName/error_on_non_existing_user === PAUSE TestNewByName/error_on_non_existing_user === RUN TestNewByName/error_on_cache_not_available === PAUSE TestNewByName/error_on_cache_not_available === CONT TestNewByName/get_existing_user_by_name 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameget_existing_user_by_name3801600670/001 === CONT TestNewByName/error_on_cache_not_available === CONT TestToCshadow === RUN TestToCshadow/can_convert_to_C_shadow === PAUSE TestToCshadow/can_convert_to_C_shadow === RUN TestToCshadow/can't_allocate_with_buffer_too_small === PAUSE TestToCshadow/can't_allocate_with_buffer_too_small === CONT TestToCshadow/can_convert_to_C_shadow === CONT TestToCshadow/can't_allocate_with_buffer_too_small === CONT TestNewByName/error_on_non_existing_user --- PASS: TestToCshadow (0.00s) --- PASS: TestToCshadow/can't_allocate_with_buffer_too_small (0.00s) --- PASS: TestToCshadow/can_convert_to_C_shadow (0.00s) 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_user_by_name3801600670/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_user_by_name3801600670/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_cache_not_available3253133776/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_cache_not_available3253133776/001/shadow.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_cache_not_available3253133776/001/passwd.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_non_existing_user1956896300/001 2022/09/09 10:37:17 DEBUG: Requesting a shadow entry matching name "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_user1956896300/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_user1956896300/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameget_existing_user_by_name3801600670/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_user_by_name3801600670/001/shadow.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameget_existing_user_by_name3801600670/001/passwd.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting shadow information from cache for "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:17 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:17 DEBUG: request to close group iteration in db 2022/09/09 10:37:17 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Requesting a shadow entry matching name "myuser@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_cache_not_available3253133776/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_cache_not_available3253133776/001/passwd.db 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Requesting a shadow entry matching name "notexists@domain.com" 2022/09/09 10:37:17 DEBUG: Cache initialization 2022/09/09 10:37:17 DEBUG: Opening cache in /tmp/TestNewByNameerror_on_non_existing_user1956896300/001 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_user1956896300/001/passwd.db 2022/09/09 10:37:17 DEBUG: check file permissions on /tmp/TestNewByNameerror_on_non_existing_user1956896300/001/shadow.db 2022/09/09 10:37:17 DEBUG: Shadow db mode: 2 2022/09/09 10:37:17 DEBUG: Clean up database 2022/09/09 10:37:17 DEBUG: getting shadow information from cache for "notexists@domain.com" 2022/09/09 10:37:17 DEBUG: Close database request 2022/09/09 10:37:17 DEBUG: Close database request --- PASS: TestNewByName (0.00s) --- PASS: TestNewByName/get_existing_user_by_name (0.11s) --- PASS: TestNewByName/error_on_cache_not_available (0.13s) --- PASS: TestNewByName/error_on_non_existing_user (0.17s) PASS ok github.com/ubuntu/aad-auth/internal/nss/shadow 0.677s === RUN TestNewLogger === PAUSE TestNewLogger === RUN TestLogging === PAUSE TestLogging === RUN TestInfo --- PASS: TestInfo (0.00s) === RUN TestInfoWithNoPamInContext --- PASS: TestInfoWithNoPamInContext (0.00s) === RUN TestAuthenticate === PAUSE TestAuthenticate === CONT TestNewLogger === RUN TestNewLogger/new_logger,_debug_enabled === PAUSE TestNewLogger/new_logger,_debug_enabled === RUN TestNewLogger/new_logger,_no_debug,_no_message === PAUSE TestNewLogger/new_logger,_no_debug,_no_message === CONT TestNewLogger/new_logger,_debug_enabled === CONT TestAuthenticate === RUN TestAuthenticate/authenticate_successfully_(online) === PAUSE TestAuthenticate/authenticate_successfully_(online) === RUN TestAuthenticate/authenticate_successfully_with_unmatched_case_(online) === PAUSE TestAuthenticate/authenticate_successfully_with_unmatched_case_(online) === RUN TestAuthenticate/error_on_invalid_conf === PAUSE TestAuthenticate/error_on_invalid_conf === RUN TestAuthenticate/error_on_unexisting_conf === PAUSE TestAuthenticate/error_on_unexisting_conf === RUN TestAuthenticate/error_on_offline_with_purged_user_account === PAUSE TestAuthenticate/error_on_offline_with_purged_user_account === RUN TestAuthenticate/specified_offline_expiration === PAUSE TestAuthenticate/specified_offline_expiration === RUN TestAuthenticate/Offline,_connect_existing_user_from_cache === PAUSE TestAuthenticate/Offline,_connect_existing_user_from_cache === RUN TestAuthenticate/error_on_unexisting_users === PAUSE TestAuthenticate/error_on_unexisting_users === RUN TestAuthenticate/error_on_invalid_password === PAUSE TestAuthenticate/error_on_invalid_password === RUN TestAuthenticate/error_on_offline_with_user_online_user_not_in_cache === PAUSE TestAuthenticate/error_on_offline_with_user_online_user_not_in_cache === RUN TestAuthenticate/error_on_offline_with_unpurged_old_user_account === PAUSE TestAuthenticate/error_on_offline_with_unpurged_old_user_account === RUN TestAuthenticate/error_on_server_error === PAUSE TestAuthenticate/error_on_server_error === RUN TestAuthenticate/error_on_cache_can't_be_created/opened === PAUSE TestAuthenticate/error_on_cache_can't_be_created/opened === CONT TestAuthenticate/authenticate_successfully_(online) 2022/09/09 10:37:18 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:37:18 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:37:18 DEBUG: Authentication successful with user/password 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestAuthenticateauthenticate_successfully_(online)1094929940/001 === CONT TestAuthenticate/error_on_invalid_password === CONT TestLogging === RUN TestLogging/debug === PAUSE TestLogging/debug === RUN TestLogging/info === PAUSE TestLogging/info === RUN TestLogging/warn === PAUSE TestLogging/warn === RUN TestLogging/err === PAUSE TestLogging/err === RUN TestLogging/crit === PAUSE TestLogging/crit === RUN TestLogging/debug_is_not_printed_with_default_log_level === PAUSE TestLogging/debug_is_not_printed_with_default_log_level === RUN TestLogging/info_message_is_printed_with_default_log_level === PAUSE TestLogging/info_message_is_printed_with_default_log_level === CONT TestLogging/debug === CONT TestLogging/info_message_is_printed_with_default_log_level === CONT TestLogging/debug_is_not_printed_with_default_log_level === CONT TestLogging/crit === CONT TestLogging/err === CONT TestLogging/warn === CONT TestLogging/info --- PASS: TestLogging (0.00s) --- PASS: TestLogging/debug (0.00s) --- PASS: TestLogging/info_message_is_printed_with_default_log_level (0.00s) --- PASS: TestLogging/debug_is_not_printed_with_default_log_level (0.00s) --- PASS: TestLogging/crit (0.00s) --- PASS: TestLogging/err (0.00s) --- PASS: TestLogging/warn (0.00s) --- PASS: TestLogging/info (0.00s) === CONT TestAuthenticate/error_on_offline_with_purged_user_account === CONT TestAuthenticate/error_on_cache_can't_be_created/opened 2022/09/09 10:37:18 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:37:18 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "invalid credentials" 2022/09/09 10:37:18 DEBUG: Got response: Invalid credentials === CONT TestAuthenticate/error_on_unexisting_conf 2022/09/09 10:37:18 DEBUG: Loading configuration from testdata/doesnotexist.conf 2022/09/09 10:37:18 ERROR: No valid configuration found: could not load valid configuration from testdata/doesnotexist.conf: could not open file testdata/doesnotexist.conf: open testdata/doesnotexist.conf: no such file or directory === CONT TestAuthenticate/error_on_invalid_conf 2022/09/09 10:37:18 DEBUG: Loading configuration from testdata/invalid-aad.conf 2022/09/09 10:37:18 ERROR: No valid configuration found: could not load valid configuration from testdata/invalid-aad.conf: missing required 'app_id' entry in configuration file === CONT TestAuthenticate/authenticate_successfully_with_unmatched_case_(online) 2022/09/09 10:37:18 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:37:18 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:37:18 DEBUG: Authentication successful with user/password 2022/09/09 10:37:18 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:37:18 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:37:18 DEBUG: Authentication successful with user/password 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateauthenticate_successfully_(online)1094929940/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateauthenticate_successfully_(online)1094929940/001/shadow.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestAuthenticateauthenticate_successfully_with_unmatched_case_(online)1475130015/001 2022/09/09 10:37:18 DEBUG: generate user id for user "success@domain.com" 2022/09/09 10:37:18 INFO: user id for "success@domain.com" is 9448096 2022/09/09 10:37:18 DEBUG: Getting home directory for success@domain.com 2022/09/09 10:37:18 DEBUG: inserting in cache user "success@domain.com" 2022/09/09 10:37:18 DEBUG: encrypt password for user "success@domain.com" 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateauthenticate_successfully_with_unmatched_case_(online)1475130015/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateauthenticate_successfully_with_unmatched_case_(online)1475130015/001/shadow.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:37:18 DEBUG: generate user id for user "success@domain.com" 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestAuthenticateerror_on_offline_with_purged_user_account1144122875/001 2022/09/09 10:37:18 INFO: user id for "success@domain.com" is 9448096 2022/09/09 10:37:18 DEBUG: Getting home directory for success@domain.com 2022/09/09 10:37:18 DEBUG: inserting in cache user "success@domain.com" 2022/09/09 10:37:18 DEBUG: encrypt password for user "success@domain.com" 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_purged_user_account1144122875/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_purged_user_account1144122875/001/shadow.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestAuthenticateerror_on_cache_cant_be_createdopened1889963743/001 2022/09/09 10:37:18 ERROR: can't open/create cache: can't initiate database: cache creation can only be done by root user. Denying access. === CONT TestAuthenticate/error_on_offline_with_unpurged_old_user_account 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestAuthenticateerror_on_offline_with_unpurged_old_user_account1482158731/001 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_unpurged_old_user_account1482158731/001/passwd.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_unpurged_old_user_account1482158731/001/shadow.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:18 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:18 DEBUG: request to close group iteration in db 2022/09/09 10:37:18 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:18 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:18 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:18 DEBUG: request to close group iteration in db 2022/09/09 10:37:18 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:18 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:37:18 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "veryolduser@domain.com" 2022/09/09 10:37:18 DEBUG: Got response: User doesn't exist 2022/09/09 10:37:18 DEBUG: Close database request === CONT TestAuthenticate/error_on_server_error 2022/09/09 10:37:18 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:37:18 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "unreadable server response" 2022/09/09 10:37:18 ERROR: Can't read server response: invalid READ === CONT TestAuthenticate/error_on_offline_with_user_online_user_not_in_cache 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestAuthenticateerror_on_offline_with_user_online_user_not_in_cache723744970/001 2022/09/09 10:37:18 DEBUG: updating from last online login information for user "success@domain.com" 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_user_online_user_not_in_cache723744970/001/shadow.db 2022/09/09 10:37:18 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_user_online_user_not_in_cache723744970/001/passwd.db 2022/09/09 10:37:18 DEBUG: Shadow db mode: 2 2022/09/09 10:37:18 DEBUG: Clean up database 2022/09/09 10:37:18 DEBUG: Close database request 2022/09/09 10:37:18 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:18 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:18 DEBUG: request to close group iteration in db 2022/09/09 10:37:18 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:18 DEBUG: Close database request === CONT TestNewLogger/new_logger,_no_debug,_no_message --- PASS: TestNewLogger (0.00s) --- PASS: TestNewLogger/new_logger,_debug_enabled (0.00s) --- PASS: TestNewLogger/new_logger,_no_debug,_no_message (0.00s) === CONT TestAuthenticate/Offline,_connect_existing_user_from_cache 2022/09/09 10:37:18 DEBUG: Cache initialization 2022/09/09 10:37:18 DEBUG: Opening cache in /tmp/TestAuthenticateOffline,_connect_existing_user_from_cache1852157891/001 2022/09/09 10:37:18 DEBUG: Loading configuration from testdata/forceoffline-expire-right-away.conf 2022/09/09 10:37:18 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "force offline" for user "veryolduser@domain.com" 2022/09/09 10:37:18 DEBUG: acquiring token failed: Offline 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticateOffline,_connect_existing_user_from_cache1852157891/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticateOffline,_connect_existing_user_from_cache1852157891/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestAuthenticateerror_on_offline_with_unpurged_old_user_account1482158731/001 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_unpurged_old_user_account1482158731/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_unpurged_old_user_account1482158731/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Do not clean up database as revalidation period is set to 0 2022/09/09 10:37:19 INFO: try to authenticate "veryolduser@domain.com" from cache 2022/09/09 10:37:19 DEBUG: getting user information from cache for "veryolduser@domain.com" 2022/09/09 10:37:19 DEBUG: Last online login was: 1971-11-12 23:22:48 +0000 UTC. Current time: 2022-09-09 10:37:19.011346438 +0000 UTC m=+0.143792374. Revalidation needed every 0 days 2022/09/09 10:37:19 WARNING: Failed to display message to user (no pam attached): Machine is offline and cached credentials expired. Please try again when the machine is online. 2022/09/09 10:37:19 ERROR: authenticating user "veryolduser@domain.com" from cache failed: offline credentials expired. Denying access. 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:19 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:19 DEBUG: request to close group iteration in db 2022/09/09 10:37:19 DEBUG: request to close shadow iteration in db === CONT TestAuthenticate/error_on_unexisting_users 2022/09/09 10:37:19 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:37:19 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "no such user" 2022/09/09 10:37:19 DEBUG: Got response: User doesn't exist === CONT TestAuthenticate/specified_offline_expiration 2022/09/09 10:37:19 DEBUG: Loading configuration from testdata/withoffline-expiration.conf 2022/09/09 10:37:19 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:37:19 DEBUG: Authentication successful with user/password 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestAuthenticatespecified_offline_expiration1070074247/001 2022/09/09 10:37:19 DEBUG: Loading configuration from testdata/forceoffline.conf 2022/09/09 10:37:19 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "force offline" for user "success@domain.com" 2022/09/09 10:37:19 DEBUG: acquiring token failed: Offline 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticatespecified_offline_expiration1070074247/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticatespecified_offline_expiration1070074247/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:37:19 DEBUG: generate user id for user "success@domain.com" 2022/09/09 10:37:19 INFO: user id for "success@domain.com" is 9448096 2022/09/09 10:37:19 DEBUG: Getting home directory for success@domain.com 2022/09/09 10:37:19 DEBUG: inserting in cache user "success@domain.com" 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestAuthenticateerror_on_offline_with_user_online_user_not_in_cache723744970/001 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_user_online_user_not_in_cache723744970/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticateerror_on_offline_with_user_online_user_not_in_cache723744970/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: updating from last online login information for user "success@domain.com" 2022/09/09 10:37:19 DEBUG: Loading configuration from testdata/forceoffline.conf 2022/09/09 10:37:19 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "force offline" for user "futureuser@domain.com" 2022/09/09 10:37:19 DEBUG: acquiring token failed: Offline 2022/09/09 10:37:19 INFO: try to authenticate "success@domain.com" from cache 2022/09/09 10:37:19 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 ERROR: authenticating user "success@domain.com" from cache failed: error when getting user "success@domain.com" from cache: no entries. Denying access. 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestAuthenticateOffline,_connect_existing_user_from_cache1852157891/001 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticateOffline,_connect_existing_user_from_cache1852157891/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestAuthenticateOffline,_connect_existing_user_from_cache1852157891/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: encrypt password for user "success@domain.com" 2022/09/09 10:37:19 INFO: try to authenticate "futureuser@domain.com" from cache 2022/09/09 10:37:19 DEBUG: getting user information from cache for "futureuser@domain.com" 2022/09/09 10:37:19 DEBUG: Last online login was: 2054-04-03 13:36:08 +0000 UTC. Current time: 2022-09-09 10:37:19.053087134 +0000 UTC m=+0.185533080. Revalidation needed every 90 days 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: updating from last online login information for user "success@domain.com" 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: Close database request --- PASS: TestAuthenticate (0.00s) --- PASS: TestAuthenticate/error_on_invalid_password (0.00s) --- PASS: TestAuthenticate/error_on_unexisting_conf (0.00s) --- PASS: TestAuthenticate/error_on_invalid_conf (0.00s) --- PASS: TestAuthenticate/error_on_cache_can't_be_created/opened (0.06s) --- PASS: TestAuthenticate/error_on_offline_with_purged_user_account (0.09s) --- PASS: TestAuthenticate/error_on_server_error (0.00s) --- PASS: TestAuthenticate/authenticate_successfully_(online) (0.12s) --- PASS: TestAuthenticate/error_on_offline_with_unpurged_old_user_account (0.07s) --- PASS: TestAuthenticate/error_on_unexisting_users (0.00s) --- PASS: TestAuthenticate/error_on_offline_with_user_online_user_not_in_cache (0.08s) --- PASS: TestAuthenticate/authenticate_successfully_with_unmatched_case_(online) (0.19s) --- PASS: TestAuthenticate/specified_offline_expiration (0.10s) --- PASS: TestAuthenticate/Offline,_connect_existing_user_from_cache (0.14s) PASS ok github.com/ubuntu/aad-auth/internal/pam 0.269s ? github.com/ubuntu/aad-auth/internal/testutils [no test files] === RUN TestNormalizeName === PAUSE TestNormalizeName === CONT TestNormalizeName === RUN TestNormalizeName/name_with_mixed_case_is_lowercase === PAUSE TestNormalizeName/name_with_mixed_case_is_lowercase === RUN TestNormalizeName/lowercase_named_is_unchanged === PAUSE TestNormalizeName/lowercase_named_is_unchanged === CONT TestNormalizeName/name_with_mixed_case_is_lowercase === CONT TestNormalizeName/lowercase_named_is_unchanged --- PASS: TestNormalizeName (0.00s) --- PASS: TestNormalizeName/name_with_mixed_case_is_lowercase (0.00s) --- PASS: TestNormalizeName/lowercase_named_is_unchanged (0.00s) PASS ok github.com/ubuntu/aad-auth/internal/user 0.014s === RUN TestGetent === RUN TestGetent/list_entries_in_group 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_group2864443930/001 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_group2864443930/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_group2864443930/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:19 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:19 DEBUG: request to close group iteration in db 2022/09/09 10:37:19 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:19 DEBUG: Getting all entries from group 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_group2864443930/001 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_group2864443930/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_group2864443930/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: get next group entry 2022/09/09 10:37:19 DEBUG: request next group entry in db 2022/09/09 10:37:19 DEBUG: get next group entry 2022/09/09 10:37:19 DEBUG: request next group entry in db 2022/09/09 10:37:19 DEBUG: get next group entry 2022/09/09 10:37:19 DEBUG: request next group entry in db 2022/09/09 10:37:19 DEBUG: get next group entry 2022/09/09 10:37:19 DEBUG: request next group entry in db 2022/09/09 10:37:19 DEBUG: request to close group iteration in db 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:19 DEBUG: Close database request === RUN TestGetent/try_to_list_non-existent_entry_in_passwd 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_non-existent_entry_in_passwd1452568272/001 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_passwd1452568272/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_passwd1452568272/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:19 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:19 DEBUG: request to close group iteration in db 2022/09/09 10:37:19 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:19 DEBUG: Getting entry "doesnotexist@domain.com" from passwd 2022/09/09 10:37:19 DEBUG: Getting entry with name "doesnotexist@domain.com" from passwd 2022/09/09 10:37:19 DEBUG: Requesting a passwd entry matching name "doesnotexist@domain.com" 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_non-existent_entry_in_passwd1452568272/001 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_passwd1452568272/001/shadow.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_passwd1452568272/001/passwd.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: getting user information from cache for "doesnotexist@domain.com" 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:19 DEBUG: Close database request === RUN TestGetent/list_local_shadow_entry_without_cache 2022/09/09 10:37:19 DEBUG: Getting entry "root" from shadow 2022/09/09 10:37:19 DEBUG: Getting entry with name "root" from shadow 2022/09/09 10:37:19 DEBUG: Requesting a shadow entry matching name "root" 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestGetentlist_local_shadow_entry_without_cache2716271168/001 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetentlist_local_shadow_entry_without_cache2716271168/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetentlist_local_shadow_entry_without_cache2716271168/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: getting shadow information from cache for "root" 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: Returning to NSS error: 0 with errno: 2 === RUN TestGetent/try_to_list_shadow_without_access_to_shadow 2022/09/09 10:37:19 DEBUG: Cache initialization 2022/09/09 10:37:19 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_shadow_without_access_to_shadow3612628636/001 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_without_access_to_shadow3612628636/001/passwd.db 2022/09/09 10:37:19 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_without_access_to_shadow3612628636/001/shadow.db 2022/09/09 10:37:19 DEBUG: Shadow db mode: 2 2022/09/09 10:37:19 DEBUG: Clean up database 2022/09/09 10:37:19 DEBUG: Close database request 2022/09/09 10:37:19 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:19 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:19 DEBUG: request to close group iteration in db 2022/09/09 10:37:19 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_shadow_without_access_to_shadow3612628636/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_without_access_to_shadow3612628636/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_without_access_to_shadow3612628636/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 0 2022/09/09 10:37:20 DEBUG: get next shadow entry 2022/09/09 10:37:20 DEBUG: request next shadow entry in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_shadow_with_empty_cache 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_shadow_with_empty_cache1761635931/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_with_empty_cache1761635931/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_with_empty_cache1761635931/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Getting all entries from shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_shadow_with_empty_cache1761635931/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_with_empty_cache1761635931/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_with_empty_cache1761635931/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next shadow entry 2022/09/09 10:37:20 DEBUG: request next shadow entry in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db === RUN TestGetent/list_local_group_entry_without_cache 2022/09/09 10:37:20 DEBUG: Getting entry "0" from group 2022/09/09 10:37:20 DEBUG: Getting entry with id '\x00' from group 2022/09/09 10:37:20 DEBUG: Requesting an group entry matching GID 0 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_local_group_entry_without_cache1339905415/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_local_group_entry_without_cache1339905415/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_local_group_entry_without_cache1339905415/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting group information from cache for gid 0 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 === RUN TestGetent/try_to_list_group_without_permission_on_cache 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_group_without_permission_on_cache2576126688/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_group_without_permission_on_cache2576126688/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_group_without_permission_on_cache2576126688/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from group 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_group_without_permission_on_cache2576126688/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_group_without_permission_on_cache2576126688/001/shadow.db 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_get_group_entry_with_explicit_empty_key 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_get_group_entry_with_explicit_empty_key1451254227/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_group_entry_with_explicit_empty_key1451254227/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_group_entry_with_explicit_empty_key1451254227/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "" from group 2022/09/09 10:37:20 DEBUG: Getting entry with name "" from group 2022/09/09 10:37:20 DEBUG: Requesting a group entry matching name "" 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_get_group_entry_with_explicit_empty_key1451254227/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_group_entry_with_explicit_empty_key1451254227/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_group_entry_with_explicit_empty_key1451254227/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting group information from cache for "" 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_group_with_empty_cache 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_group_with_empty_cache2305136883/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_group_with_empty_cache2305136883/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_group_with_empty_cache2305136883/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Getting all entries from group 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_group_with_empty_cache2305136883/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_group_with_empty_cache2305136883/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_group_with_empty_cache2305136883/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next group entry 2022/09/09 10:37:20 DEBUG: request next group entry in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db === RUN TestGetent/list_local_passwd_entry_without_cache 2022/09/09 10:37:20 DEBUG: Getting entry "0" from passwd 2022/09/09 10:37:20 DEBUG: Getting entry with id '\x00' from passwd 2022/09/09 10:37:20 DEBUG: Requesting a passwd entry matching UID 0 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_local_passwd_entry_without_cache1092229636/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_local_passwd_entry_without_cache1092229636/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_local_passwd_entry_without_cache1092229636/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting user information from cache for uid 0 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 === RUN TestGetent/old_entries_in_group_are_cleaned 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentold_entries_in_group_are_cleaned2950871582/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_group_are_cleaned2950871582/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_group_are_cleaned2950871582/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from group 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentold_entries_in_group_are_cleaned2950871582/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_group_are_cleaned2950871582/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_group_are_cleaned2950871582/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next group entry 2022/09/09 10:37:20 DEBUG: request next group entry in db 2022/09/09 10:37:20 DEBUG: get next group entry 2022/09/09 10:37:20 DEBUG: request next group entry in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/list_entry_from_passwd_by_uid 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_passwd_by_uid1913547388/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_passwd_by_uid1913547388/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_passwd_by_uid1913547388/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "165119649" from passwd 2022/09/09 10:37:20 DEBUG: Getting entry with id '�' from passwd 2022/09/09 10:37:20 DEBUG: Requesting a passwd entry matching UID 165119649 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_passwd_by_uid1913547388/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_passwd_by_uid1913547388/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_passwd_by_uid1913547388/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting user information from cache for uid 165119649 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/list_entry_from_group_by_gid 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_group_by_gid2673385789/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_group_by_gid2673385789/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_group_by_gid2673385789/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "165119649" from group 2022/09/09 10:37:20 DEBUG: Getting entry with id '�' from group 2022/09/09 10:37:20 DEBUG: Requesting an group entry matching GID 165119649 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_group_by_gid2673385789/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_group_by_gid2673385789/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_group_by_gid2673385789/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting group information from cache for gid 165119649 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/list_entries_in_passwd 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_passwd936159135/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_passwd936159135/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_passwd936159135/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from passwd 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_passwd936159135/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_passwd936159135/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_passwd936159135/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/list_entries_in_shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_shadow193988837/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_shadow193988837/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_shadow193988837/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_shadow193988837/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_shadow193988837/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_shadow193988837/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next shadow entry 2022/09/09 10:37:20 DEBUG: request next shadow entry in db 2022/09/09 10:37:20 DEBUG: get next shadow entry 2022/09/09 10:37:20 DEBUG: request next shadow entry in db 2022/09/09 10:37:20 DEBUG: get next shadow entry 2022/09/09 10:37:20 DEBUG: request next shadow entry in db 2022/09/09 10:37:20 DEBUG: get next shadow entry 2022/09/09 10:37:20 DEBUG: request next shadow entry in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_group_without_cache_and_no_permission_to_create_it 2022/09/09 10:37:20 DEBUG: Getting all entries from group 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_group_without_cache_and_no_permission_to_create_it1288078125/001 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 === RUN TestGetent/try_to_get_passwd_entry_with_explicit_empty_key 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_get_passwd_entry_with_explicit_empty_key3738960230/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_passwd_entry_with_explicit_empty_key3738960230/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_passwd_entry_with_explicit_empty_key3738960230/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "" from passwd 2022/09/09 10:37:20 DEBUG: Getting entry with name "" from passwd 2022/09/09 10:37:20 DEBUG: Requesting a passwd entry matching name "" 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_get_passwd_entry_with_explicit_empty_key3738960230/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_passwd_entry_with_explicit_empty_key3738960230/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_passwd_entry_with_explicit_empty_key3738960230/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting user information from cache for "" 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/error_trying_to_list_entry_by_name_from_unsupported_db 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenterror_trying_to_list_entry_by_name_from_unsupported_db1562294132/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenterror_trying_to_list_entry_by_name_from_unsupported_db1562294132/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenterror_trying_to_list_entry_by_name_from_unsupported_db1562294132/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/list_entries_in_passwd_without_access_to_shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_passwd_without_access_to_shadow626444611/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_passwd_without_access_to_shadow626444611/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_passwd_without_access_to_shadow626444611/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from passwd 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_passwd_without_access_to_shadow626444611/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_passwd_without_access_to_shadow626444611/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_passwd_without_access_to_shadow626444611/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 0 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/list_entry_from_passwd_by_name 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_passwd_by_name632061414/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_passwd_by_name632061414/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_passwd_by_name632061414/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "myuser@domain.com" from passwd 2022/09/09 10:37:20 DEBUG: Getting entry with name "myuser@domain.com" from passwd 2022/09/09 10:37:20 DEBUG: Requesting a passwd entry matching name "myuser@domain.com" 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_passwd_by_name632061414/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_passwd_by_name632061414/001/shadow.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_passwd_by_name632061414/001/passwd.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_non-existent_entry_in_group 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_non-existent_entry_in_group1234081416/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_group1234081416/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_group1234081416/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "doesnotexist@domain.com" from group 2022/09/09 10:37:20 DEBUG: Getting entry with name "doesnotexist@domain.com" from group 2022/09/09 10:37:20 DEBUG: Requesting a group entry matching name "doesnotexist@domain.com" 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_non-existent_entry_in_group1234081416/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_group1234081416/001/shadow.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_group1234081416/001/passwd.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting group information from cache for "doesnotexist@domain.com" 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_non-existent_entry_in_shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_non-existent_entry_in_shadow3300728541/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_shadow3300728541/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_shadow3300728541/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "doesnotexist@domain.com" from shadow 2022/09/09 10:37:20 DEBUG: Getting entry with name "doesnotexist@domain.com" from shadow 2022/09/09 10:37:20 DEBUG: Requesting a shadow entry matching name "doesnotexist@domain.com" 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_non-existent_entry_in_shadow3300728541/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_shadow3300728541/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_non-existent_entry_in_shadow3300728541/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting shadow information from cache for "doesnotexist@domain.com" 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_shadow_without_permission_on_cache 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_shadow_without_permission_on_cache1388557692/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_without_permission_on_cache1388557692/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_without_permission_on_cache1388557692/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_shadow_without_permission_on_cache1388557692/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_shadow_without_permission_on_cache1388557692/001/passwd.db 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_get_shadow_entry_with_explicit_empty_key 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_get_shadow_entry_with_explicit_empty_key2293452297/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_shadow_entry_with_explicit_empty_key2293452297/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_shadow_entry_with_explicit_empty_key2293452297/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "" from shadow 2022/09/09 10:37:20 DEBUG: Getting entry with name "" from shadow 2022/09/09 10:37:20 DEBUG: Requesting a shadow entry matching name "" 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_get_shadow_entry_with_explicit_empty_key2293452297/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_shadow_entry_with_explicit_empty_key2293452297/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_get_shadow_entry_with_explicit_empty_key2293452297/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting shadow information from cache for "" 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/list_entry_from_shadow_by_name 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_shadow_by_name3191342358/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_shadow_by_name3191342358/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_shadow_by_name3191342358/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "myuser@domain.com" from shadow 2022/09/09 10:37:20 DEBUG: Getting entry with name "myuser@domain.com" from shadow 2022/09/09 10:37:20 DEBUG: Requesting a shadow entry matching name "myuser@domain.com" 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_shadow_by_name3191342358/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_shadow_by_name3191342358/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_shadow_by_name3191342358/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting shadow information from cache for "myuser@domain.com" 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_passwd_with_empty_cache 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_passwd_with_empty_cache581404957/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_passwd_with_empty_cache581404957/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_passwd_with_empty_cache581404957/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Getting all entries from passwd 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_passwd_with_empty_cache581404957/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_passwd_with_empty_cache581404957/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_passwd_with_empty_cache581404957/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db === RUN TestGetent/try_to_list_passwd_without_permission_on_cache 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_passwd_without_permission_on_cache458271439/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_passwd_without_permission_on_cache458271439/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_passwd_without_permission_on_cache458271439/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from passwd 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_passwd_without_permission_on_cache458271439/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_passwd_without_permission_on_cache458271439/001/passwd.db 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_entry_from_shadow_by_uid 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_entry_from_shadow_by_uid967262376/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_entry_from_shadow_by_uid967262376/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_entry_from_shadow_by_uid967262376/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "165119649" from shadow 2022/09/09 10:37:20 DEBUG: Getting entry with id '�' from shadow 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_shadow_without_cache_and_no_permission_to_create_it 2022/09/09 10:37:20 DEBUG: Getting all entries from shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_shadow_without_cache_and_no_permission_to_create_it3127437837/001 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 === RUN TestGetent/try_to_list_entry_from_shadow_by_name_without_access_to_shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_entry_from_shadow_by_name_without_access_to_shadow2587700093/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_entry_from_shadow_by_name_without_access_to_shadow2587700093/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_entry_from_shadow_by_name_without_access_to_shadow2587700093/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "myuser@domain.com" from shadow 2022/09/09 10:37:20 DEBUG: Getting entry with name "myuser@domain.com" from shadow 2022/09/09 10:37:20 DEBUG: Requesting a shadow entry matching name "myuser@domain.com" 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_entry_from_shadow_by_name_without_access_to_shadow2587700093/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_entry_from_shadow_by_name_without_access_to_shadow2587700093/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenttry_to_list_entry_from_shadow_by_name_without_access_to_shadow2587700093/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 0 2022/09/09 10:37:20 DEBUG: getting shadow information from cache for "myuser@domain.com" 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/list_entries_in_group_without_access_to_shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_group_without_access_to_shadow3912104469/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_group_without_access_to_shadow3912104469/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_group_without_access_to_shadow3912104469/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from group 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entries_in_group_without_access_to_shadow3912104469/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_group_without_access_to_shadow3912104469/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entries_in_group_without_access_to_shadow3912104469/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 0 2022/09/09 10:37:20 DEBUG: get next group entry 2022/09/09 10:37:20 DEBUG: request next group entry in db 2022/09/09 10:37:20 DEBUG: get next group entry 2022/09/09 10:37:20 DEBUG: request next group entry in db 2022/09/09 10:37:20 DEBUG: get next group entry 2022/09/09 10:37:20 DEBUG: request next group entry in db 2022/09/09 10:37:20 DEBUG: get next group entry 2022/09/09 10:37:20 DEBUG: request next group entry in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/list_entry_from_group_by_name 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_group_by_name1753209647/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_group_by_name1753209647/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_group_by_name1753209647/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting entry "myuser@domain.com" from group 2022/09/09 10:37:20 DEBUG: Getting entry with name "myuser@domain.com" from group 2022/09/09 10:37:20 DEBUG: Requesting a group entry matching name "myuser@domain.com" 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentlist_entry_from_group_by_name1753209647/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_group_by_name1753209647/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentlist_entry_from_group_by_name1753209647/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: getting group information from cache for "myuser@domain.com" 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/old_entries_in_shadow_are_cleaned 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentold_entries_in_shadow_are_cleaned3688993101/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_shadow_are_cleaned3688993101/001/shadow.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_shadow_are_cleaned3688993101/001/passwd.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentold_entries_in_shadow_are_cleaned3688993101/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_shadow_are_cleaned3688993101/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_shadow_are_cleaned3688993101/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next shadow entry 2022/09/09 10:37:20 DEBUG: request next shadow entry in db 2022/09/09 10:37:20 DEBUG: get next shadow entry 2022/09/09 10:37:20 DEBUG: request next shadow entry in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/try_to_list_passwd_without_cache_and_no_permission_to_create_it 2022/09/09 10:37:20 DEBUG: Getting all entries from passwd 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenttry_to_list_passwd_without_cache_and_no_permission_to_create_it3116810146/001 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 === RUN TestGetent/old_entries_in_passwd_are_cleaned 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentold_entries_in_passwd_are_cleaned2730517969/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_passwd_are_cleaned2730517969/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_passwd_are_cleaned2730517969/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Getting all entries from passwd 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetentold_entries_in_passwd_are_cleaned2730517969/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_passwd_are_cleaned2730517969/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetentold_entries_in_passwd_are_cleaned2730517969/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:20 DEBUG: Close database request === RUN TestGetent/error_trying_to_list_unsupported_db 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestGetenterror_trying_to_list_unsupported_db3079494966/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenterror_trying_to_list_unsupported_db3079494966/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestGetenterror_trying_to_list_unsupported_db3079494966/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:20 DEBUG: Close database request --- PASS: TestGetent (1.06s) --- PASS: TestGetent/list_entries_in_group (0.05s) --- PASS: TestGetent/try_to_list_non-existent_entry_in_passwd (0.05s) --- PASS: TestGetent/list_local_shadow_entry_without_cache (0.02s) --- PASS: TestGetent/try_to_list_shadow_without_access_to_shadow (0.05s) --- PASS: TestGetent/try_to_list_shadow_with_empty_cache (0.02s) --- PASS: TestGetent/list_local_group_entry_without_cache (0.02s) --- PASS: TestGetent/try_to_list_group_without_permission_on_cache (0.04s) --- PASS: TestGetent/try_to_get_group_entry_with_explicit_empty_key (0.04s) --- PASS: TestGetent/try_to_list_group_with_empty_cache (0.02s) --- PASS: TestGetent/list_local_passwd_entry_without_cache (0.01s) --- PASS: TestGetent/old_entries_in_group_are_cleaned (0.05s) --- PASS: TestGetent/list_entry_from_passwd_by_uid (0.04s) --- PASS: TestGetent/list_entry_from_group_by_gid (0.03s) --- PASS: TestGetent/list_entries_in_passwd (0.03s) --- PASS: TestGetent/list_entries_in_shadow (0.03s) --- PASS: TestGetent/try_to_list_group_without_cache_and_no_permission_to_create_it (0.00s) --- PASS: TestGetent/try_to_get_passwd_entry_with_explicit_empty_key (0.03s) --- PASS: TestGetent/error_trying_to_list_entry_by_name_from_unsupported_db (0.04s) --- PASS: TestGetent/list_entries_in_passwd_without_access_to_shadow (0.03s) --- PASS: TestGetent/list_entry_from_passwd_by_name (0.03s) --- PASS: TestGetent/try_to_list_non-existent_entry_in_group (0.03s) --- PASS: TestGetent/try_to_list_non-existent_entry_in_shadow (0.03s) --- PASS: TestGetent/try_to_list_shadow_without_permission_on_cache (0.03s) --- PASS: TestGetent/try_to_get_shadow_entry_with_explicit_empty_key (0.03s) --- PASS: TestGetent/list_entry_from_shadow_by_name (0.03s) --- PASS: TestGetent/try_to_list_passwd_with_empty_cache (0.01s) --- PASS: TestGetent/try_to_list_passwd_without_permission_on_cache (0.03s) --- PASS: TestGetent/try_to_list_entry_from_shadow_by_uid (0.03s) --- PASS: TestGetent/try_to_list_shadow_without_cache_and_no_permission_to_create_it (0.00s) --- PASS: TestGetent/try_to_list_entry_from_shadow_by_name_without_access_to_shadow (0.03s) --- PASS: TestGetent/list_entries_in_group_without_access_to_shadow (0.03s) --- PASS: TestGetent/list_entry_from_group_by_name (0.04s) --- PASS: TestGetent/old_entries_in_shadow_are_cleaned (0.04s) --- PASS: TestGetent/try_to_list_passwd_without_cache_and_no_permission_to_create_it (0.00s) --- PASS: TestGetent/old_entries_in_passwd_are_cleaned (0.04s) --- PASS: TestGetent/error_trying_to_list_unsupported_db (0.03s) === RUN TestIntegration === PAUSE TestIntegration === RUN TestFmtGetentOutput === PAUSE TestFmtGetentOutput === CONT TestIntegration === CONT TestFmtGetentOutput === RUN TestFmtGetentOutput/properly_format_with_error_ErrNotFoundSuccess === PAUSE TestFmtGetentOutput/properly_format_with_error_ErrNotFoundSuccess === RUN TestFmtGetentOutput/properly_format_with_multiple_entries === PAUSE TestFmtGetentOutput/properly_format_with_multiple_entries === RUN TestFmtGetentOutput/properly_format_with_error_ErrTryAgainEAgain === PAUSE TestFmtGetentOutput/properly_format_with_error_ErrTryAgainEAgain === RUN TestFmtGetentOutput/properly_format_with_error_ErrUnavailableENoEnt === PAUSE TestFmtGetentOutput/properly_format_with_error_ErrUnavailableENoEnt === RUN TestFmtGetentOutput/properly_format_with_error_ErrNotFoundENoEnt === PAUSE TestFmtGetentOutput/properly_format_with_error_ErrNotFoundENoEnt === RUN TestFmtGetentOutput/properly_format_with_an_error_and_multiple_entries === PAUSE TestFmtGetentOutput/properly_format_with_an_error_and_multiple_entries === RUN TestFmtGetentOutput/properly_format_with_nil_error === PAUSE TestFmtGetentOutput/properly_format_with_nil_error === RUN TestFmtGetentOutput/properly_format_with_no_entries === PAUSE TestFmtGetentOutput/properly_format_with_no_entries === RUN TestFmtGetentOutput/properly_format_with_error_ErrTryAgainERange === PAUSE TestFmtGetentOutput/properly_format_with_error_ErrTryAgainERange === RUN TestFmtGetentOutput/properly_format_with_unknown_Err === PAUSE TestFmtGetentOutput/properly_format_with_unknown_Err === CONT TestFmtGetentOutput/properly_format_with_error_ErrNotFoundSuccess 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 0 === CONT TestFmtGetentOutput/properly_format_with_unknown_Err 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 1 with errno: 22 === CONT TestFmtGetentOutput/properly_format_with_error_ErrTryAgainERange 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -2 with errno: 34 === CONT TestFmtGetentOutput/properly_format_with_no_entries 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 === CONT TestFmtGetentOutput/properly_format_with_nil_error 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 === CONT TestFmtGetentOutput/properly_format_with_an_error_and_multiple_entries 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 === CONT TestFmtGetentOutput/properly_format_with_error_ErrNotFoundENoEnt 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 === CONT TestFmtGetentOutput/properly_format_with_error_ErrUnavailableENoEnt 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 === CONT TestFmtGetentOutput/properly_format_with_error_ErrTryAgainEAgain 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -2 with errno: 11 === CONT TestFmtGetentOutput/properly_format_with_multiple_entries 2022/09/09 10:37:20 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 --- PASS: TestFmtGetentOutput (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_error_ErrNotFoundSuccess (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_unknown_Err (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_error_ErrTryAgainERange (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_no_entries (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_nil_error (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_an_error_and_multiple_entries (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_error_ErrNotFoundENoEnt (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_error_ErrUnavailableENoEnt (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_error_ErrTryAgainEAgain (0.00s) --- PASS: TestFmtGetentOutput/properly_format_with_multiple_entries (0.00s) === RUN TestIntegration/returns_nothing_when_listing_group_with_empty_cache === PAUSE TestIntegration/returns_nothing_when_listing_group_with_empty_cache === RUN TestIntegration/returns_nothing_when_listing_shadow_with_empty_cache === PAUSE TestIntegration/returns_nothing_when_listing_shadow_with_empty_cache === RUN TestIntegration/list_local_shadow_entry_without_cache === PAUSE TestIntegration/list_local_shadow_entry_without_cache === RUN TestIntegration/list_group_without_access_to_shadow === PAUSE TestIntegration/list_group_without_access_to_shadow === RUN TestIntegration/list_entry_from_group_by_name === PAUSE TestIntegration/list_entry_from_group_by_name === RUN TestIntegration/list_entry_from_passwd_by_uid === PAUSE TestIntegration/list_entry_from_passwd_by_uid === RUN TestIntegration/list_group === PAUSE TestIntegration/list_group === RUN TestIntegration/returns_nothing_when_listing_passwd_without_cache_and_no_permission_to_create_it === PAUSE TestIntegration/returns_nothing_when_listing_passwd_without_cache_and_no_permission_to_create_it === RUN TestIntegration/list_passwd_without_access_to_shadow === PAUSE TestIntegration/list_passwd_without_access_to_shadow === RUN TestIntegration/list_entry_from_passwd_by_name_without_access_to_shadow === PAUSE TestIntegration/list_entry_from_passwd_by_name_without_access_to_shadow === RUN TestIntegration/list_entry_from_group_by_gid === PAUSE TestIntegration/list_entry_from_group_by_gid === RUN TestIntegration/error_when_listing_entry_from_shadow_by_uid === PAUSE TestIntegration/error_when_listing_entry_from_shadow_by_uid === RUN TestIntegration/old_entries_in_group_are_cleaned === PAUSE TestIntegration/old_entries_in_group_are_cleaned === RUN TestIntegration/error_on_trying_to_list_entry_by_name_from_unsupported_db === PAUSE TestIntegration/error_on_trying_to_list_entry_by_name_from_unsupported_db === RUN TestIntegration/returns_nothing_when_listing_shadow_without_cache_and_no_permission_to_create_it === PAUSE TestIntegration/returns_nothing_when_listing_shadow_without_cache_and_no_permission_to_create_it === RUN TestIntegration/returns_nothing_when_listing_passwd_with_empty_cache === PAUSE TestIntegration/returns_nothing_when_listing_passwd_with_empty_cache === RUN TestIntegration/returns_nothing_when_listing_shadow_without_access === PAUSE TestIntegration/returns_nothing_when_listing_shadow_without_access === RUN TestIntegration/list_entry_from_passwd_by_name === PAUSE TestIntegration/list_entry_from_passwd_by_name === RUN TestIntegration/returns_nothing_when_listing_shadow_without_permission_on_cache === PAUSE TestIntegration/returns_nothing_when_listing_shadow_without_permission_on_cache === RUN TestIntegration/error_on_get_entry_from_passwd_with_explicit_empty_key === PAUSE TestIntegration/error_on_get_entry_from_passwd_with_explicit_empty_key === RUN TestIntegration/list_entry_from_group_by_name_without_access_to_shadow === PAUSE TestIntegration/list_entry_from_group_by_name_without_access_to_shadow === RUN TestIntegration/returns_nothing_when_listing_group_without_cache_and_no_permission_to_create_it === PAUSE TestIntegration/returns_nothing_when_listing_group_without_cache_and_no_permission_to_create_it === RUN TestIntegration/error_on_get_entry_from_group_with_explicit_empty_key === PAUSE TestIntegration/error_on_get_entry_from_group_with_explicit_empty_key === RUN TestIntegration/error_on_get_entry_from_shadow_with_explicit_empty_key === PAUSE TestIntegration/error_on_get_entry_from_shadow_with_explicit_empty_key === RUN TestIntegration/list_entry_from_passwd_by_uid_without_access_to_shadow === PAUSE TestIntegration/list_entry_from_passwd_by_uid_without_access_to_shadow === RUN TestIntegration/list_shadow === PAUSE TestIntegration/list_shadow === RUN TestIntegration/error_when_listing_non-existent_entry_in_group === PAUSE TestIntegration/error_when_listing_non-existent_entry_in_group === RUN TestIntegration/error_on_trying_to_list_unsupported_db === PAUSE TestIntegration/error_on_trying_to_list_unsupported_db === RUN TestIntegration/list_entry_from_group_by_gid_without_access_to_shadow === PAUSE TestIntegration/list_entry_from_group_by_gid_without_access_to_shadow === RUN TestIntegration/old_entries_in_passwd_are_cleaned === PAUSE TestIntegration/old_entries_in_passwd_are_cleaned === RUN TestIntegration/old_entries_in_shadow_are_cleaned === PAUSE TestIntegration/old_entries_in_shadow_are_cleaned === RUN TestIntegration/returns_nothing_when_listing_group_without_permission_on_cache === PAUSE TestIntegration/returns_nothing_when_listing_group_without_permission_on_cache === RUN TestIntegration/error_when_listing_entry_from_shadow_by_name_without_access === PAUSE TestIntegration/error_when_listing_entry_from_shadow_by_name_without_access === RUN TestIntegration/list_passwd === PAUSE TestIntegration/list_passwd === RUN TestIntegration/error_when_listing_non-existent_entry_in_passwd === PAUSE TestIntegration/error_when_listing_non-existent_entry_in_passwd === RUN TestIntegration/error_when_listing_non-existent_entry_in_shadow === PAUSE TestIntegration/error_when_listing_non-existent_entry_in_shadow === RUN TestIntegration/list_local_passwd_entry_without_cache === PAUSE TestIntegration/list_local_passwd_entry_without_cache === RUN TestIntegration/list_entry_from_shadow_by_name === PAUSE TestIntegration/list_entry_from_shadow_by_name === RUN TestIntegration/list_local_group_entry_without_cache === PAUSE TestIntegration/list_local_group_entry_without_cache === RUN TestIntegration/returns_nothing_when_listing_passwd_without_permission_on_cache === PAUSE TestIntegration/returns_nothing_when_listing_passwd_without_permission_on_cache === RUN TestIntegration/error_when_listing_entry_from_shadow_by_uid_without_access === PAUSE TestIntegration/error_when_listing_entry_from_shadow_by_uid_without_access === CONT TestIntegration/returns_nothing_when_listing_group_with_empty_cache 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_group_with_empty_cache2959792461/001 === CONT TestIntegration/error_when_listing_entry_from_shadow_by_uid === CONT TestIntegration/returns_nothing_when_listing_shadow_without_access === CONT TestIntegration/returns_nothing_when_listing_passwd_with_empty_cache 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_group_with_empty_cache2959792461/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_group_with_empty_cache2959792461/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_uid3703113739/001 2022/09/09 10:37:20 DEBUG: Getting all entries from group 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_group_with_empty_cache2959792461/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_group_with_empty_cache2959792461/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_group_with_empty_cache2959792461/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next group entry 2022/09/09 10:37:20 DEBUG: request next group entry in db 2022/09/09 10:37:20 DEBUG: request to close group iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 0 2022/09/09 10:37:20 ERROR: no logger attached to context root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4: tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20: fax:x:21: voice:x:22: cdrom:x:24: floppy:x:25: tape:x:26: sudo:x:27: audio:x:29: dip:x:30: www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: shadow:x:42: utmp:x:43: video:x:44: sasl:x:45: plugdev:x:46: staff:x:50: games:x:60: users:x:100: nogroup:x:65534: systemd-journal:x:101: systemd-network:x:102: buildd:x:2501: sbuild:x:119:buildd 2022/09/09 10:37:20 DEBUG: Close database request === CONT TestIntegration/returns_nothing_when_listing_shadow_without_cache_and_no_permission_to_create_it 2022/09/09 10:37:20 DEBUG: Getting all entries from shadow 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_cache_and_no_permission_to_create_it1581297540/001 2022/09/09 10:37:20 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:20 ERROR: no logger attached to context === CONT TestIntegration/error_on_trying_to_list_entry_by_name_from_unsupported_db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_uid3703113739/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_uid3703113739/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_passwd_with_empty_cache3228631187/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_passwd_with_empty_cache3228631187/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_passwd_with_empty_cache3228631187/001/shadow.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_access1602238703/001 2022/09/09 10:37:20 DEBUG: Getting all entries from passwd 2022/09/09 10:37:20 DEBUG: Cache initialization 2022/09/09 10:37:20 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_passwd_with_empty_cache3228631187/001 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_passwd_with_empty_cache3228631187/001/shadow.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_passwd_with_empty_cache3228631187/001/passwd.db 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:20 DEBUG: get next passwd entry 2022/09/09 10:37:20 DEBUG: request next passwd entry in db 2022/09/09 10:37:20 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:20 DEBUG: Close database request 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 0 2022/09/09 10:37:20 ERROR: no logger attached to context root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin _apt:x:100:65534::/nonexistent:/usr/sbin/nologin systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin buildd:x:2001:2501:Build Daemon user,,,:/home/buildd:/bin/bash sbuild:x:113:119:Debian source builder,,,:/var/lib/sbuild:/bin/bash 2022/09/09 10:37:20 DEBUG: Close database request === CONT TestIntegration/old_entries_in_group_are_cleaned 2022/09/09 10:37:20 DEBUG: Getting entry "165119649" from shadow 2022/09/09 10:37:20 DEBUG: Getting entry with id '�' from shadow 2022/09/09 10:37:20 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:20 ERROR: no logger attached to context 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_access1602238703/001/passwd.db 2022/09/09 10:37:20 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_access1602238703/001/shadow.db 2022/09/09 10:37:20 DEBUG: Close database request === CONT TestIntegration/returns_nothing_when_listing_group_without_permission_on_cache 2022/09/09 10:37:20 DEBUG: Shadow db mode: 2 2022/09/09 10:37:20 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_on_trying_to_list_entry_by_name_from_unsupported_db1188408959/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_trying_to_list_entry_by_name_from_unsupported_db1188408959/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_trying_to_list_entry_by_name_from_unsupported_db1188408959/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationold_entries_in_group_are_cleaned485690036/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_group_are_cleaned485690036/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_group_are_cleaned485690036/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Getting all entries from shadow 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_access1602238703/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_access1602238703/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_access1602238703/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 0 2022/09/09 10:37:21 DEBUG: get next shadow entry 2022/09/09 10:37:21 DEBUG: request next shadow entry in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/error_when_listing_entry_from_shadow_by_uid_without_access 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_group_without_permission_on_cache2949763255/001 Unknown database: unsupported Try `getent --help' or `getent --usage' for more information. 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/returns_nothing_when_listing_passwd_without_permission_on_cache 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_group_without_permission_on_cache2949763255/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_group_without_permission_on_cache2949763255/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_uid_without_access3834019346/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_uid_without_access3834019346/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_uid_without_access3834019346/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Getting all entries from group 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationold_entries_in_group_are_cleaned485690036/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_group_are_cleaned485690036/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_group_are_cleaned485690036/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4: tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20: fax:x:21: voice:x:22: cdrom:x:24: floppy:x:25: tape:x:26: sudo:x:27: audio:x:29: dip:x:30: www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: shadow:x:42: utmp:x:43: video:x:44: sasl:x:45: plugdev:x:46: staff:x:50: games:x:60: users:x:100: nogroup:x:65534: systemd-journal:x:101: systemd-network:x:102: buildd:x:2501: sbuild:x:119:buildd futureuser@domain.com:x:80938656:futureuser@domain.com 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_local_group_entry_without_cache 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_passwd_without_permission_on_cache2309722715/001 root:x:0: === CONT TestIntegration/list_entry_from_shadow_by_name 2022/09/09 10:37:21 DEBUG: Getting all entries from group 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_group_without_permission_on_cache2949763255/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_group_without_permission_on_cache2949763255/001/passwd.db 2022/09/09 10:37:21 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4: tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20: fax:x:21: voice:x:22: cdrom:x:24: floppy:x:25: tape:x:26: sudo:x:27: audio:x:29: dip:x:30: www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: shadow:x:42: utmp:x:43: video:x:44: sasl:x:45: plugdev:x:46: staff:x:50: games:x:60: users:x:100: nogroup:x:65534: systemd-journal:x:101: systemd-network:x:102: buildd:x:2501: sbuild:x:119:buildd 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_local_passwd_entry_without_cache root:x:0:0:root:/root:/bin/bash === CONT TestIntegration/error_when_listing_non-existent_entry_in_shadow 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_passwd_without_permission_on_cache2309722715/001/shadow.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_passwd_without_permission_on_cache2309722715/001/passwd.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_shadow_by_name1765583424/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_shadow_by_name1765583424/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_shadow_by_name1765583424/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Getting entry "165119649" from shadow 2022/09/09 10:37:21 DEBUG: Getting entry with id '�' from shadow 2022/09/09 10:37:21 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/error_when_listing_non-existent_entry_in_passwd 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_shadow201201608/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_shadow201201608/001/shadow.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_shadow201201608/001/passwd.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Getting all entries from passwd 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_passwd_without_permission_on_cache2309722715/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_passwd_without_permission_on_cache2309722715/001/passwd.db 2022/09/09 10:37:21 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin _apt:x:100:65534::/nonexistent:/usr/sbin/nologin systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin buildd:x:2001:2501:Build Daemon user,,,:/home/buildd:/bin/bash sbuild:x:113:119:Debian source builder,,,:/var/lib/sbuild:/bin/bash 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_passwd 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_passwd1552857032/001 2022/09/09 10:37:21 DEBUG: Getting entry "myuser@domain.com" from shadow 2022/09/09 10:37:21 DEBUG: Getting entry with name "myuser@domain.com" from shadow 2022/09/09 10:37:21 DEBUG: Requesting a shadow entry matching name "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_shadow_by_name1765583424/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_shadow_by_name1765583424/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_shadow_by_name1765583424/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting shadow information from cache for "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context myuser@domain.com:*::::::: 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/error_when_listing_entry_from_shadow_by_name_without_access 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_passwd1552857032/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_passwd1552857032/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_passwd4146778877/001 2022/09/09 10:37:21 DEBUG: Getting entry "doesnotexist@domain.com" from shadow 2022/09/09 10:37:21 DEBUG: Getting entry with name "doesnotexist@domain.com" from shadow 2022/09/09 10:37:21 DEBUG: Requesting a shadow entry matching name "doesnotexist@domain.com" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_shadow201201608/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_shadow201201608/001/shadow.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_shadow201201608/001/passwd.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting shadow information from cache for "doesnotexist@domain.com" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/error_when_listing_non-existent_entry_in_group 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_passwd4146778877/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_passwd4146778877/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_name_without_access629622079/001 2022/09/09 10:37:21 DEBUG: Getting entry "doesnotexist@domain.com" from passwd 2022/09/09 10:37:21 DEBUG: Getting entry with name "doesnotexist@domain.com" from passwd 2022/09/09 10:37:21 DEBUG: Requesting a passwd entry matching name "doesnotexist@domain.com" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_passwd1552857032/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_passwd1552857032/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_passwd1552857032/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting user information from cache for "doesnotexist@domain.com" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/old_entries_in_shadow_are_cleaned 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_name_without_access629622079/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_name_without_access629622079/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_group1475958233/001 2022/09/09 10:37:21 DEBUG: Getting all entries from passwd 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_passwd4146778877/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_passwd4146778877/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_passwd4146778877/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin _apt:x:100:65534::/nonexistent:/usr/sbin/nologin systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin buildd:x:2001:2501:Build Daemon user,,,:/home/buildd:/bin/bash sbuild:x:113:119:Debian source builder,,,:/var/lib/sbuild:/bin/bash myuser@domain.com:x:1929326240:1929326240::/home/myuser@domain.com:/bin/bash otheruser@domain.com:x:165119648:165119648::/home/otheruser@domain.com:/bin/bash user@otherdomain.com:x:165119649:165119649::/home/user@otherdomain.com:/bin/bash 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/old_entries_in_passwd_are_cleaned 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_group1475958233/001/shadow.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_group1475958233/001/passwd.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationold_entries_in_shadow_are_cleaned1419019997/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_shadow_are_cleaned1419019997/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_shadow_are_cleaned1419019997/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationold_entries_in_passwd_are_cleaned1690366944/001 2022/09/09 10:37:21 DEBUG: Getting entry "myuser@domain.com" from shadow 2022/09/09 10:37:21 DEBUG: Getting entry with name "myuser@domain.com" from shadow 2022/09/09 10:37:21 DEBUG: Requesting a shadow entry matching name "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_name_without_access629622079/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_name_without_access629622079/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_entry_from_shadow_by_name_without_access629622079/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 0 2022/09/09 10:37:21 DEBUG: getting shadow information from cache for "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_entry_from_group_by_gid_without_access_to_shadow 2022/09/09 10:37:21 DEBUG: Getting entry "doesnotexist@domain.com" from group 2022/09/09 10:37:21 DEBUG: Getting entry with name "doesnotexist@domain.com" from group 2022/09/09 10:37:21 DEBUG: Requesting a group entry matching name "doesnotexist@domain.com" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_group1475958233/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_group1475958233/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_when_listing_non-existent_entry_in_group1475958233/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting group information from cache for "doesnotexist@domain.com" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/error_on_trying_to_list_unsupported_db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_passwd_are_cleaned1690366944/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_passwd_are_cleaned1690366944/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_group_by_gid_without_access_to_shadow2560523872/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_gid_without_access_to_shadow2560523872/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_gid_without_access_to_shadow2560523872/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_on_trying_to_list_unsupported_db1060802113/001 2022/09/09 10:37:21 DEBUG: Getting all entries from shadow 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationold_entries_in_shadow_are_cleaned1419019997/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_shadow_are_cleaned1419019997/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_shadow_are_cleaned1419019997/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: get next shadow entry 2022/09/09 10:37:21 DEBUG: request next shadow entry in db 2022/09/09 10:37:21 DEBUG: get next shadow entry 2022/09/09 10:37:21 DEBUG: request next shadow entry in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context futureuser@domain.com:$2a$10$cF4IsiVtLzwUTpboXHlv.eaK4BCnwn4r/Rjdry5iSJpq6zAjA0gGy::::::: 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_entry_from_passwd_by_uid_without_access_to_shadow 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_trying_to_list_unsupported_db1060802113/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_trying_to_list_unsupported_db1060802113/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_passwd_by_uid_without_access_to_shadow4238058325/001 2022/09/09 10:37:21 DEBUG: Getting all entries from passwd 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationold_entries_in_passwd_are_cleaned1690366944/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_passwd_are_cleaned1690366944/001/shadow.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationold_entries_in_passwd_are_cleaned1690366944/001/passwd.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin _apt:x:100:65534::/nonexistent:/usr/sbin/nologin systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin buildd:x:2001:2501:Build Daemon user,,,:/home/buildd:/bin/bash sbuild:x:113:119:Debian source builder,,,:/var/lib/sbuild:/bin/bash futureuser@domain.com:x:80938656:80938656::/home/futureuser@domain.com:/bin/bash 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_shadow 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_uid_without_access_to_shadow4238058325/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_uid_without_access_to_shadow4238058325/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_shadow1825262873/001 2022/09/09 10:37:21 DEBUG: Getting entry "165119649" from group 2022/09/09 10:37:21 DEBUG: Getting entry with id '�' from group 2022/09/09 10:37:21 DEBUG: Requesting an group entry matching GID 165119649 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_group_by_gid_without_access_to_shadow2560523872/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_gid_without_access_to_shadow2560523872/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_gid_without_access_to_shadow2560523872/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 0 2022/09/09 10:37:21 DEBUG: getting group information from cache for gid 165119649 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context user@otherdomain.com:x:165119649:user@otherdomain.com 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_group Unknown database: unsupported Try `getent --help' or `getent --usage' for more information. 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_entry_from_group_by_gid 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_shadow1825262873/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_shadow1825262873/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_group3100967413/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_group3100967413/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_group3100967413/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Getting entry "165119649" from passwd 2022/09/09 10:37:21 DEBUG: Getting entry with id '�' from passwd 2022/09/09 10:37:21 DEBUG: Requesting a passwd entry matching UID 165119649 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_passwd_by_uid_without_access_to_shadow4238058325/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_uid_without_access_to_shadow4238058325/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_uid_without_access_to_shadow4238058325/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 0 2022/09/09 10:37:21 DEBUG: getting user information from cache for uid 165119649 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context user@otherdomain.com:x:165119649:165119649::/home/user@otherdomain.com:/bin/bash 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_entry_from_passwd_by_name_without_access_to_shadow 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_group_by_gid713901327/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_gid713901327/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_gid713901327/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_passwd_by_name_without_access_to_shadow2397593418/001 2022/09/09 10:37:21 DEBUG: Getting all entries from shadow 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_shadow1825262873/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_shadow1825262873/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_shadow1825262873/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: get next shadow entry 2022/09/09 10:37:21 DEBUG: request next shadow entry in db 2022/09/09 10:37:21 DEBUG: get next shadow entry 2022/09/09 10:37:21 DEBUG: request next shadow entry in db 2022/09/09 10:37:21 DEBUG: get next shadow entry 2022/09/09 10:37:21 DEBUG: request next shadow entry in db 2022/09/09 10:37:21 DEBUG: get next shadow entry 2022/09/09 10:37:21 DEBUG: request next shadow entry in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context myuser@domain.com:$2a$10$R4ieqs.yZJuN1MSp2xhevemo5XnGK5oZ/RnMgWM67cpC3I10no97q::::::: otheruser@domain.com:$2a$10$XnMdMBMWoYRxZdODZXhB2O6ZUiAQedtX3VuIVJc3bVpdNHuEBa8YS::::::: user@otherdomain.com:$2a$10$uA1nwSVblaSj9GtYnP38/eAu9q6fQfJWgAeVMd6dyZfgsaYL5TgsS::::::: 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_passwd_without_access_to_shadow 2022/09/09 10:37:21 DEBUG: Getting all entries from group 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_group3100967413/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_group3100967413/001/shadow.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_group3100967413/001/passwd.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4: tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20: fax:x:21: voice:x:22: cdrom:x:24: floppy:x:25: tape:x:26: sudo:x:27: audio:x:29: dip:x:30: www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: shadow:x:42: utmp:x:43: video:x:44: sasl:x:45: plugdev:x:46: staff:x:50: games:x:60: users:x:100: nogroup:x:65534: systemd-journal:x:101: systemd-network:x:102: buildd:x:2501: sbuild:x:119:buildd myuser@domain.com:x:1929326240:myuser@domain.com otheruser@domain.com:x:165119648:otheruser@domain.com user@otherdomain.com:x:165119649:user@otherdomain.com 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/returns_nothing_when_listing_passwd_without_cache_and_no_permission_to_create_it 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_name_without_access_to_shadow2397593418/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_name_without_access_to_shadow2397593418/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_passwd_without_access_to_shadow2909519348/001 2022/09/09 10:37:21 DEBUG: Getting all entries from passwd 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_passwd_without_cache_and_no_permission_to_create_it22637805/001 2022/09/09 10:37:21 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin _apt:x:100:65534::/nonexistent:/usr/sbin/nologin systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin buildd:x:2001:2501:Build Daemon user,,,:/home/buildd:/bin/bash sbuild:x:113:119:Debian source builder,,,:/var/lib/sbuild:/bin/bash === CONT TestIntegration/list_group_without_access_to_shadow 2022/09/09 10:37:21 DEBUG: Getting entry "165119649" from group 2022/09/09 10:37:21 DEBUG: Getting entry with id '�' from group 2022/09/09 10:37:21 DEBUG: Requesting an group entry matching GID 165119649 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_group_by_gid713901327/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_gid713901327/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_gid713901327/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting group information from cache for gid 165119649 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context user@otherdomain.com:x:165119649:user@otherdomain.com 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_passwd_without_access_to_shadow2909519348/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_passwd_without_access_to_shadow2909519348/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_entry_from_passwd_by_uid 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_group_without_access_to_shadow427999022/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_group_without_access_to_shadow427999022/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_group_without_access_to_shadow427999022/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_passwd_by_uid2743574308/001 2022/09/09 10:37:21 DEBUG: Getting entry "myuser@domain.com" from passwd 2022/09/09 10:37:21 DEBUG: Getting entry with name "myuser@domain.com" from passwd 2022/09/09 10:37:21 DEBUG: Requesting a passwd entry matching name "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_passwd_by_name_without_access_to_shadow2397593418/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_name_without_access_to_shadow2397593418/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_name_without_access_to_shadow2397593418/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 0 2022/09/09 10:37:21 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context myuser@domain.com:x:1929326240:1929326240::/home/myuser@domain.com:/bin/bash 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_entry_from_group_by_name 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_uid2743574308/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_uid2743574308/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Getting all entries from passwd 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_passwd_without_access_to_shadow2909519348/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_passwd_without_access_to_shadow2909519348/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_passwd_without_access_to_shadow2909519348/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 0 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: get next passwd entry 2022/09/09 10:37:21 DEBUG: request next passwd entry in db 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin sync:x:4:65534:sync:/bin:/bin/sync games:x:5:60:games:/usr/games:/usr/sbin/nologin man:x:6:12:man:/var/cache/man:/usr/sbin/nologin lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin mail:x:8:8:mail:/var/mail:/usr/sbin/nologin news:x:9:9:news:/var/spool/news:/usr/sbin/nologin uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin proxy:x:13:13:proxy:/bin:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin backup:x:34:34:backup:/var/backups:/usr/sbin/nologin list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin irc:x:39:39:ircd:/run/ircd:/usr/sbin/nologin nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin _apt:x:100:65534::/nonexistent:/usr/sbin/nologin systemd-network:x:101:102:systemd Network Management,,,:/run/systemd:/usr/sbin/nologin buildd:x:2001:2501:Build Daemon user,,,:/home/buildd:/bin/bash sbuild:x:113:119:Debian source builder,,,:/var/lib/sbuild:/bin/bash myuser@domain.com:x:1929326240:1929326240::/home/myuser@domain.com:/bin/bash otheruser@domain.com:x:165119648:165119648::/home/otheruser@domain.com:/bin/bash user@otherdomain.com:x:165119649:165119649::/home/user@otherdomain.com:/bin/bash 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/error_on_get_entry_from_shadow_with_explicit_empty_key 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_group_by_name3617154161/001 2022/09/09 10:37:21 DEBUG: Getting all entries from group 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_group_without_access_to_shadow427999022/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_group_without_access_to_shadow427999022/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_group_without_access_to_shadow427999022/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 0 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: get next group entry 2022/09/09 10:37:21 DEBUG: request next group entry in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4: tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20: fax:x:21: voice:x:22: cdrom:x:24: floppy:x:25: tape:x:26: sudo:x:27: audio:x:29: dip:x:30: www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: shadow:x:42: utmp:x:43: video:x:44: sasl:x:45: plugdev:x:46: staff:x:50: games:x:60: users:x:100: nogroup:x:65534: systemd-journal:x:101: systemd-network:x:102: buildd:x:2501: sbuild:x:119:buildd myuser@domain.com:x:1929326240:myuser@domain.com otheruser@domain.com:x:165119648:otheruser@domain.com user@otherdomain.com:x:165119649:user@otherdomain.com 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_local_shadow_entry_without_cache 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_name3617154161/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_name3617154161/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_on_get_entry_from_shadow_with_explicit_empty_key3367169495/001 2022/09/09 10:37:21 DEBUG: Getting entry "165119649" from passwd 2022/09/09 10:37:21 DEBUG: Getting entry with id '�' from passwd 2022/09/09 10:37:21 DEBUG: Requesting a passwd entry matching UID 165119649 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_passwd_by_uid2743574308/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_uid2743574308/001/shadow.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_uid2743574308/001/passwd.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting user information from cache for uid 165119649 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context user@otherdomain.com:x:165119649:165119649::/home/user@otherdomain.com:/bin/bash 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/error_on_get_entry_from_group_with_explicit_empty_key 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_shadow_with_explicit_empty_key3367169495/001/shadow.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_shadow_with_explicit_empty_key3367169495/001/passwd.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_on_get_entry_from_group_with_explicit_empty_key2334518921/001 2022/09/09 10:37:21 DEBUG: Getting entry "root" from shadow 2022/09/09 10:37:21 DEBUG: Getting entry with name "root" from shadow 2022/09/09 10:37:21 DEBUG: Requesting a shadow entry matching name "root" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_local_shadow_entry_without_cache2024444728/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_local_shadow_entry_without_cache2024444728/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_local_shadow_entry_without_cache2024444728/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting shadow information from cache for "root" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context === CONT TestIntegration/returns_nothing_when_listing_shadow_with_empty_cache 2022/09/09 10:37:21 DEBUG: Getting entry "myuser@domain.com" from group 2022/09/09 10:37:21 DEBUG: Getting entry with name "myuser@domain.com" from group 2022/09/09 10:37:21 DEBUG: Requesting a group entry matching name "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_group_by_name3617154161/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_name3617154161/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_name3617154161/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting group information from cache for "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context myuser@domain.com:x:1929326240:myuser@domain.com 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/error_on_get_entry_from_passwd_with_explicit_empty_key 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_group_with_explicit_empty_key2334518921/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_group_with_explicit_empty_key2334518921/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_shadow_with_empty_cache1398591168/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_with_empty_cache1398591168/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_with_empty_cache1398591168/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_on_get_entry_from_passwd_with_explicit_empty_key3902659273/001 2022/09/09 10:37:21 DEBUG: Getting entry "" from shadow 2022/09/09 10:37:21 DEBUG: Getting entry with name "" from shadow 2022/09/09 10:37:21 DEBUG: Requesting a shadow entry matching name "" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_on_get_entry_from_shadow_with_explicit_empty_key3367169495/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_shadow_with_explicit_empty_key3367169495/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_shadow_with_explicit_empty_key3367169495/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting shadow information from cache for "" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_entry_from_group_by_name_without_access_to_shadow 2022/09/09 10:37:21 DEBUG: Getting all entries from shadow 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_shadow_with_empty_cache1398591168/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_with_empty_cache1398591168/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_with_empty_cache1398591168/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: get next shadow entry 2022/09/09 10:37:21 DEBUG: request next shadow entry in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: 0 with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/returns_nothing_when_listing_shadow_without_permission_on_cache 2022/09/09 10:37:21 DEBUG: Getting entry "" from group 2022/09/09 10:37:21 DEBUG: Getting entry with name "" from group 2022/09/09 10:37:21 DEBUG: Requesting a group entry matching name "" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_on_get_entry_from_group_with_explicit_empty_key2334518921/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_group_with_explicit_empty_key2334518921/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_group_with_explicit_empty_key2334518921/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting group information from cache for "" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request === CONT TestIntegration/list_entry_from_passwd_by_name 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_passwd_with_explicit_empty_key3902659273/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_passwd_with_explicit_empty_key3902659273/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_group_by_name_without_access_to_shadow1356474727/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_name_without_access_to_shadow1356474727/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_name_without_access_to_shadow1356474727/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_permission_on_cache2056614737/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_permission_on_cache2056614737/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_permission_on_cache2056614737/001/shadow.db 2022/09/09 10:37:21 DEBUG: Getting entry "" from passwd 2022/09/09 10:37:21 DEBUG: Getting entry with name "" from passwd 2022/09/09 10:37:21 DEBUG: Requesting a passwd entry matching name "" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationerror_on_get_entry_from_passwd_with_explicit_empty_key3902659273/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_passwd_with_explicit_empty_key3902659273/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationerror_on_get_entry_from_passwd_with_explicit_empty_key3902659273/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting user information from cache for "" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning to NSS error: 0 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database === CONT TestIntegration/returns_nothing_when_listing_group_without_cache_and_no_permission_to_create_it 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_passwd_by_name2070452431/001 2022/09/09 10:37:21 DEBUG: Getting all entries from group 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_group_without_cache_and_no_permission_to_create_it1035252397/001 2022/09/09 10:37:21 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4: tty:x:5: disk:x:6: lp:x:7: mail:x:8: news:x:9: uucp:x:10: man:x:12: proxy:x:13: kmem:x:15: dialout:x:20: fax:x:21: voice:x:22: cdrom:x:24: floppy:x:25: tape:x:26: sudo:x:27: audio:x:29: dip:x:30: www-data:x:33: backup:x:34: operator:x:37: list:x:38: irc:x:39: src:x:40: shadow:x:42: utmp:x:43: video:x:44: sasl:x:45: plugdev:x:46: staff:x:50: games:x:60: users:x:100: nogroup:x:65534: systemd-journal:x:101: systemd-network:x:102: buildd:x:2501: sbuild:x:119:buildd 2022/09/09 10:37:21 DEBUG: Getting entry "myuser@domain.com" from group 2022/09/09 10:37:21 DEBUG: Getting entry with name "myuser@domain.com" from group 2022/09/09 10:37:21 DEBUG: Requesting a group entry matching name "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_group_by_name_without_access_to_shadow1356474727/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_name_without_access_to_shadow1356474727/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_group_by_name_without_access_to_shadow1356474727/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 0 2022/09/09 10:37:21 DEBUG: getting group information from cache for "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context myuser@domain.com:x:1929326240:myuser@domain.com 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_name2070452431/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_name2070452431/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:21 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:21 DEBUG: request to close group iteration in db 2022/09/09 10:37:21 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:21 DEBUG: Getting all entries from shadow 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_permission_on_cache2056614737/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationreturns_nothing_when_listing_shadow_without_permission_on_cache2056614737/001/passwd.db 2022/09/09 10:37:21 DEBUG: Returning to NSS error: -1 with errno: 2 2022/09/09 10:37:21 ERROR: no logger attached to context 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Getting entry "myuser@domain.com" from passwd 2022/09/09 10:37:21 DEBUG: Getting entry with name "myuser@domain.com" from passwd 2022/09/09 10:37:21 DEBUG: Requesting a passwd entry matching name "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Cache initialization 2022/09/09 10:37:21 DEBUG: Opening cache in /tmp/TestIntegrationlist_entry_from_passwd_by_name2070452431/001 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_name2070452431/001/passwd.db 2022/09/09 10:37:21 DEBUG: check file permissions on /tmp/TestIntegrationlist_entry_from_passwd_by_name2070452431/001/shadow.db 2022/09/09 10:37:21 DEBUG: Shadow db mode: 2 2022/09/09 10:37:21 DEBUG: Clean up database 2022/09/09 10:37:21 DEBUG: getting user information from cache for "myuser@domain.com" 2022/09/09 10:37:21 DEBUG: Close database request 2022/09/09 10:37:21 DEBUG: Returning NSS STATUS SUCCESS with errno: 0 2022/09/09 10:37:21 ERROR: no logger attached to context myuser@domain.com:x:1929326240:1929326240::/home/myuser@domain.com:/bin/bash 2022/09/09 10:37:21 DEBUG: Close database request --- PASS: TestIntegration (0.00s) --- PASS: TestIntegration/returns_nothing_when_listing_group_with_empty_cache (0.03s) --- PASS: TestIntegration/returns_nothing_when_listing_shadow_without_cache_and_no_permission_to_create_it (0.00s) --- PASS: TestIntegration/returns_nothing_when_listing_passwd_with_empty_cache (0.08s) --- PASS: TestIntegration/error_when_listing_entry_from_shadow_by_uid (0.10s) --- PASS: TestIntegration/returns_nothing_when_listing_shadow_without_access (0.14s) --- PASS: TestIntegration/error_on_trying_to_list_entry_by_name_from_unsupported_db (0.12s) --- PASS: TestIntegration/old_entries_in_group_are_cleaned (0.11s) --- PASS: TestIntegration/list_local_group_entry_without_cache (0.00s) --- PASS: TestIntegration/returns_nothing_when_listing_group_without_permission_on_cache (0.11s) --- PASS: TestIntegration/list_local_passwd_entry_without_cache (0.00s) --- PASS: TestIntegration/error_when_listing_entry_from_shadow_by_uid_without_access (0.10s) --- PASS: TestIntegration/returns_nothing_when_listing_passwd_without_permission_on_cache (0.11s) --- PASS: TestIntegration/list_entry_from_shadow_by_name (0.09s) --- PASS: TestIntegration/error_when_listing_non-existent_entry_in_shadow (0.10s) --- PASS: TestIntegration/error_when_listing_non-existent_entry_in_passwd (0.09s) --- PASS: TestIntegration/list_passwd (0.09s) --- PASS: TestIntegration/error_when_listing_entry_from_shadow_by_name_without_access (0.10s) --- PASS: TestIntegration/error_when_listing_non-existent_entry_in_group (0.10s) --- PASS: TestIntegration/old_entries_in_shadow_are_cleaned (0.12s) --- PASS: TestIntegration/old_entries_in_passwd_are_cleaned (0.12s) --- PASS: TestIntegration/list_entry_from_group_by_gid_without_access_to_shadow (0.10s) --- PASS: TestIntegration/error_on_trying_to_list_unsupported_db (0.10s) --- PASS: TestIntegration/list_entry_from_passwd_by_uid_without_access_to_shadow (0.09s) --- PASS: TestIntegration/list_shadow (0.09s) --- PASS: TestIntegration/list_group (0.09s) --- PASS: TestIntegration/returns_nothing_when_listing_passwd_without_cache_and_no_permission_to_create_it (0.01s) --- PASS: TestIntegration/list_entry_from_group_by_gid (0.11s) --- PASS: TestIntegration/list_entry_from_passwd_by_name_without_access_to_shadow (0.10s) --- PASS: TestIntegration/list_passwd_without_access_to_shadow (0.10s) --- PASS: TestIntegration/list_group_without_access_to_shadow (0.10s) --- PASS: TestIntegration/list_entry_from_passwd_by_uid (0.11s) --- PASS: TestIntegration/list_local_shadow_entry_without_cache (0.03s) --- PASS: TestIntegration/list_entry_from_group_by_name (0.11s) --- PASS: TestIntegration/error_on_get_entry_from_shadow_with_explicit_empty_key (0.12s) --- PASS: TestIntegration/returns_nothing_when_listing_shadow_with_empty_cache (0.05s) --- PASS: TestIntegration/error_on_get_entry_from_group_with_explicit_empty_key (0.08s) --- PASS: TestIntegration/error_on_get_entry_from_passwd_with_explicit_empty_key (0.11s) --- PASS: TestIntegration/returns_nothing_when_listing_group_without_cache_and_no_permission_to_create_it (0.00s) --- PASS: TestIntegration/list_entry_from_group_by_name_without_access_to_shadow (0.10s) --- PASS: TestIntegration/returns_nothing_when_listing_shadow_without_permission_on_cache (0.11s) --- PASS: TestIntegration/list_entry_from_passwd_by_name (0.12s) PASS ok github.com/ubuntu/aad-auth/nss/aad-auth 3.502s === RUN TestPamSmAuthenticate === RUN TestPamSmAuthenticate/authenticate_successfully_(online) 2022/09/09 10:37:57 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:37:57 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:37:57 DEBUG: Authentication successful with user/password 2022/09/09 10:37:57 DEBUG: Cache initialization 2022/09/09 10:37:57 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateauthenticate_successfully_(online)2559464160/001/cache 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateauthenticate_successfully_(online)2559464160/001/cache/passwd.db 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateauthenticate_successfully_(online)2559464160/001/cache/shadow.db 2022/09/09 10:37:57 DEBUG: Shadow db mode: 2 2022/09/09 10:37:57 DEBUG: Clean up database 2022/09/09 10:37:57 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:37:57 DEBUG: generate user id for user "success@domain.com" 2022/09/09 10:37:57 INFO: user id for "success@domain.com" is 9448096 2022/09/09 10:37:57 DEBUG: Getting home directory for success@domain.com 2022/09/09 10:37:57 DEBUG: inserting in cache user "success@domain.com" 2022/09/09 10:37:57 DEBUG: encrypt password for user "success@domain.com" 2022/09/09 10:37:57 DEBUG: updating from last online login information for user "success@domain.com" 2022/09/09 10:37:57 DEBUG: Close database request === RUN TestPamSmAuthenticate/offline,_connect_existing_user_from_cache 2022/09/09 10:37:57 DEBUG: Cache initialization 2022/09/09 10:37:57 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateoffline,_connect_existing_user_from_cache2318704791/001/cache 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateoffline,_connect_existing_user_from_cache2318704791/001/cache/shadow.db 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateoffline,_connect_existing_user_from_cache2318704791/001/cache/passwd.db 2022/09/09 10:37:57 DEBUG: Shadow db mode: 2 2022/09/09 10:37:57 DEBUG: Clean up database 2022/09/09 10:37:57 DEBUG: Close database request 2022/09/09 10:37:57 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:57 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:57 DEBUG: request to close group iteration in db 2022/09/09 10:37:57 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:57 DEBUG: Loading configuration from testdata/forceoffline.conf 2022/09/09 10:37:57 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "force offline" for user "futureuser@domain.com" 2022/09/09 10:37:57 DEBUG: acquiring token failed: Offline 2022/09/09 10:37:57 DEBUG: Cache initialization 2022/09/09 10:37:57 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateoffline,_connect_existing_user_from_cache2318704791/001/cache 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateoffline,_connect_existing_user_from_cache2318704791/001/cache/passwd.db 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateoffline,_connect_existing_user_from_cache2318704791/001/cache/shadow.db 2022/09/09 10:37:57 DEBUG: Shadow db mode: 2 2022/09/09 10:37:57 DEBUG: Clean up database 2022/09/09 10:37:57 INFO: try to authenticate "futureuser@domain.com" from cache 2022/09/09 10:37:57 DEBUG: getting user information from cache for "futureuser@domain.com" 2022/09/09 10:37:57 DEBUG: Last online login was: 2054-04-03 13:36:08 +0000 UTC. Current time: 2022-09-09 10:37:57.656214636 +0000 UTC m=+0.150752869. Revalidation needed every 90 days 2022/09/09 10:37:57 DEBUG: Close database request 2022/09/09 10:37:57 DEBUG: Close database request === RUN TestPamSmAuthenticate/homedir_and_shell_values_should_not_change_for_user_that_was_already_on_cache 2022/09/09 10:37:57 DEBUG: Cache initialization 2022/09/09 10:37:57 DEBUG: Opening cache in /tmp/TestPamSmAuthenticatehomedir_and_shell_values_should_not_change_for_user_that_was_already_on_cache3722618750/001/cache 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatehomedir_and_shell_values_should_not_change_for_user_that_was_already_on_cache3722618750/001/cache/passwd.db 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatehomedir_and_shell_values_should_not_change_for_user_that_was_already_on_cache3722618750/001/cache/shadow.db 2022/09/09 10:37:57 DEBUG: Shadow db mode: 2 2022/09/09 10:37:57 DEBUG: Clean up database 2022/09/09 10:37:57 DEBUG: Close database request 2022/09/09 10:37:57 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:37:57 DEBUG: request to close passwd iteration in db 2022/09/09 10:37:57 DEBUG: request to close group iteration in db 2022/09/09 10:37:57 DEBUG: request to close shadow iteration in db 2022/09/09 10:37:57 DEBUG: Loading configuration from testdata/forceoffline-with-homedir-and-shell.conf 2022/09/09 10:37:57 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "force offline" for user "futureuser@domain.com" 2022/09/09 10:37:57 DEBUG: acquiring token failed: Offline 2022/09/09 10:37:57 DEBUG: Cache initialization 2022/09/09 10:37:57 DEBUG: Opening cache in /tmp/TestPamSmAuthenticatehomedir_and_shell_values_should_not_change_for_user_that_was_already_on_cache3722618750/001/cache 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatehomedir_and_shell_values_should_not_change_for_user_that_was_already_on_cache3722618750/001/cache/passwd.db 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatehomedir_and_shell_values_should_not_change_for_user_that_was_already_on_cache3722618750/001/cache/shadow.db 2022/09/09 10:37:57 DEBUG: Shadow db mode: 2 2022/09/09 10:37:57 DEBUG: Clean up database 2022/09/09 10:37:57 INFO: try to authenticate "futureuser@domain.com" from cache 2022/09/09 10:37:57 DEBUG: getting user information from cache for "futureuser@domain.com" 2022/09/09 10:37:57 DEBUG: Last online login was: 2054-04-03 13:36:08 +0000 UTC. Current time: 2022-09-09 10:37:57.765735344 +0000 UTC m=+0.260273577. Revalidation needed every 90 days 2022/09/09 10:37:57 DEBUG: Close database request 2022/09/09 10:37:57 DEBUG: Close database request === RUN TestPamSmAuthenticate/authenticate_successfully_with_unmatched_case_(online) 2022/09/09 10:37:57 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:37:57 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:37:57 DEBUG: Authentication successful with user/password 2022/09/09 10:37:57 DEBUG: Cache initialization 2022/09/09 10:37:57 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateauthenticate_successfully_with_unmatched_case_(online)2515989296/001/cache 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateauthenticate_successfully_with_unmatched_case_(online)2515989296/001/cache/passwd.db 2022/09/09 10:37:57 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateauthenticate_successfully_with_unmatched_case_(online)2515989296/001/cache/shadow.db 2022/09/09 10:37:57 DEBUG: Shadow db mode: 2 2022/09/09 10:37:57 DEBUG: Clean up database 2022/09/09 10:37:57 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:37:57 DEBUG: generate user id for user "success@domain.com" 2022/09/09 10:37:57 INFO: user id for "success@domain.com" is 9448096 2022/09/09 10:37:57 DEBUG: Getting home directory for success@domain.com 2022/09/09 10:37:57 DEBUG: inserting in cache user "success@domain.com" 2022/09/09 10:37:57 DEBUG: encrypt password for user "success@domain.com" 2022/09/09 10:37:57 DEBUG: updating from last online login information for user "success@domain.com" 2022/09/09 10:37:57 DEBUG: Close database request === RUN TestPamSmAuthenticate/error_on_unexisting_conf 2022/09/09 10:37:57 DEBUG: Loading configuration from testdata/doesnotexist.conf 2022/09/09 10:37:57 ERROR: No valid configuration found: could not load valid configuration from testdata/doesnotexist.conf: could not open file testdata/doesnotexist.conf: open testdata/doesnotexist.conf: no such file or directory === RUN TestPamSmAuthenticate/error_on_invalid_password 2022/09/09 10:38:00 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:38:00 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "invalid credentials" 2022/09/09 10:38:00 DEBUG: Got response: Invalid credentials === RUN TestPamSmAuthenticate/error_on_offline_with_purged_user_accoauthenticateunt 2022/09/09 10:38:02 DEBUG: Cache initialization 2022/09/09 10:38:02 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateerror_on_offline_with_purged_user_accoauthenticateunt3243275618/001/cache 2022/09/09 10:38:02 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_purged_user_accoauthenticateunt3243275618/001/cache/passwd.db 2022/09/09 10:38:02 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_purged_user_accoauthenticateunt3243275618/001/cache/shadow.db 2022/09/09 10:38:02 DEBUG: Shadow db mode: 2 2022/09/09 10:38:02 DEBUG: Clean up database 2022/09/09 10:38:02 DEBUG: Close database request 2022/09/09 10:38:02 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:38:02 DEBUG: request to close passwd iteration in db 2022/09/09 10:38:02 DEBUG: request to close group iteration in db 2022/09/09 10:38:02 DEBUG: request to close shadow iteration in db 2022/09/09 10:38:02 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:38:02 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "veryolduser@domain.com" 2022/09/09 10:38:02 DEBUG: Got response: User doesn't exist 2022/09/09 10:38:03 DEBUG: Close database request === RUN TestPamSmAuthenticate/correctly_set_homedir_and_shell_values_for_a_new_user 2022/09/09 10:38:03 DEBUG: Loading configuration from testdata/aad-with-homedir-and-shell.conf 2022/09/09 10:38:03 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:38:03 DEBUG: Authentication successful with user/password 2022/09/09 10:38:03 DEBUG: Cache initialization 2022/09/09 10:38:03 DEBUG: Opening cache in /tmp/TestPamSmAuthenticatecorrectly_set_homedir_and_shell_values_for_a_new_user1831871468/001/cache 2022/09/09 10:38:03 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatecorrectly_set_homedir_and_shell_values_for_a_new_user1831871468/001/cache/passwd.db 2022/09/09 10:38:03 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatecorrectly_set_homedir_and_shell_values_for_a_new_user1831871468/001/cache/shadow.db 2022/09/09 10:38:03 DEBUG: Shadow db mode: 2 2022/09/09 10:38:03 DEBUG: Clean up database 2022/09/09 10:38:03 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:38:03 DEBUG: generate user id for user "success@domain.com" 2022/09/09 10:38:03 INFO: user id for "success@domain.com" is 9448096 2022/09/09 10:38:03 DEBUG: Getting home directory for success@domain.com 2022/09/09 10:38:03 DEBUG: inserting in cache user "success@domain.com" 2022/09/09 10:38:03 DEBUG: encrypt password for user "success@domain.com" 2022/09/09 10:38:03 DEBUG: updating from last online login information for user "success@domain.com" 2022/09/09 10:38:03 DEBUG: Close database request === RUN TestPamSmAuthenticate/authenticate_successfully_on_config_with_values_only_in_matching_domain 2022/09/09 10:38:03 DEBUG: Loading configuration from testdata/with-domain.conf 2022/09/09 10:38:03 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:38:03 DEBUG: Authentication successful with user/password 2022/09/09 10:38:03 DEBUG: Cache initialization 2022/09/09 10:38:03 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateauthenticate_successfully_on_config_with_values_only_in_matching_domain566702400/001/cache 2022/09/09 10:38:03 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateauthenticate_successfully_on_config_with_values_only_in_matching_domain566702400/001/cache/passwd.db 2022/09/09 10:38:03 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateauthenticate_successfully_on_config_with_values_only_in_matching_domain566702400/001/cache/shadow.db 2022/09/09 10:38:03 DEBUG: Shadow db mode: 2 2022/09/09 10:38:03 DEBUG: Clean up database 2022/09/09 10:38:03 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:38:03 DEBUG: generate user id for user "success@domain.com" 2022/09/09 10:38:03 INFO: user id for "success@domain.com" is 9448096 2022/09/09 10:38:03 DEBUG: Getting home directory for success@domain.com 2022/09/09 10:38:03 DEBUG: inserting in cache user "success@domain.com" 2022/09/09 10:38:03 DEBUG: encrypt password for user "success@domain.com" 2022/09/09 10:38:03 DEBUG: updating from last online login information for user "success@domain.com" 2022/09/09 10:38:03 DEBUG: Close database request === RUN TestPamSmAuthenticate/error_on_invalid_conf 2022/09/09 10:38:04 DEBUG: Loading configuration from testdata/invalid-aad.conf 2022/09/09 10:38:04 ERROR: No valid configuration found: could not load valid configuration from testdata/invalid-aad.conf: missing required 'app_id' entry in configuration file === RUN TestPamSmAuthenticate/error_on_unexisting_users 2022/09/09 10:38:05 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:38:05 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "no such user" 2022/09/09 10:38:05 DEBUG: Got response: User doesn't exist === RUN TestPamSmAuthenticate/error_on_offline_with_user_online_user_not_in_cache 2022/09/09 10:38:08 DEBUG: Cache initialization 2022/09/09 10:38:08 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateerror_on_offline_with_user_online_user_not_in_cache3035800182/001/cache 2022/09/09 10:38:08 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_user_online_user_not_in_cache3035800182/001/cache/passwd.db 2022/09/09 10:38:08 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_user_online_user_not_in_cache3035800182/001/cache/shadow.db 2022/09/09 10:38:08 DEBUG: Shadow db mode: 2 2022/09/09 10:38:08 DEBUG: Clean up database 2022/09/09 10:38:08 DEBUG: Close database request 2022/09/09 10:38:08 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:38:08 DEBUG: request to close passwd iteration in db 2022/09/09 10:38:08 DEBUG: request to close group iteration in db 2022/09/09 10:38:08 DEBUG: request to close shadow iteration in db 2022/09/09 10:38:08 DEBUG: Loading configuration from testdata/forceoffline.conf 2022/09/09 10:38:08 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "force offline" for user "success@domain.com" 2022/09/09 10:38:08 DEBUG: acquiring token failed: Offline 2022/09/09 10:38:08 DEBUG: Cache initialization 2022/09/09 10:38:08 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateerror_on_offline_with_user_online_user_not_in_cache3035800182/001/cache 2022/09/09 10:38:08 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_user_online_user_not_in_cache3035800182/001/cache/passwd.db 2022/09/09 10:38:08 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_user_online_user_not_in_cache3035800182/001/cache/shadow.db 2022/09/09 10:38:08 DEBUG: Shadow db mode: 2 2022/09/09 10:38:08 DEBUG: Clean up database 2022/09/09 10:38:08 INFO: try to authenticate "success@domain.com" from cache 2022/09/09 10:38:08 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:38:08 ERROR: authenticating user "success@domain.com" from cache failed: error when getting user "success@domain.com" from cache: no entries. Denying access. 2022/09/09 10:38:08 DEBUG: Close database request 2022/09/09 10:38:10 DEBUG: Close database request === RUN TestPamSmAuthenticate/error_on_offline_with_unpurged_old_user_account 2022/09/09 10:38:10 DEBUG: Cache initialization 2022/09/09 10:38:10 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateerror_on_offline_with_unpurged_old_user_account2930903602/001/cache 2022/09/09 10:38:10 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_unpurged_old_user_account2930903602/001/cache/passwd.db 2022/09/09 10:38:10 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_unpurged_old_user_account2930903602/001/cache/shadow.db 2022/09/09 10:38:10 DEBUG: Shadow db mode: 2 2022/09/09 10:38:10 DEBUG: Clean up database 2022/09/09 10:38:10 DEBUG: Close database request 2022/09/09 10:38:10 DEBUG: No use of cache, closing underlying DB. 2022/09/09 10:38:10 DEBUG: request to close passwd iteration in db 2022/09/09 10:38:10 DEBUG: request to close group iteration in db 2022/09/09 10:38:10 DEBUG: request to close shadow iteration in db 2022/09/09 10:38:10 DEBUG: Loading configuration from testdata/forceoffline-expire-right-away.conf 2022/09/09 10:38:10 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "force offline" for user "veryolduser@domain.com" 2022/09/09 10:38:10 DEBUG: acquiring token failed: Offline 2022/09/09 10:38:10 DEBUG: Cache initialization 2022/09/09 10:38:10 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateerror_on_offline_with_unpurged_old_user_account2930903602/001/cache 2022/09/09 10:38:10 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_unpurged_old_user_account2930903602/001/cache/passwd.db 2022/09/09 10:38:10 DEBUG: check file permissions on /tmp/TestPamSmAuthenticateerror_on_offline_with_unpurged_old_user_account2930903602/001/cache/shadow.db 2022/09/09 10:38:10 DEBUG: Shadow db mode: 2 2022/09/09 10:38:10 DEBUG: Do not clean up database as revalidation period is set to 0 2022/09/09 10:38:10 INFO: try to authenticate "veryolduser@domain.com" from cache 2022/09/09 10:38:10 DEBUG: getting user information from cache for "veryolduser@domain.com" 2022/09/09 10:38:10 DEBUG: Last online login was: 1971-11-12 23:22:48 +0000 UTC. Current time: 2022-09-09 10:38:10.734154894 +0000 UTC m=+13.228693126. Revalidation needed every 0 days 2022/09/09 10:38:10 ERROR: authenticating user "veryolduser@domain.com" from cache failed: offline credentials expired. Denying access. 2022/09/09 10:38:10 DEBUG: Close database request 2022/09/09 10:38:12 DEBUG: Close database request === RUN TestPamSmAuthenticate/error_on_cache_can't_be_created/opened 2022/09/09 10:38:12 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:38:12 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:38:12 DEBUG: Authentication successful with user/password 2022/09/09 10:38:12 DEBUG: Cache initialization 2022/09/09 10:38:12 DEBUG: Opening cache in /tmp/TestPamSmAuthenticateerror_on_cache_cant_be_createdopened2460820550/001/cache 2022/09/09 10:38:12 ERROR: can't open/create cache: can't initiate database: cache creation can only be done by root user. Denying access. === RUN TestPamSmAuthenticate/correctly_set_homedir_and_shell_values_specified_at_domain_for_a_new_user_with_matching_domain 2022/09/09 10:38:14 DEBUG: Loading configuration from testdata/aad-with-homedir-and-shell-domain.conf 2022/09/09 10:38:14 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:38:14 DEBUG: Authentication successful with user/password 2022/09/09 10:38:14 DEBUG: Cache initialization 2022/09/09 10:38:14 DEBUG: Opening cache in /tmp/TestPamSmAuthenticatecorrectly_set_homedir_and_shell_values_specified_at_domain_for_a_new_user_with_matching_domain1957445458/001/cache 2022/09/09 10:38:14 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatecorrectly_set_homedir_and_shell_values_specified_at_domain_for_a_new_user_with_matching_domain1957445458/001/cache/passwd.db 2022/09/09 10:38:14 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatecorrectly_set_homedir_and_shell_values_specified_at_domain_for_a_new_user_with_matching_domain1957445458/001/cache/shadow.db 2022/09/09 10:38:14 DEBUG: Shadow db mode: 2 2022/09/09 10:38:14 DEBUG: Clean up database 2022/09/09 10:38:14 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:38:14 DEBUG: generate user id for user "success@domain.com" 2022/09/09 10:38:14 INFO: user id for "success@domain.com" is 9448096 2022/09/09 10:38:14 DEBUG: Getting home directory for success@domain.com 2022/09/09 10:38:14 DEBUG: inserting in cache user "success@domain.com" 2022/09/09 10:38:14 DEBUG: encrypt password for user "success@domain.com" 2022/09/09 10:38:14 DEBUG: updating from last online login information for user "success@domain.com" 2022/09/09 10:38:14 DEBUG: Close database request === RUN TestPamSmAuthenticate/specified_offline_expiration 2022/09/09 10:38:14 DEBUG: Loading configuration from testdata/withoffline-expiration.conf 2022/09/09 10:38:14 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "success@domain.com" 2022/09/09 10:38:14 DEBUG: Authentication successful with user/password 2022/09/09 10:38:14 DEBUG: Cache initialization 2022/09/09 10:38:14 DEBUG: Opening cache in /tmp/TestPamSmAuthenticatespecified_offline_expiration1269583755/001/cache 2022/09/09 10:38:14 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatespecified_offline_expiration1269583755/001/cache/shadow.db 2022/09/09 10:38:14 DEBUG: check file permissions on /tmp/TestPamSmAuthenticatespecified_offline_expiration1269583755/001/cache/passwd.db 2022/09/09 10:38:14 DEBUG: Shadow db mode: 2 2022/09/09 10:38:14 DEBUG: Clean up database 2022/09/09 10:38:14 DEBUG: getting user information from cache for "success@domain.com" 2022/09/09 10:38:14 DEBUG: generate user id for user "success@domain.com" 2022/09/09 10:38:14 INFO: user id for "success@domain.com" is 9448096 2022/09/09 10:38:14 DEBUG: Getting home directory for success@domain.com 2022/09/09 10:38:14 DEBUG: inserting in cache user "success@domain.com" 2022/09/09 10:38:14 DEBUG: encrypt password for user "success@domain.com" 2022/09/09 10:38:14 DEBUG: updating from last online login information for user "success@domain.com" 2022/09/09 10:38:14 DEBUG: Close database request === RUN TestPamSmAuthenticate/error_on_config_values_only_in_mismatching_domain 2022/09/09 10:38:14 DEBUG: Loading configuration from testdata/with-domain.conf 2022/09/09 10:38:14 ERROR: No valid configuration found: could not load valid configuration from testdata/with-domain.conf: missing required 'tenant_id' entry in configuration file === RUN TestPamSmAuthenticate/error_on_server_error 2022/09/09 10:38:16 DEBUG: Loading configuration from testdata/simple-aad.conf 2022/09/09 10:38:16 DEBUG: Connecting to "https://login.microsoftonline.com/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", with clientID "ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj" for user "unreadable server response" 2022/09/09 10:38:16 ERROR: Can't read server response: invalid READ --- PASS: TestPamSmAuthenticate (21.51s) --- PASS: TestPamSmAuthenticate/authenticate_successfully_(online) (0.10s) --- PASS: TestPamSmAuthenticate/offline,_connect_existing_user_from_cache (0.12s) --- PASS: TestPamSmAuthenticate/homedir_and_shell_values_should_not_change_for_user_that_was_already_on_cache (0.11s) --- PASS: TestPamSmAuthenticate/authenticate_successfully_with_unmatched_case_(online) (0.10s) --- PASS: TestPamSmAuthenticate/error_on_unexisting_conf (2.07s) --- PASS: TestPamSmAuthenticate/error_on_invalid_password (2.02s) --- PASS: TestPamSmAuthenticate/error_on_offline_with_purged_user_accoauthenticateunt (1.79s) --- PASS: TestPamSmAuthenticate/correctly_set_homedir_and_shell_values_for_a_new_user (0.09s) --- PASS: TestPamSmAuthenticate/authenticate_successfully_on_config_with_values_only_in_matching_domain (0.09s) --- PASS: TestPamSmAuthenticate/error_on_invalid_conf (1.90s) --- PASS: TestPamSmAuthenticate/error_on_unexisting_users (2.51s) --- PASS: TestPamSmAuthenticate/error_on_offline_with_user_online_user_not_in_cache (2.29s) --- PASS: TestPamSmAuthenticate/error_on_offline_with_unpurged_old_user_account (1.90s) --- PASS: TestPamSmAuthenticate/error_on_cache_can't_be_created/opened (1.80s) --- PASS: TestPamSmAuthenticate/correctly_set_homedir_and_shell_values_specified_at_domain_for_a_new_user_with_matching_domain (0.10s) --- PASS: TestPamSmAuthenticate/specified_offline_expiration (0.10s) --- PASS: TestPamSmAuthenticate/error_on_config_values_only_in_mismatching_domain (2.08s) --- PASS: TestPamSmAuthenticate/error_on_server_error (2.35s) === RUN TestGetUser === PAUSE TestGetUser === CONT TestGetUser === RUN TestGetUser/got_username_info === PAUSE TestGetUser/got_username_info === CONT TestGetUser/got_username_info --- PASS: TestGetUser (0.00s) --- PASS: TestGetUser/got_username_info (0.01s) PASS ok github.com/ubuntu/aad-auth/pam 60.034s create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary dh binary --buildsystem=golang --with=golang,apport dh_testroot -O--buildsystem=golang dh_prep -O--buildsystem=golang debian/rules override_dh_auto_install make[1]: Entering directory '/<>' dh_auto_install -- --no-source cd obj-x86_64-linux-gnu && mkdir -p /<>/debian/tmp/usr cd obj-x86_64-linux-gnu && cp -r bin /<>/debian/tmp/usr # Install PAM module configuration mkdir -p debian/tmp/usr/share/pam-configs cp debian/libpam-aad.pam-auth-update debian/tmp/usr/share/pam-configs/aad # Install configuration template to /etc mkdir -p debian/tmp/etc cp conf/aad.conf.template debian/tmp/etc/aad.conf # Install PAM and NSS libraries mkdir -p debian/tmp/usr/lib/x86_64-linux-gnu/security cp pam_aad.so debian/tmp/usr/lib/x86_64-linux-gnu/security make install -C nss/ DESTDIR=/<>/debian/tmp make[2]: Entering directory '/<>/nss' install -dm 0755 /<>/debian/tmp/usr/lib/x86_64-linux-gnu install -m 0644 libnss_aad.so.2 /<>/debian/tmp/usr/lib/x86_64-linux-gnu make[2]: Leaving directory '/<>/nss' # Install NSS helper to /usr/libexec mkdir -p debian/tmp/usr/libexec mv debian/tmp/usr/bin/aad-auth debian/tmp/usr/libexec # Generate and install translations GENERATE_ONLY_INSTALL_TO_DESTDIR=/<>/debian/tmp go generate -x ./internal/i18n go run generate-locales.go update-po ../../po/aad-auth.pot ../../po go run generate-locales.go generate-mo aad-auth ../../po ../../generated make[1]: Leaving directory '/<>' dh_install -O--buildsystem=golang dh_installdocs -O--buildsystem=golang dh_installchangelogs -O--buildsystem=golang dh_installsystemduser -O--buildsystem=golang dh_apport -O--buildsystem=golang dh_lintian -O--buildsystem=golang dh_perl -O--buildsystem=golang dh_link -O--buildsystem=golang dh_strip_nondeterminism -O--buildsystem=golang Normalized debian/aad-common/usr/share/locale/fr/LC_MESSAGES/aad-auth.mo dh_compress -O--buildsystem=golang dh_fixperms -O--buildsystem=golang dh_missing -O--buildsystem=golang dh_strip -a -O--buildsystem=golang 8815e2953422ccca5276fbcb97c7e5532acf6d39 debugedit: debian/libpam-aad/usr/lib/x86_64-linux-gnu/security/pam_aad.so: DWARF version 0 unhandled debugedit: debian/libnss-aad/usr/libexec/aad-auth: DWARF version 0 unhandled 295ef8b9dac9e922527f4a92f8abfa9921faf156 d53b368047876dffee2093f12caea3be27d48d77 dh_makeshlibs -a -O--buildsystem=golang dh_shlibdeps -a -O--buildsystem=golang dh_installdeb -O--buildsystem=golang dh_golang -O--buildsystem=golang dh_gencontrol -O--buildsystem=golang dpkg-gencontrol: warning: package libpam-aad: substitution variable ${misc:Static-Built-Using} unused, but is defined dpkg-gencontrol: warning: package libnss-aad: substitution variable ${misc:Static-Built-Using} unused, but is defined dpkg-gencontrol: warning: package libpam-aad: substitution variable ${misc:Static-Built-Using} unused, but is defined dpkg-gencontrol: warning: package libnss-aad: substitution variable ${misc:Static-Built-Using} unused, but is defined dh_md5sums -O--buildsystem=golang dh_builddeb -O--buildsystem=golang INFO: pkgstriptranslations version 149 INFO: pkgstriptranslations version 149 INFO: pkgstriptranslations version 149 pkgstriptranslations: processing libpam-aad (in debian/libpam-aad); do_strip: , oemstrip: pkgstriptranslations: processing aad-common (in debian/aad-common); do_strip: , oemstrip: pkgstriptranslations: processing libnss-aad (in debian/libnss-aad); do_strip: , oemstrip: pkgmaintainermangler: Not overriding Maintainer for domain lists.ubuntu.com pkgmaintainermangler: Not overriding Maintainer for domain lists.ubuntu.com pkgstripfiles: processing control file: debian/libpam-aad/DEBIAN/control, package libpam-aad, directory debian/libpam-aad pkgstripfiles: processing control file: debian/aad-common/DEBIAN/control, package aad-common, directory debian/aad-common INFO: pkgstripfiles: waiting for lock (aad-common) ... Skipping arch: any to arch: all dependency to aad-common pkgstripfiles: Running PNG optimization (using 4 cpus) for package libpam-aad ... pkgstripfiles: No PNG files. dpkg-deb: building package 'libpam-aad' in '../libpam-aad_0.2_amd64.deb'. INFO: pkgstripfiles: waiting for lock (aad-common) ... INFO: pkgstripfiles: waiting for lock (aad-common) ... INFO: pkgstripfiles: waiting for lock (aad-common) ... INFO: pkgstriptranslations version 149 pkgstriptranslations: processing libpam-aad-dbgsym (in debian/.debhelper/libpam-aad/dbgsym-root); do_strip: , oemstrip: pkgmaintainermangler: Not overriding Maintainer for domain lists.ubuntu.com pkgstripfiles: processing control file: debian/.debhelper/libpam-aad/dbgsym-root/DEBIAN/control, package libpam-aad-dbgsym, directory debian/.debhelper/libpam-aad/dbgsym-root dpkg-deb: building package 'libpam-aad-dbgsym' in 'debian/.debhelper/scratch-space/build-libpam-aad/libpam-aad-dbgsym_0.2_amd64.deb'. INFO: pkgstripfiles: waiting for lock (aad-common) ... Renaming libpam-aad-dbgsym_0.2_amd64.deb to libpam-aad-dbgsym_0.2_amd64.ddeb pkgmaintainermangler: Not overriding Maintainer for domain lists.ubuntu.com pkgstripfiles: processing control file: debian/libnss-aad/DEBIAN/control, package libnss-aad, directory debian/libnss-aad Skipping arch: any to arch: all dependency to aad-common pkgstripfiles: Running PNG optimization (using 4 cpus) for package libnss-aad ... pkgstripfiles: No PNG files. INFO: pkgstripfiles: waiting for lock (aad-common) ... dpkg-deb: building package 'libnss-aad' in '../libnss-aad_0.2_amd64.deb'. pkgstripfiles: Running PNG optimization (using 4 cpus) for package aad-common ... pkgstripfiles: No PNG files. dpkg-deb: building package 'aad-common' in '../aad-common_0.2_all.deb'. INFO: pkgstriptranslations version 149 pkgstriptranslations: processing libnss-aad-dbgsym (in debian/.debhelper/libnss-aad/dbgsym-root); do_strip: , oemstrip: pkgmaintainermangler: Not overriding Maintainer for domain lists.ubuntu.com pkgstripfiles: processing control file: debian/.debhelper/libnss-aad/dbgsym-root/DEBIAN/control, package libnss-aad-dbgsym, directory debian/.debhelper/libnss-aad/dbgsym-root dpkg-deb: building package 'libnss-aad-dbgsym' in 'debian/.debhelper/scratch-space/build-libnss-aad/libnss-aad-dbgsym_0.2_amd64.deb'. Renaming libnss-aad-dbgsym_0.2_amd64.deb to libnss-aad-dbgsym_0.2_amd64.ddeb dpkg-genbuildinfo --build=binary -O../aad-auth_0.2_amd64.buildinfo dpkg-genchanges --build=binary -mLaunchpad Build Daemon -O../aad-auth_0.2_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) -------------------------------------------------------------------------------- Build finished at 2022-09-09T10:38:33Z Finished -------- I: Built successfully +------------------------------------------------------------------------------+ | Changes | +------------------------------------------------------------------------------+ aad-auth_0.2_amd64.changes: --------------------------- Format: 1.8 Date: Fri, 09 Sep 2022 10:48:17 +0300 Source: aad-auth Binary: aad-common libnss-aad libpam-aad Built-For-Profiles: noudeb Architecture: all amd64 Version: 0.2 Distribution: kinetic-proposed Urgency: medium Maintainer: Launchpad Build Daemon Changed-By: Gabriel Nagy Description: aad-common - Azure Active Directory Authentication common files libnss-aad - Azure Active Directory Authentication module for NSS libpam-aad - Azure Active Directory Authentication module for PAM Changes: aad-auth (0.2) kinetic; urgency=medium . [ Didier Roche ] [ Denison Barbosa ] [ Gabriel Nagy ] [ Jean-Baptiste Lallement ] * Rewrite NSS Go library in C - due to random crashes caused by loading a multithreaded shared library written in Go from NSS, we now have a thin C wrapper calling a Go executable which does the actual queries * Add translations supported by gettext to the PAM module - to support the future CLI integration, these are shipped in a common architecture-independent package * Ship a configuration template in the common package * Fix segfault on interrupted pam conversation * Fix FTBFS on armhf due to int type size * Various test improvements and fixes * Update dependencies to latest: - github.com/AzureAD/microsoft-authentication-library-for-go - github.com/go-ini/ini - github.com/mattn/go-sqlite3 Checksums-Sha1: c55b766b3704c3875db298fcf1873f4af9c3cf09 8157 aad-auth_0.2_amd64.buildinfo ad4d7bc0e503653d8d6efd029c1a9c9d671d17b9 5138 aad-common_0.2_all.deb 02787311e0405ddc17d682bb929649b1168d295f 3141432 libnss-aad-dbgsym_0.2_amd64.ddeb 9d7501cae75683db177dc9937801d3ee9fd28563 1759726 libnss-aad_0.2_amd64.deb fdee8d7e6914a559c5cc8cbde793978fab85be30 4603314 libpam-aad-dbgsym_0.2_amd64.ddeb 5676063fc9be794fe22a4297dbead8964045174f 3419592 libpam-aad_0.2_amd64.deb Checksums-Sha256: b2c301d7770c2c5b7d2966b891493d06b53d26c3cbb666f4ac629e0d187b5d69 8157 aad-auth_0.2_amd64.buildinfo c612259f0bcbd6ff21818a6ed3447f6fa0c456eaaba2ebe8e6b403d2f3fe60e1 5138 aad-common_0.2_all.deb fa7250b0b054096a67573580d34a5caf4daba16ebc2018b5da85a09dde2b4857 3141432 libnss-aad-dbgsym_0.2_amd64.ddeb 76783e931fabcb7a65d5d5b1544df8da8455918d7e415514f6e47554811aadc1 1759726 libnss-aad_0.2_amd64.deb 4c1ee210379a32405d520ec42760b7c33735673da265ab43f6591cf2018e3681 4603314 libpam-aad-dbgsym_0.2_amd64.ddeb 8850edcb23ea2e3f541618657a68652350646931d7fdf4c481d92a9b73cd0a6b 3419592 libpam-aad_0.2_amd64.deb Files: 9ac385c06af095c1bbf57085b107e4d2 8157 admin optional aad-auth_0.2_amd64.buildinfo 44dcfc8dbda87d524aad7586101eac0d 5138 admin optional aad-common_0.2_all.deb 2d79c956935d5324b35ec7e292167ee3 3141432 debug optional libnss-aad-dbgsym_0.2_amd64.ddeb bcb913fd7a10b11dc410f158c87c566a 1759726 admin optional libnss-aad_0.2_amd64.deb bd3b3d12472d87c1523427c25e8cc2a6 4603314 debug optional libpam-aad-dbgsym_0.2_amd64.ddeb f9ea3a74725b59e418c34fd41f4e19e3 3419592 admin optional libpam-aad_0.2_amd64.deb /<>/aad-auth_0.2_amd64.changes.new could not be renamed to /<>/aad-auth_0.2_amd64.changes: Illegal seek Distribution field may be wrong!!! +------------------------------------------------------------------------------+ | Buildinfo | +------------------------------------------------------------------------------+ Format: 1.0 Source: aad-auth Binary: aad-common libnss-aad libnss-aad-dbgsym libpam-aad libpam-aad-dbgsym Architecture: all amd64 Version: 0.2 Checksums-Md5: 44dcfc8dbda87d524aad7586101eac0d 5138 aad-common_0.2_all.deb 2d79c956935d5324b35ec7e292167ee3 3141432 libnss-aad-dbgsym_0.2_amd64.ddeb bcb913fd7a10b11dc410f158c87c566a 1759726 libnss-aad_0.2_amd64.deb bd3b3d12472d87c1523427c25e8cc2a6 4603314 libpam-aad-dbgsym_0.2_amd64.ddeb f9ea3a74725b59e418c34fd41f4e19e3 3419592 libpam-aad_0.2_amd64.deb Checksums-Sha1: ad4d7bc0e503653d8d6efd029c1a9c9d671d17b9 5138 aad-common_0.2_all.deb 02787311e0405ddc17d682bb929649b1168d295f 3141432 libnss-aad-dbgsym_0.2_amd64.ddeb 9d7501cae75683db177dc9937801d3ee9fd28563 1759726 libnss-aad_0.2_amd64.deb fdee8d7e6914a559c5cc8cbde793978fab85be30 4603314 libpam-aad-dbgsym_0.2_amd64.ddeb 5676063fc9be794fe22a4297dbead8964045174f 3419592 libpam-aad_0.2_amd64.deb Checksums-Sha256: c612259f0bcbd6ff21818a6ed3447f6fa0c456eaaba2ebe8e6b403d2f3fe60e1 5138 aad-common_0.2_all.deb fa7250b0b054096a67573580d34a5caf4daba16ebc2018b5da85a09dde2b4857 3141432 libnss-aad-dbgsym_0.2_amd64.ddeb 76783e931fabcb7a65d5d5b1544df8da8455918d7e415514f6e47554811aadc1 1759726 libnss-aad_0.2_amd64.deb 4c1ee210379a32405d520ec42760b7c33735673da265ab43f6591cf2018e3681 4603314 libpam-aad-dbgsym_0.2_amd64.ddeb 8850edcb23ea2e3f541618657a68652350646931d7fdf4c481d92a9b73cd0a6b 3419592 libpam-aad_0.2_amd64.deb Build-Origin: Ubuntu Build-Architecture: amd64 Build-Date: Fri, 09 Sep 2022 10:38:33 +0000 Build-Path: /<> Build-Tainted-By: merged-usr-via-aliased-dirs usr-local-has-programs Installed-Build-Depends: adduser (= 3.121ubuntu1), autoconf (= 2.71-2), automake (= 1:1.16.5-1.3), autopoint (= 0.21-8), autotools-dev (= 20220109.1), base-files (= 12.2ubuntu2), base-passwd (= 3.6.0), bash (= 5.2~rc2-2ubuntu1), binutils (= 2.39-1ubuntu1), binutils-common (= 2.39-1ubuntu1), binutils-x86-64-linux-gnu (= 2.39-1ubuntu1), bsdextrautils (= 2.38-4ubuntu1), bsdutils (= 1:2.38-4ubuntu1), build-essential (= 12.9ubuntu3), bzip2 (= 1.0.8-5build1), coreutils (= 8.32-4.1ubuntu1), cpp (= 4:12.2.0-1ubuntu1), cpp-12 (= 12.2.0-2ubuntu1), dash (= 0.5.11+git20210903+057cd650a4ed-8ubuntu1), debconf (= 1.5.79ubuntu1), debhelper (= 13.9.1ubuntu1), debianutils (= 5.7-0.3), debugedit (= 1:5.0-5), dh-apport (= 2.23.0-0ubuntu1), dh-autoreconf (= 20), dh-golang (= 1.58), dh-strip-nondeterminism (= 1.13.0-1), diffutils (= 1:3.8-1), dpkg (= 1.21.9ubuntu1), dpkg-dev (= 1.21.9ubuntu1), dwz (= 0.14-1build2), file (= 1:5.41-4), findutils (= 4.9.0-3ubuntu1), g++ (= 4:12.2.0-1ubuntu1), g++-12 (= 12.2.0-2ubuntu1), gcc (= 4:12.2.0-1ubuntu1), gcc-12 (= 12.2.0-2ubuntu1), gcc-12-base (= 12.2.0-2ubuntu1), gettext (= 0.21-8), gettext-base (= 0.21-8), golang-1.19-go (= 1.19-1ubuntu2), golang-1.19-src (= 1.19-1ubuntu2), golang-go (= 2:1.19~1), golang-src (= 2:1.19~1), grep (= 3.7-1build1), groff-base (= 1.22.4-8build1), gzip (= 1.12-1ubuntu1), hostname (= 3.23ubuntu2), init-system-helpers (= 1.64), intltool-debian (= 0.35.0+20060710.5), libacl1 (= 2.3.1-1), libapparmor1 (= 3.0.7-1ubuntu1), libarchive-zip-perl (= 1.68-1), libargon2-1 (= 0~20171227-0.3), libasan8 (= 12.2.0-2ubuntu1), libatomic1 (= 12.2.0-2ubuntu1), libattr1 (= 1:2.5.1-1build1), libaudit-common (= 1:3.0.7-1build1), libaudit1 (= 1:3.0.7-1build1), libbinutils (= 2.39-1ubuntu1), libblkid-dev (= 2.38-4ubuntu1), libblkid1 (= 2.38-4ubuntu1), libbz2-1.0 (= 1.0.8-5build1), libc-bin (= 2.36-0ubuntu2), libc-dev-bin (= 2.36-0ubuntu2), libc6 (= 2.36-0ubuntu2), libc6-dev (= 2.36-0ubuntu2), libcap-ng0 (= 0.8.3-1), libcap2 (= 1:2.44-1build3), libcc1-0 (= 12.2.0-2ubuntu1), libcom-err2 (= 1.46.5-2ubuntu2), libcrypt-dev (= 1:4.4.28-2), libcrypt1 (= 1:4.4.28-2), libcryptsetup12 (= 2:2.5.0-2ubuntu1), libctf-nobfd0 (= 2.39-1ubuntu1), libctf0 (= 2.39-1ubuntu1), libdb5.3 (= 5.3.28+dfsg1-0.10), libdebconfclient0 (= 0.264ubuntu1), libdebhelper-perl (= 13.9.1ubuntu1), libdevmapper1.02.1 (= 2:1.02.185-1ubuntu1), libdpkg-perl (= 1.21.9ubuntu1), libdw1 (= 0.187-2), libelf1 (= 0.187-2), libexpat1 (= 2.4.8-1), libfdisk1 (= 2.38-4ubuntu1), libffi-dev (= 3.4.2-4), libffi8 (= 3.4.2-4), libfile-stripnondeterminism-perl (= 1.13.0-1), libgcc-12-dev (= 12.2.0-2ubuntu1), libgcc-s1 (= 12.2.0-2ubuntu1), libgcrypt20 (= 1.10.1-2ubuntu1), libgdbm-compat4 (= 1.23-1), libgdbm6 (= 1.23-1), libglib2.0-0 (= 2.73.3-3), libglib2.0-bin (= 2.73.3-3), libglib2.0-data (= 2.73.3-3), libglib2.0-dev (= 2.73.3-3), libglib2.0-dev-bin (= 2.73.3-3), libgmp10 (= 2:6.2.1+dfsg1-1ubuntu2), libgomp1 (= 12.2.0-2ubuntu1), libgpg-error0 (= 1.45-2), libgprofng0 (= 2.39-1ubuntu1), libgssapi-krb5-2 (= 1.20-1), libicu71 (= 71.1-3), libip4tc2 (= 1.8.7-1ubuntu6), libisl23 (= 0.25-1), libitm1 (= 12.2.0-2ubuntu1), libjson-c5 (= 0.16-1), libk5crypto3 (= 1.20-1), libkeyutils1 (= 1.6.3-1), libkmod2 (= 30+20220630-3ubuntu1), libkrb5-3 (= 1.20-1), libkrb5support0 (= 1.20-1), liblsan0 (= 12.2.0-2ubuntu1), liblz4-1 (= 1.9.3-2build2), liblzma5 (= 5.2.5-2.1), libmagic-mgc (= 1:5.41-4), libmagic1 (= 1:5.41-4), libmount-dev (= 2.38-4ubuntu1), libmount1 (= 2.38-4ubuntu1), libmpc3 (= 1.2.1-2build1), libmpdec3 (= 2.5.1-2build2), libmpfr6 (= 4.1.0-3build3), libncursesw6 (= 6.3+20220423-2), libnsl-dev (= 1.3.0-2build2), libnsl2 (= 1.3.0-2build2), libpam-modules (= 1.5.2-2ubuntu1), libpam-modules-bin (= 1.5.2-2ubuntu1), libpam-runtime (= 1.5.2-2ubuntu1), libpam0g (= 1.5.2-2ubuntu1), libpam0g-dev (= 1.5.2-2ubuntu1), libpcre2-16-0 (= 10.40-1ubuntu1), libpcre2-32-0 (= 10.40-1ubuntu1), libpcre2-8-0 (= 10.40-1ubuntu1), libpcre2-dev (= 10.40-1ubuntu1), libpcre2-posix3 (= 10.40-1ubuntu1), libpcre3 (= 2:8.39-14), libperl5.34 (= 5.34.0-5ubuntu1), libpipeline1 (= 1.5.6-2), libpython3-stdlib (= 3.10.6-1), libpython3.10-minimal (= 3.10.7-1), libpython3.10-stdlib (= 3.10.7-1), libquadmath0 (= 12.2.0-2ubuntu1), libreadline8 (= 8.2~rc2-2), libseccomp2 (= 2.5.4-1ubuntu1), libselinux1 (= 3.4-1), libselinux1-dev (= 3.4-1), libsemanage-common (= 3.4-1), libsemanage2 (= 3.4-1), libsepol-dev (= 3.4-2), libsepol2 (= 3.4-2), libsmartcols1 (= 2.38-4ubuntu1), libsqlite3-0 (= 3.39.2-1), libssl3 (= 3.0.5-2ubuntu1), libstdc++-12-dev (= 12.2.0-2ubuntu1), libstdc++6 (= 12.2.0-2ubuntu1), libsub-override-perl (= 0.09-3), libsystemd-shared (= 251.4-1ubuntu4), libsystemd0 (= 251.4-1ubuntu4), libtinfo6 (= 6.3+20220423-2), libtirpc-common (= 1.3.3+ds-1), libtirpc-dev (= 1.3.3+ds-1), libtirpc3 (= 1.3.3+ds-1), libtool (= 2.4.7-4), libtsan2 (= 12.2.0-2ubuntu1), libubsan1 (= 12.2.0-2ubuntu1), libuchardet0 (= 0.0.7-1build2), libudev1 (= 251.4-1ubuntu4), libunistring2 (= 1.0-1), libuuid1 (= 2.38-4ubuntu1), libxml2 (= 2.9.14+dfsg-1), libzstd1 (= 1.5.2+dfsg-1), linux-libc-dev (= 5.19.0-16.16), login (= 1:4.11.1+dfsg1-2ubuntu1), lsb-base (= 11.2ubuntu1), lto-disabled-list (= 35), m4 (= 1.4.19-1), make (= 4.3-4.1build1), man-db (= 2.10.2-2), mawk (= 1.3.4.20200120-3.1), media-types (= 8.0.0), mount (= 2.38-4ubuntu1), ncurses-base (= 6.3+20220423-2), ncurses-bin (= 6.3+20220423-2), passwd (= 1:4.11.1+dfsg1-2ubuntu1), patch (= 2.7.6-7build2), perl (= 5.34.0-5ubuntu1), perl-base (= 5.34.0-5ubuntu1), perl-modules-5.34 (= 5.34.0-5ubuntu1), pkg-config (= 0.29.2-1ubuntu3), po-debconf (= 1.0.21+nmu1), python3 (= 3.10.6-1), python3-distutils (= 3.10.6-1), python3-lib2to3 (= 3.10.6-1), python3-minimal (= 3.10.6-1), python3.10 (= 3.10.7-1), python3.10-minimal (= 3.10.7-1), readline-common (= 8.2~rc2-2), rpcsvc-proto (= 1.4.2-0ubuntu6), sed (= 4.8-1ubuntu2), sensible-utils (= 0.0.17), systemd (= 251.4-1ubuntu4), sysvinit-utils (= 3.04-1ubuntu1), tar (= 1.34+dfsg-1build3), util-linux (= 2.38-4ubuntu1), util-linux-extra (= 2.38-4ubuntu1), uuid-dev (= 2.38-4ubuntu1), xz-utils (= 5.2.5-2.1), zlib1g (= 1:1.2.11.dfsg-4.1ubuntu1), zlib1g-dev (= 1:1.2.11.dfsg-4.1ubuntu1) Environment: DEB_BUILD_OPTIONS="parallel=4" DEB_BUILD_PROFILES="noudeb" LANG="C.UTF-8" LC_ALL="C.UTF-8" SOURCE_DATE_EPOCH="1662709697" +------------------------------------------------------------------------------+ | Package contents | +------------------------------------------------------------------------------+ aad-common_0.2_all.deb ---------------------- new Debian package, version 2.0. size 5138 bytes: control archive=679 bytes. 14 bytes, 1 lines conffiles 653 bytes, 17 lines control 219 bytes, 3 lines md5sums Package: aad-common Source: aad-auth Version: 0.2 Architecture: all Maintainer: Ubuntu Developers Installed-Size: 24 Enhances: libnss-aad, libpam-aad Section: admin Priority: optional Homepage: https://github.com/ubuntu/aad-auth Description: Azure Active Directory Authentication common files Azure Active Directory Authentication enables authentication of Azure Active Directory accounts on your local system. It dynamically creates local accounts, supporting additional features like offline connectivity. . This package contains configuration and translation files shared between the other AAD packages. drwxr-xr-x root/root 0 2022-09-09 07:48 ./ drwxr-xr-x root/root 0 2022-09-09 07:48 ./etc/ -rw-r--r-- root/root 1063 2022-09-09 07:48 ./etc/aad.conf drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/doc/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/doc/aad-common/ -rw-r--r-- root/root 630 2022-09-09 07:48 ./usr/share/doc/aad-common/changelog.gz -rw-r--r-- root/root 8266 2022-09-09 07:48 ./usr/share/doc/aad-common/copyright drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/locale/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/locale/fr/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/locale/fr/LC_MESSAGES/ -rw-r--r-- root/root 356 2022-09-09 07:48 ./usr/share/locale/fr/LC_MESSAGES/aad-auth.mo libnss-aad_0.2_amd64.deb ------------------------ new Debian package, version 2.0. size 1759726 bytes: control archive=1725 bytes. 672 bytes, 17 lines control 271 bytes, 4 lines md5sums 1056 bytes, 40 lines * postinst #!/bin/sh 833 bytes, 40 lines * postrm #!/bin/sh 33 bytes, 1 lines shlibs 728 bytes, 26 lines symbols 74 bytes, 2 lines triggers Package: libnss-aad Source: aad-auth Version: 0.2 Architecture: amd64 Maintainer: Ubuntu Developers Installed-Size: 4688 Depends: aad-common, libc6 (>= 2.34), libglib2.0-0 (>= 2.72.1) Built-Using: golang-1.19 (= 1.19-1ubuntu2) Section: admin Priority: optional Homepage: https://github.com/ubuntu/aad-auth Description: Azure Active Directory Authentication module for NSS Azure Active Directory Authentication enables authentication of Azure Active Directory accounts on your local system. It dynamically creates local accounts, supporting additional features like offline connectivity. . This package contains the NSS module. drwxr-xr-x root/root 0 2022-09-09 07:48 ./ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/lib/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/lib/x86_64-linux-gnu/ -rw-r--r-- root/root 18680 2022-09-09 07:48 ./usr/lib/x86_64-linux-gnu/libnss_aad.so.2 drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/libexec/ -rwxr-xr-x root/root 4755304 2022-09-09 07:48 ./usr/libexec/aad-auth drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/doc/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/doc/libnss-aad/ -rw-r--r-- root/root 630 2022-09-09 07:48 ./usr/share/doc/libnss-aad/changelog.gz -rw-r--r-- root/root 8266 2022-09-09 07:48 ./usr/share/doc/libnss-aad/copyright libpam-aad_0.2_amd64.deb ------------------------ new Debian package, version 2.0. size 3419592 bytes: control archive=3333 bytes. 670 bytes, 17 lines control 498 bytes, 7 lines md5sums 95 bytes, 11 lines * postinst #!/bin/sh 151 bytes, 9 lines * prerm #!/bin/sh 15438 bytes, 427 lines symbols 74 bytes, 2 lines triggers Package: libpam-aad Source: aad-auth Version: 0.2 Architecture: amd64 Maintainer: Ubuntu Developers Installed-Size: 9692 Depends: aad-common, libc6 (>= 2.34), libpam0g (>= 0.99.7.1) Built-Using: golang-1.19 (= 1.19-1ubuntu2) Section: admin Priority: optional Homepage: https://github.com/ubuntu/aad-auth Description: Azure Active Directory Authentication module for PAM Azure Active Directory Authentication enables authentication of Azure Active Directory accounts on your local system. It dynamically creates local accounts, supporting additional features like offline connectivity. . This package contains the PAM module. drwxr-xr-x root/root 0 2022-09-09 07:48 ./ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/lib/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/lib/x86_64-linux-gnu/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/lib/x86_64-linux-gnu/security/ -rw-r--r-- root/root 9876224 2022-09-09 07:48 ./usr/lib/x86_64-linux-gnu/security/pam_aad.so drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/apport/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/apport/package-hooks/ -rw-r--r-- root/root 409 2022-09-09 07:48 ./usr/share/apport/package-hooks/libpam-aad.py drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/doc/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/doc/libpam-aad/ -rw-r--r-- root/root 560 2022-09-09 07:48 ./usr/share/doc/libpam-aad/NOTICE -rw-r--r-- root/root 630 2022-09-09 07:48 ./usr/share/doc/libpam-aad/changelog.gz -rw-r--r-- root/root 8266 2022-09-09 07:48 ./usr/share/doc/libpam-aad/copyright drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/lintian/ drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/lintian/overrides/ -rw-r--r-- root/root 109 2022-09-09 07:48 ./usr/share/lintian/overrides/libpam-aad drwxr-xr-x root/root 0 2022-09-09 07:48 ./usr/share/pam-configs/ -rw-r--r-- root/root 124 2022-09-09 07:48 ./usr/share/pam-configs/aad +------------------------------------------------------------------------------+ | Post Build | +------------------------------------------------------------------------------+ +------------------------------------------------------------------------------+ | Cleanup | +------------------------------------------------------------------------------+ Purging /<> Not removing build depends: as requested +------------------------------------------------------------------------------+ | Summary | +------------------------------------------------------------------------------+ Build Architecture: amd64 Build Type: binary Build-Space: 110736 Build-Time: 211 Distribution: kinetic-proposed Host Architecture: amd64 Install-Time: 8 Job: aad-auth_0.2.dsc Machine Architecture: amd64 Package: aad-auth Package-Time: 220 Source-Version: 0.2 Space: 110736 Status: successful Version: 0.2 -------------------------------------------------------------------------------- Finished at 2022-09-09T10:38:33Z Build needed 00:03:40, 110736k disk space Adding user buildd to group lxd RUN: /usr/share/launchpad-buildd/bin/in-target scan-for-processes --backend=chroot --series=kinetic --arch=amd64 PACKAGEBUILD-24348161 Scanning for processes to kill in build PACKAGEBUILD-24348161