Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am getting a problem that whenever I loged in with my ldap user on a ldap client and try to change the password of ldap user it doesn't allow me to do so...
azizf@pc:~$ passwd
passwd: User not known to the underlying authentication module
passwd: password unchanged
azizf@pc:~$
tail /var/log/auth.log
Apr 15 12:31:53 pc passwd[21600]: pam_unix(passwd:chauthtok): user "azizf" does not exist in /etc/passwd.
-------------------------------------------------
while azizf is ldap user. I don't know how to troubleshoot this problem.
I am getting a problem that whenever I loged in with my ldap user on a ldap client and try to change the password of ldap user it doesn't allow me to do so...
azizf@pc:~$ passwd
passwd: User not known to the underlying authentication module
passwd: password unchanged
azizf@pc:~$
tail /var/log/auth.log
Apr 15 12:31:53 pc passwd[21600]: pam_unix(passwd:chauthtok): user "azizf" does not exist in /etc/passwd.
-------------------------------------------------
while azizf is ldap user. I don't know how to troubleshoot this problem.
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.
The output of /etc/pam.d/common-auth file is as follows
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
#auth requisite pam_unix.so nullok_secure
#auth optional pam_smbpass.so migrate missingok
Is there no section that starts with "password"? Or is there a file called passwd in /etc/pam.d?
The file /etc/pam.d/sshd should be a good clue to what file is being addressed for password manipulation (perhaps something like "password include common-auth"), that is where you also need to have pam_ldap.so to be able to change ldap stored passwords.
the output of passwd file....
__________________________________
root@host1:/etc/pam.d# cat passwd
#
# The PAM configuration file for the Shadow `passwd' service
#
@include common-password
---------------------------------------
The output of sshd file
________________________
root@host1:/etc/pam.d# cat sshd
# PAM configuration for the Secure Shell service
# Read environment variables from /etc/environment and
# /etc/security/pam_env.conf.
auth required pam_env.so # [1]
# In Debian 4.0 (etch), locale-related environment variables were moved to
# /etc/default/locale, so read that as well.
auth required pam_env.so envfile=/etc/default/locale
# Standard Un*x authentication.
@include common-auth
# Disallow non-root logins when /etc/nologin exists.
account required pam_nologin.so
# Uncomment and edit /etc/security/access.conf if you need to set complex
# access limits that are hard to express in sshd_config.
# account required pam_access.so
# Standard Un*x authorization.
@include common-account
# Standard Un*x session setup and teardown.
@include common-session
# Print the message of the day upon successful login.
session optional pam_motd.so # [1]
# Print the status of the user's mailbox upon successful login.
session optional pam_mail.so standard noenv # [1]
# Set up user limits from /etc/security/limits.conf.
session required pam_limits.so
# Set up SELinux capabilities (need modified pam)
# session required pam_selinux.so multiple
# Standard Un*x password updating.
@include common-password
# root@host1:/etc/pam.d# cat sshd
Standard Un*x password updating.
@include common-password
There is probably no call to pam_ldap.so in common-password.
Since you are running a Ubuntu system and I don't have one to check out, check this page for the common-password section. https://help.ubuntu.com/community/LD...Authentication
You can add all your password lines to sshd instead of using the include statement if you want to only effect that service.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.