LAB 31.3 LDAP luser1@localhost password not working
LAB 31.3 LDAP luser1@localhost password not working.
as per manual password is "password" but not working
Answers
-
in LAB 31.3 step 8.
also no packet in Wireshark while doing this authentication.0 -
1.- What is the OS and version you are working with?
2.- Is it a local system, a VM or a cloud one?
3.- Have you installed all the packages in step 1?
4.- Please provide the content of file /etc/sssd/conf.d/00-sssd.conf .
5.- Show permissions and owner for file /etc/sssd/conf.d/00-sssd.conf:ls -l /etc/sssd/conf.d/00-sssd.conf
4.- Provide the content of file /etc/pam.d/common-session.
5.- Do you get any output for 'getent passwd luser1' ?Regards,
Luis.0 -
Thanks for your reply. Please find the desired information.
1.- What is the OS and version you are working with?
[student@localhost s_31]$ cat /etc/os-release
NAME="Rocky Linux"
VERSION="8.7 (Green Obsidian)"
ID="rocky"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Rocky Linux 8.7 (Green Obsidian)"
ANSI_COLOR="0;32"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:rocky:rocky:8:GA"
HOME_URL="https://rockylinux.org/"
BUG_REPORT_URL="https://bugs.rockylinux.org/"
ROCKY_SUPPORT_PRODUCT="Rocky-Linux-8"
ROCKY_SUPPORT_PRODUCT_VERSION="8.7"
REDHAT_SUPPORT_PRODUCT="Rocky Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"
[student@localhost s_31]$2.- Is it a local system, a VM or a cloud one?
it's a VM.3.- Have you installed all the packages in step 1?
Yes4.- Please provide the content of file /etc/sssd/conf.d/00-sssd.conf .
[sssd]
config_file_version =2
domains = example.com
services = nss,pam,autofs[domain/example.com]
enumerate = true
id_provider = ldap
autofs_provider = ldap
auth_provider = ldap
chpass_provider = ldap
ldap_uri = ldap://192.168.1.35/
ldap_search_base = dc=example,dc=com
ldap_id_use_start_tls = true
cache_credentials = True
ldap_tls_reqcert =allowldap_tls_reqcert = never
5.- Show permissions and owner for file /etc/sssd/conf.d/00-sssd.conf:
ls -l /etc/sssd/conf.d/00-sssd.conf
[student@localhost s_31]$ sudo ls -l /etc/sssd/conf.d/00-sssd.conf
-rw-------. 1 root root 378 May 17 10:25 /etc/sssd/conf.d/00-sssd.conf
[student@localhost s_31]$4.- Provide the content of file /etc/pam.d/common-session.
[student@localhost s_31]$ sudo cat /etc/pam.d/common-session
cat: /etc/pam.d/common-session: No such file or directory
[student@localhost s_31]$ cd /etc/pam.d/
[student@localhost pam.d]$ ll
total 140
-rw-r--r--. 1 root root 272 Sep 29 2022 atd
-rw-r--r--. 1 root root 192 Jan 12 14:57 chfn
-rw-r--r--. 1 root root 192 Jan 12 14:57 chsh
-rw-r--r--. 1 root root 728 Sep 12 2022 cockpit
-rw-r--r--. 1 root root 232 Oct 1 2022 config-util
-rw-r--r--. 1 root root 322 Oct 1 2022 crond
-r--r--r--. 1 root root 146 Sep 30 2022 cups
-rw-r--r--. 1 root root 701 Oct 1 2022 fingerprint-auth
-rw-r--r--. 1 root root 622 Mar 30 2021 gdm-autologin
-rw-r--r--. 1 root root 561 Mar 30 2021 gdm-fingerprint
-rw-r--r--. 1 root root 307 Mar 30 2021 gdm-launch-environment
-rw-r--r--. 1 root root 787 Mar 30 2021 gdm-password
-rw-r--r--. 1 root root 800 Mar 30 2021 gdm-pin
-rw-r--r--. 1 root root 553 Mar 30 2021 gdm-smartcard
-rw-r--r--. 1 root root 715 Jan 12 14:57 login
-rw-r--r--. 1 root root 154 Oct 1 2022 other
-rw-r--r--. 1 root root 168 Apr 20 2022 passwd
-rw-r--r--. 1 root root 760 Oct 1 2022 password-auth
-rw-r--r--. 1 root root 155 Apr 13 2022 polkit-1
-rw-r--r--. 1 root root 398 Oct 1 2022 postlogin
-rw-r--r--. 1 root root 640 Jan 12 14:57 remote
-rw-r--r--. 1 root root 143 Jan 12 14:57 runuser
-rw-r--r--. 1 root root 138 Jan 12 14:57 runuser-l
-rw-r--r--. 1 root root 743 Oct 1 2022 smartcard-auth
-rw-r--r--. 1 root root 727 Feb 21 22:21 sshd
-rw-r--r--. 1 root root 214 Jan 12 14:57 sssd-shadowutils
-rw-r--r--. 1 root root 566 Jan 12 14:57 su
-rw-r--r--. 1 root root 154 Jan 23 14:05 sudo
-rw-r--r--. 1 root root 178 Jan 23 14:05 sudo-i
-rw-r--r--. 1 root root 137 Jan 12 14:57 su-l
-rw-r--r--. 1 root root 760 Oct 1 2022 system-auth
-rw-r--r--. 1 root root 295 Feb 21 22:22 systemd-user
-rw-r--r--. 1 root root 84 Mar 15 2021 vlock
-rw-r--r--. 1 root root 159 Nov 8 2022 vmtoolsd
-rw-r--r--. 1 root root 163 Oct 1 2022 xserver
[student@localhost pam.d]$5.- Do you get any output for 'getent passwd luser1' ?
yes
getent passwd luser1
luser1:*:999001:999001:luser1:/home/users/luser1:0 -
Sorry, my mistake I forgot to add this manually.
[student@localhost pam.d]$ cat common-session
session required pam_unix.so
session optional pam_oddjob_mkhomedir.so
session optional pam_sss.soi
[student@localhost pam.d]$the issue is still present.
0 -
One update I want to add the lab is working on ubuntu 20.04.
0 -
Hi @vikrantchaudhary21, thanks for informing us that the lab worked for you on Ubuntu 20.04. I'm checking on CentOS 8 Stream. I'll let you know as soon as I have news.
Regards,
Luis.0 -
This lab is guaranteed to work on Ubuntu 20.04 and is optional. What you have learned here is that each Linux distro handles some tools differently and tool configuration for one distro may not work for other distros. Getting LDAP to work on anything else other than Ubuntu 20.04 is up to the student.
We will make sure of adding a note to this lab.
Many regards,
Luis.0
Categories
- All Categories
- 167 LFX Mentorship
- 219 LFX Mentorship: Linux Kernel
- 801 Linux Foundation IT Professional Programs
- 357 Cloud Engineer IT Professional Program
- 181 Advanced Cloud Engineer IT Professional Program
- 82 DevOps Engineer IT Professional Program
- 150 Cloud Native Developer IT Professional Program
- 112 Express Training Courses
- 138 Express Courses - Discussion Forum
- 6.3K Training Courses
- 48 LFC110 Class Forum - Discontinued
- 17 LFC131 Class Forum
- 42 LFD102 Class Forum
- 227 LFD103 Class Forum
- 19 LFD110 Class Forum
- 39 LFD121 Class Forum
- 15 LFD133 Class Forum
- 7 LFD134 Class Forum
- 17 LFD137 Class Forum
- 63 LFD201 Class Forum
- 3 LFD210 Class Forum
- 5 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 2 LFD237 Class Forum
- 23 LFD254 Class Forum
- 698 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 157 LFS101 Class Forum
- 1 LFS111 Class Forum
- 1 LFS112 Class Forum
- 1 LFS116 Class Forum
- 7 LFS118 Class Forum
- LFS120 Class Forum
- 7 LFS142 Class Forum
- 7 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 3 LFS147 Class Forum
- 1 LFS148 Class Forum
- 15 LFS151 Class Forum
- 4 LFS157 Class Forum
- 37 LFS158 Class Forum
- 8 LFS162 Class Forum
- 1 LFS166 Class Forum
- 1 LFS167 Class Forum
- 3 LFS170 Class Forum
- 2 LFS171 Class Forum
- 1 LFS178 Class Forum
- 1 LFS180 Class Forum
- 1 LFS182 Class Forum
- 1 LFS183 Class Forum
- 29 LFS200 Class Forum
- 736 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 19 LFS203 Class Forum
- 135 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- 1 LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 48 LFS241 Class Forum
- 48 LFS242 Class Forum
- 37 LFS243 Class Forum
- 15 LFS244 Class Forum
- LFS245 Class Forum
- LFS246 Class Forum
- 51 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 155 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 5 LFS256 Class Forum
- 1 LFS257 Class Forum
- 1.3K LFS258 Class Forum
- 10 LFS258-JP クラス フォーラム
- 122 LFS260 Class Forum
- 159 LFS261 Class Forum
- 42 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 20 LFS267 Class Forum
- 25 LFS268 Class Forum
- 31 LFS269 Class Forum
- 5 LFS270 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 10 LFW111 Class Forum
- 261 LFW211 Class Forum
- 182 LFW212 Class Forum
- 15 SKF100 Class Forum
- 1 SKF200 Class Forum
- 1 SKF201 Class Forum
- 782 Hardware
- 198 Drivers
- 68 I/O Devices
- 37 Monitors
- 96 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 83 Storage
- 758 Linux Distributions
- 80 Debian
- 67 Fedora
- 15 Linux Mint
- 13 Mageia
- 23 openSUSE
- 143 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 348 Ubuntu
- 461 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 90 Linux Security
- 77 Network Management
- 101 System Management
- 46 Web Management
- 64 Mobile Computing
- 17 Android
- 34 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 371 Off Topic
- 114 Introductions
- 174 Small Talk
- 19 Study Material
- 806 Programming and Development
- 304 Kernel Development
- 204 Software Development
- 1.8K Software
- 263 Applications
- 180 Command Line
- 3 Compiling/Installing
- 405 Games
- 309 Installation
- 97 All In Program
- 97 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)