That looks like everything to me.
You don't have any "sufficient" modules earlier in the list in those pam configuration files by any chance?
I don't have a SLES server handy, but on SuSE I have exactly that configuration and it is working correctly.
/etc/security/limits:
Code:
#@student - maxlogins 4
* soft nofile 64000
* hard nofile 64000
# End of file
/etc/pam.d/sshd:
Code:
auth required pam_unix2.so # set_secrpc
auth required pam_nologin.so
auth required pam_env.so
account required pam_unix2.so
account required pam_nologin.so
password required pam_pwcheck.so
password required pam_unix2.so use_first_pass use_authtok
session required pam_unix2.so none # trace or debug
session required pam_limits.so
Result:
A reboot is not needed, just a new login session when you change this.