Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am running Red Hat Enterprise Linux 4 using OpenLDAP 2.3 for authentication. As part of a security audit we have been asked to suppress any incorrect login information. Our system boots up to a command line login prompt and if an incorrect username is entered then an error message to that effect is displayed and if an incorrect password is entered then a message stating that password is incorrect is displayed. I am not even sure where I should be looking to solve this. I have tried the OpenLDAP documentation and PAM documentation with no luck. What I am trying to achieve is fot the system to report "login incorrect" whether the username or password is incorrect.
Is it coming from the login program itself? If you get the source for it that message is in passwd.c and the Login incorrect one is in login.c otherwise it probably is from pam getting passed back, so probably still supressible in login (take a look at the PAM_FAIL_CHECK macro)
I have an old system that also runs RHEL 4 but is using OpenLDAP 2.2 and the only error messages at the login prompt are "Login incorrect". On the system with OpenLDAP 2.3 running, the error messages are as follows:
Incorrect username -
login (pam_unix)[4531]: check pass; user unknown
Login incorrect
Incorrect password -
login: pam_ldap: error trying to bind as user "uid=test, ou=People, dc=example, dc=co.uk" (invalid credentials)
Login incorrect
In the OpenLDAP config files I have tried to play with the ppolicy_use_lockout value in my slapd.conf by having it in and by removing it with no difference to the error messages. That is the only variable that appears to have anything to do with error messages in OpenLDAP. I still suspect my problem is somewhere in PAM but cannot find anything documented.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.