LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-10-2020, 01:12 PM   #1
yangyiin
Member
 
Registered: Nov 2018
Posts: 44

Rep: Reputation: Disabled
kerberos


hi,
I have KDC (with AD(active directory)) that authenticate users when i login in centos.We use sssd in centos to connect to AD.
In preauthenticatioon failed situation after an user has changed its AD password with passwd in centos,can i use kpasswd to change the kerberos passwors and the preauthenticatio faild message will no longer appear?
When i use passwd in centos to change password,then this password is updated in KDC and AD?

Last edited by yangyiin; 11-10-2020 at 02:15 PM.
 
Old 11-11-2020, 06:32 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,685

Rep: Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713Reputation: 2713
It has been my experience that "passwd" manipulates ONLY the local passwd and shadow contents, it does NOT affect any AD or remote data.

If you want to address that data you will need to use the applications that support doing that.

The last time I used kpasswd it did NOT always properly update the AD data, but that was about four years and a few versions ago.
 
Old 11-11-2020, 12:27 PM   #3
bgstack15
Member
 
Registered: Jul 2017
Distribution: korora
Posts: 90

Rep: Reputation: Disabled
I was surprised to see that an AD-joined CentOS 7 machine was able to update a user's password. I think it happened when the password had expired, and the user logged in. The traditional, "please update your password" prompt appeared, and then the ssh session terminated so he had to log in all over again.

I believe if you hook up the "password" module to pam_sss in the right way, and if ldap ACLs are set up in AD right (which is typical), then users should be able to change their AD passwords with passwd on a Linux machine.
 
Old 11-12-2020, 10:57 AM   #4
yangyiin
Member
 
Registered: Nov 2018
Posts: 44

Original Poster
Rep: Reputation: Disabled
this is what i seen as bgstack15 written.

Last edited by yangyiin; 11-12-2020 at 11:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh and kerberos error: Server not found in Kerberos database Felipe Linux - Server 1 01-17-2011 03:12 AM
Why does ftp give kerberos warnings? SForsgren Linux - General 0 04-27-2003 02:40 PM
Kerberos krieger Linux - Security 1 01-29-2002 01:40 PM
IBM DB2 with Kerberos fenriswolf Linux - Security 0 10-11-2001 12:50 PM
Kerberos daemon emanners Linux - General 1 06-20-2001 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration