TACACS+ protocol client library and PAM module in C. This PAM module support authentication, authorization (account management) and accounting (session management)performed using TACACS+ protocol designed by Cisco.
when building package using debuild -us -uc, build fails during dh_auto_test:
dh_auto_test
make -j1 test VERBOSE=1
make[1]: Entering directory '/home/docker/workspace/libpam-tacplus'
bash -x test.sh
+ set -exo pipefail
+ sudo -E PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 make install
make[2]: Entering directory '/home/docker/workspace/libpam-tacplus'
make[3]: Entering directory '/home/docker/workspace/libpam-tacplus'
/bin/mkdir -p '/usr/lib/x86_64-linux-gnu'
/bin/bash ./libtool --mode=install /usr/bin/install -c libtac.la '/usr/lib/x86_64-linux-gnu'
libtool: install: /usr/bin/install -c .libs/libtac.so.2.0.0 /usr/lib/x86_64-linux-gnu/libtac.so.2.0.0
libtool: install: (cd /usr/lib/x86_64-linux-gnu && { ln -s -f libtac.so.2.0.0 libtac.so.2 || { rm -f libtac.so.2 && ln -s libtac.so.2.0.0 libtac.so.2; }; })
libtool: install: (cd /usr/lib/x86_64-linux-gnu && { ln -s -f libtac.so.2.0.0 libtac.so || { rm -f libtac.so && ln -s libtac.so.2.0.0 libtac.so; }; })
libtool: install: /usr/bin/install -c .libs/libtac.lai /usr/lib/x86_64-linux-gnu/libtac.la
libtool: finish: PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/sbin" ldconfig -n /usr/lib/x86_64-linux-gnu
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/x86_64-linux-gnu
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/bin'
/bin/bash ./libtool --mode=install /usr/bin/install -c tacc '/usr/bin'
libtool: install: /usr/bin/install -c .libs/tacc /usr/bin/tacc
/bin/mkdir -p '/usr/share/doc/libpam-tacplus'
/usr/bin/install -c -m 644 sample.pam README.md AUTHORS ChangeLog '/usr/share/doc/libpam-tacplus'
/bin/mkdir -p '/usr/include/libtac'
/usr/bin/install -c -m 644 libtac/include/tacplus.h libtac/include/libtac.h libtac/include/cdefs.h '/usr/include/libtac'
/bin/mkdir -p '/lib/x86_64-linux-gnu/security'
/bin/bash ./libtool --mode=install /usr/bin/install -c pam_tacplus.la '/lib/x86_64-linux-gnu/security'
libtool: warning: relinking 'pam_tacplus.la'
libtool: install: (cd /home/docker/workspace/libpam-tacplus; /bin/bash "/home/docker/workspace/libpam-tacplus/libtool" --tag CC --mode=relink gcc -Wall -Wextra -Werror -I ./libtac/include -I ./libtac/lib -g -O2 -fdebug-prefix-map=/home/docker/workspace/libpam-tacplus=. -fstack-protector-strong -Wformat -Werror=format-security -module -avoid-version -Wl,-z,relro -o pam_tacplus.la -rpath /lib/x86_64-linux-gnu/security pam_tacplus_la-pam_tacplus.lo pam_tacplus_la-support.lo libtac.la -lcrypto -lpam )
libtool: relink: gcc -shared -fPIC -DPIC .libs/pam_tacplus_la-pam_tacplus.o .libs/pam_tacplus_la-support.o -L/usr/lib/x86_64-linux-gnu -ltac -lcrypto -lpam -g -O2 -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-soname -Wl,pam_tacplus.so -o .libs/pam_tacplus.so
libtool: install: /usr/bin/install -c .libs/pam_tacplus.soT /lib/x86_64-linux-gnu/security/pam_tacplus.so
libtool: install: /usr/bin/install -c .libs/pam_tacplus.lai /lib/x86_64-linux-gnu/security/pam_tacplus.la
libtool: finish: PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/sbin" ldconfig -n /lib/x86_64-linux-gnu/security
----------------------------------------------------------------------
Libraries have been installed in:
/lib/x86_64-linux-gnu/security
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/mkdir -p '/usr/lib/x86_64-linux-gnu/pkgconfig'
/usr/bin/install -c -m 644 libtac.pc '/usr/lib/x86_64-linux-gnu/pkgconfig'
make[3]: Leaving directory '/home/docker/workspace/libpam-tacplus'
make[2]: Leaving directory '/home/docker/workspace/libpam-tacplus'
+ sudo tee /etc/tacacs+/tac_plus.conf
tee: /etc/tacacs+/tac_plus.conf: No such file or directory
accounting file = /var/log/tac_plus.acct
key = testkey123
user = testuser1 {
global = cleartext "testpass123"
service = ppp protocol = ip {
addr=1.2.3.4
}
}
user = testuser2 {
global = cleartext "testpass123"
service = ppp protocol = ip {
addr=2.3.4.5
}
}
Makefile:1338: recipe for target 'test' failed
make[1]: *** [test] Error 1
make[1]: Leaving directory '/home/docker/workspace/libpam-tacplus'
dh_auto_test: make -j1 test VERBOSE=1 returned exit code 2
debian/rules:13: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1116:
dpkg-buildpackage -rfakeroot -us -uc -b failed
Makefile:468: recipe for target 'libpam-tacplus' failed
make[1]: *** [libpam-tacplus] Error 29
when building package using debuild -us -uc, build fails during dh_auto_test:
A PR has been submitted to solve this issue: https://github.com/kravietz/pam_tacplus/pull/145