LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kerberos (https://www.linuxquestions.org/questions/linux-general-1/kerberos-4175685027/)

yangyiin 11-10-2020 01:12 PM

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?

wpeckham 11-11-2020 06:32 AM

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.

bgstack15 11-11-2020 12:27 PM

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.

yangyiin 11-12-2020 10:57 AM

this is what i seen as bgstack15 written.


All times are GMT -5. The time now is 07:34 AM.