Hey Rstub thanks for the reply!
ok i'll start with the "launcher" bit. as just someone reading the docs it's hard to work out what is meant when i see "Launcher".
I assume it means Job Launcher. But there is also the unfortunatley-named rserver-launcher executable that runs as well. Additionally it's the rserver-launcher process that i see connecting with doing most of the work around the same time as the PAM process as well.
So it's quite hard to know which is meant when it says just "launcher" in the docs. so as you can see i tried everything.
so when i set auth-pam-sessions-enabled=1
then i get the following in my auth.log'
so you can see that it hits the auth
and account
PAM directives but never reaches the session
PAM directive, and NEVER reaches the session PAM profile declared in rserver.conf as auth-pam-sessions-profile=rstudio-session
.
Aug 5 09:34:02 d16a37a99165 rserver-pam[229]: pam_sss(rstudio:auth): unknown option: nodelay
Aug 5 09:34:02 d16a37a99165 rserver-pam[229]: pam_sss(rstudio:auth): unknown option: debug
Aug 5 09:34:02 d16a37a99165 rserver-pam[229]: pam_sss(rstudio:auth): authentication success; logname= uid=0 euid=0 tty= ruser= rhost= user=xxxx
Aug 5 09:34:02 d16a37a99165 rserver-pam[229]: pam_sss(rstudio:account): unknown option: debug
Aug 5 09:34:02 d16a37a99165 rserver-pam[232]: pam_sss(rstudio:auth): unknown option: nodelay
Aug 5 09:34:02 d16a37a99165 rserver-pam[232]: pam_sss(rstudio:auth): unknown option: debug
Aug 5 09:34:02 d16a37a99165 rserver-pam[232]: pam_sss(rstudio:auth): authentication success; logname= uid=0 euid=0 tty= ruser= rhost= user=xxxx
Aug 5 09:34:02 d16a37a99165 rserver-pam[232]: pam_sss(rstudio:account): unknown option: debug
Aug 5 09:34:05 d16a37a99165 rserver-pam[238]: pam_sss(rstudio:auth): unknown option: nodelay
Aug 5 09:34:05 d16a37a99165 rserver-pam[238]: pam_sss(rstudio:auth): unknown option: debug
Aug 5 09:34:05 d16a37a99165 rserver-pam[238]: pam_sss(rstudio:auth): authentication success; logname= uid=0 euid=0 tty= ruser= rhost= user=xxxx
Aug 5 09:34:05 d16a37a99165 rserver-pam[238]: pam_sss(rstudio:account): unknown option: debug
then if i remove the line auth-pam-sessions-enabled=1
line completely then you see the logs as below where you can see it progresses through the PAM directives as expected from auth to account to session. and most importantly picks up the session PAM directive from my rstudio-session
PAM profile which is defined in rserver.conf as auth-pam-sessions-profile=rstudio-session
Aug 5 09:54:14 b5108592b724 rserver-pam[229]: pam_sss(rstudio:auth): unknown option: nodelay
Aug 5 09:54:14 b5108592b724 rserver-pam[229]: pam_sss(rstudio:auth): unknown option: debug
Aug 5 09:54:14 b5108592b724 rserver-pam[229]: pam_sss(rstudio:auth): authentication success; logname= uid=0 euid=0 tty= ruser= rhost= user=xxxx
Aug 5 09:54:14 b5108592b724 rserver-pam[229]: pam_sss(rstudio:account): unknown option: debug
Aug 5 09:54:14 b5108592b724 rserver-pam[232]: pam_sss(rstudio:auth): unknown option: nodelay
Aug 5 09:54:14 b5108592b724 rserver-pam[232]: pam_sss(rstudio:auth): unknown option: debug
Aug 5 09:54:14 b5108592b724 rserver-pam[232]: pam_sss(rstudio:auth): authentication success; logname= uid=0 euid=0 tty= ruser= rhost= user=xxxx
Aug 5 09:54:14 b5108592b724 rserver-pam[232]: pam_sss(rstudio:account): unknown option: debug
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: pam_sss(rstudio-session:auth): unknown option: nodelay
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: pam_sss(rstudio-session:auth): unknown option: debug
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: pam_sss(rstudio-session:auth): authentication success; logname= uid=0 euid=0 tty= ruser= rhost= user=xxxx
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: (pam_mount.c:365): pam_mount 2.16: entering auth stage
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: pam_unix(rstudio-session:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= user=xxxx
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: pam_sss(rstudio-session:auth): authentication success; logname= uid=0 euid=0 tty= ruser= rhost= user=xxxx
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: pam_sss(rstudio-session:account): unknown option: debug
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: pam_sss(rstudio-session:setcred): unknown option: nodelay
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: pam_sss(rstudio-session:setcred): unknown option: debug
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: (pam_mount.c:568): pam_mount 2.16: entering session stage
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: (mount.c:780): Could not get realpath of /home/xxxx/n: No such file or directory
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: (mount.c:250): Mount info: globalconf, user=xxxx <volume fstype="cifs" server="pos1-fhi-svm01" path="styrt" mountpoint="/home/xxxx/n" cipher="(null)" fskeypath="(null)" fskeycipher="(null)" fskeyhash="(null)" options="" /> fstab=0 ssh=0
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: (mount.c:304): mkmountpoint: checking /home
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: (mount.c:304): mkmountpoint: checking /home/xxxx
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: (mount.c:304): mkmountpoint: checking /home/xxxx/n
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: (mount.c:328): mkdir[1804307560] /home/xxxx/n
Aug 5 09:54:14 b5108592b724 rserver-launcher[209]: (mount.c:659): Password will be sent to helper as-is.
So anyway it's interesting to hear that auth-pam-sessions-enabled=1
is actually the default if it's not set in the rserver.conf...
I'm happy to troubleshoot this further myself by the way if i could get more info/logs e.g.
- for the
rserver-launcher
process to see what options are being passed to the executable
- for the rserver-pam process to see the detailed stepping of the program
- code for rserver-pam? i cant find it so i assume it's not open sourced
my current logging.conf looks like this so i think i'm getting debug level logs for everything.
though the @rserver and @rserver-pam entries seem not to direct logs properly.
# This file contains sample logging configuration. Simply uncomment the lines below and modify it to suit your logging needs.
# For more documentation, see the RStudio Server Pro Admin Guide.
#
# define the root logging level, inherited by all loggers
[*]
log-level=debug
logger-type=syslog
#
# define logging specifically for the rserver binary
[@rserver]
log-level=debug
logger-type=file
log-dir=/var/log/rstudio-server
max-size-mb=4
#
# enable debug logging for file locking
#[file-locking]
#log-level=debug
[@rserver-pam]
log-level=debug
logger-type=file
log-dir=/var/log/rstudio-server-pam
max-size-mb=20