while testing on confd8.0 With PAM libraries for tacacs+ protocol and lib_nss, we see the user name and password checks pass, but the username is clobbered in confd_cli when we attempt ssh
In confd -7.3.2 version it is printed properly
ems1 connected from 10.x.x.x using ssh on fed
ems1@fed 04:58:26#
ems1@fed 04:58:27#
ems1@fed 04:58:27# show running-config
In confd 8.0 i have seen below issue
connected from 10.x.x.x using ssh on fed
4d85c773b8d2e131564b4abf
@fed 07:42:52#
Below are the logs
6843 2023-06-23T07:46:59.971879+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[768]: src/nss_tacplus.c : begin lookup: user=`bobOPER', server=`10.0.210.134:49'
6844 2023-06-23T07:46:59.986139+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[768]: Args cnt 1
6845 2023-06-23T07:46:59.986236+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[768]: Adding buf/valuepair (group,OPER)
6846 2023-06-23T07:46:59.986254+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[768]: src/nss_tacplus.c: found match: user=`bobOPER', server=`10.0.210.134:49', status=1, attributes? yes
6847 2023-06-23T07:46:59.986266+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[768]: src/nss_tacplus.c: mapped group: oper, mapped shell: /usr/cna/cna-cfgmgr/cfgmgr/bin/cli
6848 2023-06-23T07:46:59.986708+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[768]: debug3: mm_request_send: entering, type 29
6849 2023-06-23T07:46:59.986778+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[768]: debug3: mm_answer_pty: tty /dev/pts/0 ptyfd 3
6850 2023-06-23T07:46:59.986818+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug1: session_pty_req: session 0 alloc /dev/pts/0
6851 2023-06-23T07:46:59.986885+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug3: send packet: type 99
6852 2023-06-23T07:46:59.986937+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug3: receive packet: type 98
6853 2023-06-23T07:46:59.986995+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug1: server_input_channel_req: channel 0 request env reply 0
6854 2023-06-23T07:46:59.987049+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug1: session_by_channel: session 0 channel 0
6855 2023-06-23T07:46:59.987119+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug1: session_input_channel_req: session 0 req env
6856 2023-06-23T07:46:59.987153+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug2: Setting env 0: LANG=C.UTF-8
6857 2023-06-23T07:46:59.987185+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug3: receive packet: type 98
6858 2023-06-23T07:46:59.987251+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug1: server_input_channel_req: channel 0 request shell reply 1
6859 2023-06-23T07:46:59.987366+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug1: session_by_channel: session 0 channel 0
6860 2023-06-23T07:46:59.987397+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug1: session_input_channel_req: session 0 req shell
6861 2023-06-23T07:46:59.987436+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: Starting session:shell on pts/0 for bobOPER from 10.91.179.232 port 27034 id 0
6862 2023-06-23T07:46:59.987960+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug2: fd 4 setting TCP_NODELAY
6863 2023-06-23T07:46:59.988004+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug3: set_sock_tos: set socket 4 IP_TOS 0x48
6864 2023-06-23T07:46:59.988053+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug2: channel 0: rfd 13 isatty
6865 2023-06-23T07:46:59.988085+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug2: fd 13 setting O_NONBLOCK
6866 2023-06-23T07:46:59.988142+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug3: fd 3 is O_NONBLOCK
6867 2023-06-23T07:46:59.988156+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[775]: debug1: Setting controlling tty using TIOCSCTTY.
6868 2023-06-23T07:46:59.988287+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug3: mm_forward_audit_messages: entering
6869 2023-06-23T07:46:59.988495+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[775]: debug3: mm_request_send: entering, type 124
6870 2023-06-23T07:46:59.988614+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[768]: debug3: mm_request_receive: entering
6871 2023-06-23T07:46:59.988724+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[768]: debug3: monitor_read: checking request 124
6872 2023-06-23T07:46:59.988765+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[774]: debug3: send packet: type 99
6873 2023-06-23T07:46:59.988930+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[775]: debug3: Copy environment: GROUP=OPER
6874 2023-06-23T07:46:59.988987+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 sshd[775]: debug3: Copy environment: MOTD_SHOWN=pam
6875 2023-06-23T07:47:00.054669+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 confd_cli: src/nss_tacplus.c: started, uid=(1628111069:1628111069), gid=(1100:4001)
6876 2023-06-23T07:47:00.054716+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 confd_cli: src/nss_tacplus.c: begin lookup: user=`95ba917a148448b92023c3c2#012', server=`10.0.210.134:49'
6877 2023-06-23T07:47:00.057666+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 confd_cli: Args cnt 0
6878 2023-06-23T07:47:00.057679+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 confd_cli: src/nss_tacplus.c: found match: user=`95ba917a148448b92023c3c2#012', server=`10.0.210.134:49', status=1, attributes? no
6879 2023-06-23T07:47:00.057684+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 confd_cli: src/nss_tacplus.c: missing required attribute 'GID'
6880 2023-06-23T07:47:00.068824+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 confd[313]: audit user: 95ba917a148448b92023c3c2#012/25 assigned to groups: oper
6881 2023-06-23T07:47:00.068902+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 confdAudit: [239] user=95ba917a148448b92023c3c2#012/25 event=105/GROUP_ASSIGN : assigned to groups: oper
6882 2023-06-23T07:47:00.069040+00:00 pod-cfgmgr-fed-smf-aks-worker-52411039-vmss000003 confdAudit: [239] user=95ba917a148448b92023c3c2#012/25 event=152/SESSION_CREATE : created new session via cli from 10.91.179.232:27034 with ssh : dest externalIp= 10.91.179.141