$sudosssctluser-checks<username>user:marsloaction:acctservice:system-authSSSDnssuserlookupresult:-username:marslo-userid:33637-groupid:40048-gecos:MarsloJiao (Marslo Jiao)-homedirectory:/home/marslo-shell:/bin/bashInfoPipe operation failed. Check that SSSD is running and the InfoPipe responder is enabled. Make sure 'ifp' is listed in the 'services' option in sssd.conf.InfoPipe User lookup with [marslo] failed.
testingpam_acct_mgmtpam_acct_mgmt:SuccessPAMEnvironment:-noenv-# or$getentpasswd-ssssmarslo
add user name
$sudo/usr/sbin/sss_overrideuser-add<username>-nsecondary-username# verification$idsecondary-username# display the override$sudo/usr/sbin/sss_overrideuser-showuser-name
override the uid
# check current uid$id-u<username># overwride$sudo/usr/sbin/sss_overrideuser-add<username>-u<new-uid>$sudo/usr/sbin/sss_cache--users# or$sudo/usr/sbin/sss_cache--user<username>$sudosystemctlrestartsssd
override the gid
# check current gid$id-g<username># or$id-nG<username># or$sudolid-g<group_name># override$sudo/usr/sbin/sss_overrideuser-add<username>-g<new-gid>$sudo/usr/sbin/sss_cache--users$sudo/usr/sbin/sss_cache--user<username>$sudosystemctlrestartsssd
override the home directory
# check current home directory$getentpasswd<username># override$sudo/usr/sbin/sss_overrideuser-add<username>-h/new/home/directory$sudosystemctlrestartsssd
# clear the cache and update all records$sudo/usr/sbin/sss_cache [-E|--everything]# clear invalidates cache entries for all user records$sudo/usr/sbin/sss_cache [-U|--users]# clear all cached entries for a particular domain$sudo/usr/sbin/sss_cache [-E|--everything] [-d|--domain]<ldap_name># purge the records for that specific account and leave the rest of the cache intact$sudo/usr/sbin/sss_cache [-u|--user]<username># invalidates the cache entry for the specified group$sudo/usr/sbin/sss_cache [-g|--group]<groupname>
# get info$loginctl# logout$loginctlkill-user<username>$sudo/usr/sbin/sss_cache-u<username>$loginctlterminate-user<username>$sudopkill-u<username>$systemctlrestartsssd$systemctlrestartaccounts-daemon
login to root to execute the following commands; or use any sudo local account, otherwise the sssd account will be unavailable when sssd service is stopped !
# login to root or any sudo local account$sudosu-# clean cache$sudo/usr/sbin/sss_cache-udevops$sudo/usr/sbin/sss_cache-E$sudosystemctlrestartsssd# stop sssd service and remove /var/lib/sss/mc/passwd$sudosystemctlstopsssd.service$sudomv/var/lib/sss/mc/passwd{,.bak}# create local user$sudouseradd-m-d'/home/devops'-u1001-gdevops-s/bin/bashdevops$iddevopsuid=1001(devops) gid=1001(devops) groups=1001(devops)# start sssd service$sudosystemctlstartsssd.service
After this in /etc/sssd/sssd.conf file Specify ldap_default_bind_dn and ldap_default_authtok as default bind dn and password respectively, this depends upon your ldap setup.
sudo: unable to load /usr/lib/x86_64-linux-gnu/libsss_sudo.so: /usr/lib/x86_64-linux-gnu/libsss_sudo.so: cannot open shared object file: No such file or directory
sudo:unabletoinitializeSSSsource.IsSSSDinstalledonyourmachine?