Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599830 - sys-process/fcron - User not in passwd file right after system start when using LDAP
Summary: sys-process/fcron - User not in passwd file right after system start when usi...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thomas Deutschmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-15 15:28 UTC by Harald Weiner
Modified: 2016-11-17 22:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harald Weiner 2016-11-15 15:28:50 UTC
When restarting/rebooting a workstation with LDAP/SSSD authentication enabled, fcron ignores user cron tabs at start-up.
The following output appears in /var/log/cron/ log-files
Nov 10 08:16:28 [fcron] fcron[1924] 3.1.2 started
Nov 10 08:16:28 [fcron] updating configuration from /var/spool/fcron
Nov 10 08:16:28 [fcron] adding file systab
Nov 10 08:16:28 [fcron] ignoring file "katharina" : not in passwd file.: Connection refused
Nov 10 08:16:29 [incrond] starting service (version 0.5.10, built on Dec 14 2013 10:06:26)
Nov 10 08:16:29 [incrond] loading system tables
Nov 10 08:16:29 [incrond] loading table test
Nov 10 08:16:29 [incrond] loading table fcron
Nov 10 08:16:29 [incrond] loading user tables
Nov 10 08:16:29 [incrond] ready to process filesystem events

Tested with sys-process/fcron versions 3.1.2-r2 and 3.2.0 (with use-flags mta pam readline system-crontab) and sys-auth/sssd-1.31.1 (with acl autofs locator manpages nls python ssh).

Reproducible: In the majority of cases

Steps to reproduce:
1.) emerge sys-process/fcron (any version)
2.) create non-local user (e.g. via ldap)
3.) use sssd as authentication service
4.) create user cron tab with fcrontab -e <user> for the user created in step 2
5.) reboot workstation
6.) Take a look in fcron logfile and find error message similar to the one mentioned above. 

Expected Results: user cron tab is loaded and handled correctly.

Note: When fcron service is restarted manually a few seconds later, the user crontabs are loaded as expected.

cat /etc/nsswitch.conf 
# /etc/nsswitch.conf:
# $Header: /var/cvsroot/gentoo/src/patchsets/glibc/extra/etc/nsswitch.conf,v 1.1 2006/09/29 23:52:23 vapier Exp $

passwd:      files sss
shadow:      files sss
group:       files sss

hosts:       files dns
networks:    files dns

services:    db files
protocols:   db files
rpc:         db files
ethers:      db files
netmasks:    files
netgroup:    files sss
bootparams:  files

automount:   files sss
aliases:     files
sudoers:     files sss

Results of emerge --info:

emerge --info
Portage 2.3.0 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-4.9.3, glibc-2.22-r4, 4.4.26-gentoo x86_64)                                                                                                       
=================================================================                                                                                                                                                                           
System uname: Linux-4.4.26-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.2                                                                                                                                            
KiB Mem:    32910760 total,  24951040 free                                                                                                                                                                                                   
KiB Swap:   36017472 total,  36017472 free
Timestamp of repository gentoo: Tue, 15 Nov 2016 00:00:01 +0000
sh sh
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.3_p48::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://bessel.storage.local/portage
    priority: -1000

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 0

local
    location: /usr/local/portage
    masters: gentoo


ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs binpkg-multi-instance buildpkg config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ ftp://tux.rainside.sk/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ rsync://gentoo.mirror.dkm.cz/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j14"
PKGDIR="/usr/portage/packages/core2"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="32bit 64bit R X a52 aac aacplus accessibility acl acpi additions akonadi alsa amd64 amr analitza ao archive aspell attica audiofile authlib autofs autoreplace autotools autotrace avahi avx bash-completion berkdb bidi bl blas bluetooth boost branding bs2b bzip2 cairo cdda cddb cdio cdparanoia cdr cg clang cli clucene cmake compat contrast corefonts cracklib crypt cscope css cups curl cvs cxx daap dbus dc1394 debugger declarative desktopglobe device-mapper dga dia diff dirac djbfft djvu dnd dri dts dv dvd dvdr dvipdfm ebook ecc eclipse editor emacs embedded emboss emf emovix enca enchant encode epspdf exif expat extensions extra extras faac faad fam farstream fax fbcon fbcondecor ffmpeg fftw firefox fits flac fluidsynth fontconfig fontforge foomaticdb fortran fpx frei0r fuse gcj gd gdbm gflags gif gimp git glade glamor glew glib gmp gnuplot gpac gpg gpm graphics graphviz groupwise gsl gstreamer gtk gtk3 h323 hdf5 hdri heterogeneous humanities hunspell hyperestraier ical iconv icu id3tag idn ieee1394 ifp imap imlib inkjar inotify ipod ipv6 jabber jadetex java javascript jbig jingle jpeg jpeg2k kate kde kdenlive kino kipi kpathsea ladspa lame lapack lastfm latex lcms ldap lensfun libass libcaca libffi libnotify libsamplerate libssh2 libtiger libv4l libvisual lightning live lm_sensors lqr lua luatex lyx lzma lzo mad marble matroska md5sum mdnsresponder-compat mecab melt midi minizip mjpeg mktemp mmap mmx mng modplug modules mp3 mp4 mpeg mpi mpi-threads mplayer mtp mule multilib musepack musicbrainz mysql nas natspec ncurses nepomuk netpbm network nfs nls nntp nowlistening npp nptl nscd nsplugin numpy nut nuv nvcontrol ocaml octave ogg okteta okular openal openexr opengl openmp openssl opus oscar pam pango pbs pch pcre pda pdf pdfannotextractor perl phonon php physfs plasma player plotutils plugins png pnm policykit portaudio postscript povray ppds preview-latex printsupport prison profiler pstricks publishers pulseaudio python qalculate qimageblitz qml qscintilla qt3support qt4 qt5 qthelp quesoglc quicktime qwt rar raw rdesktop readline redland rendering reports rle romio rss rtc rtmp rtsp ruby sasl sbcl scanner schroedinger science script sdk sdl sdl-image seccomp secure-delete semantic-desktop sensord session shout sidebar sip sipim skype slp smime smp sndfile snmp solver sound soundtouch sox spacenav speex spell sql sqlite sqlite3 srp sse sse2 ssh ssl ssse3 startup-notification static-analyzer stream streaming subversion superlu svg symlink sync-plugin-portage system-sqlite systemd szip taglib tbb tcl tcpd templates tex4ht tga theora threads thumbnail tidy tiff timezone tinfo tk truetype twolame udev udisks umfpack unicode upower urandom usb utempter uvm v4l valgrind vamp vcd vcdx vde vdpau video vim-syntax vlc vlm vnc vorbis vpx wav wavpack webkit webp webpresence widgets winbind winpopup wma wmf wxwidgets x264 xanim xattr xcb xcomposite xemacs xetex xface xft xine xinerama xml xmp xpm xscreensaver xterm xv xvid xvmc yahoo zeroconf zip zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="net hp" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2016-11-17 22:15:28 UTC
You can re-test with latest =sys-process/fcron-3.2.1 however I think that's a timing problem on your system.

Make sure that fcron starts _after_ your LDAP setup is running.