Operating System - Linux
1752795 Members
5793 Online
108789 Solutions
New Discussion юеВ

ssh needs to be restarted to enable the pam stack changes

 
SOLVED
Go to solution
monu_1
Regular Advisor

ssh needs to be restarted to enable the pam stack changes

The pam stack is (a)pam_radius.so(b)pam_unix.so

2. ssh to admin (user at radius server)
Result: Successful as expected.

3. The pam stack is (a) pam_ldap.so (b)pam_radius.so(c)pam_unix.so

4. Restart ssh

5. ssh to admin
Result: Successful as expected. Ldap server contacted

6.The pam stack is (a)pam_radius.so(b)pam_unix.so

7. ssh to admin
Result: Successful as expected. LDAP server contacted

8. Restart ssh( This is unexpected)

9. ssh admin LDAp server not contacted
Result: Successful as expected.
-----
Removing ladp module from pam stack at step # 6 traffic is at LDAP server on ssh to admin (user at radius server) at step # 7. And after restart ssh at #8 it is not the case as expected. My concern is unnecessary server traffic at LDAP server at step # 7.

Can anyone comment on this? Do we need to restart ssh on every step of removing and adding ldap module in pam stack?

Thanks,
MKS
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: ssh needs to be restarted to enable the pam stack changes

Shalom,

No you do not need to restart ssh at every step.

I think you can safely do all the work on the pam stack and then restart ssh

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
monu_1
Regular Advisor

Re: ssh needs to be restarted to enable the pam stack changes

Thanks SEP!

For <>

I have concern why traffic is going on LDAP server even after removing ladp madoule from pam stack

Can you please let me know issue is at pam configuration side or ssh side? It does make sense to look from ssh perspective in this case?

Thanks ,
MKS
Steven E. Protter
Exalted Contributor

Re: ssh needs to be restarted to enable the pam stack changes

Shalom again,

For <>

Valid concern. If you start getting user login problems during the change steps, restart sshd daemon.

I have concern why traffic is going on LDAP server even after removing ladp madoule from pam stack


Issue as I see it:

As you make changes to the pam stack, your new user login process will be changing. Existing sessions should not be impacted unless you leave sshd down for a period of time.

So if you make a change to the pam stack that somehow disables new logins, users will suddenly not be able to log in.

pam stands for plugable authentication module, once you are authenticated it should not effect open sessions, changes here effect new authentications or logins.

Hope this helps.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com