|
Bugzilla – Full Text Bug Listing |
| Summary: | AUTHENTICATION ERROR MESSAGES COULD BE FOUND IN /VAR/ADM/MESSAGES | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Gyorgy Aszalos <gyorgy.aszalos> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | high | ||
| Priority: | normal | ||
| Version: | 1.7.4 | ||
| Hardware: | Sun | ||
| OS: | Solaris 2.x | ||
| Attachments: |
'sudo -V' output
truss output LD_DEBUG |
||
|
Description
Gyorgy Aszalos
2013-06-04 04:13:15 MDT
Created attachment 369 [details]
'sudo -V' output
Created attachment 370 [details]
truss output
Created attachment 371 [details]
LD_DEBUG
Hello,
please find some symptoms about the issue.
Thank you.
Best regards,
Gyorgy
This sounds like a problem with pam_login_limit.so, not sudo.
If you run:
nm -o /usr/lib/security/pam_login_limit.so.1|grep main
do you see a reference to main? If so, then pam_login_limit.so.1
is the problem.
The pam_login_limit.so module is not shipped as a standard part of
Solaris as far as I can tell. I've seen this exact problem when a
shared module is built with gcc but the final linking is done without
using the -shared flag.
Hello Todd, first of all thank you for your feedback. This could be the reason, because both sudo and pam_login_limit.so.1 were installed during the same installation procedure, not only sudo. According to the output the pam_login_limit.so.1 contains a reference to main. $ /usr/ccs/bin/nm -o ./pam_login_limit.so.1 | grep main [88] |000000000000|000000000000|NOTY |GLOB |0 |UNDEF |main Just a question remained unanswered for me. $ ls -l /usr/local/bin/sudo.1.* ---s--x--x 1 root root 205396 Jun 7 08:36 /usr/local/bin/sudo.1.7.4p4 ---s--x--x 1 root root 207090 Feb 4 2011 /usr/local/bin/sudo.1.7.4p6 If ran the following two commands on a test machine for the same pam_login_limit.so.1, I have the following output: 1. Using the older sudo version. $ /usr/local/bin/sudo.1.7.4p4 vi /etc/passwd Password: Sorry, try again. Password: sudo.1.7.4p4: 1 incorrect password attempt Note: The correct password is not accepted 2. Using sudo installed during the latest update $ /usr/local/bin/sudo.1.7.4p6 vi /etc/passwd sudo.1.7.4p6: pam_authenticate: Dlopen failure $ tail /var/adm/messages Jun 10 15:39:10 blnfce066 sudo: [ID 702911 auth.alert] rtp99 : 1 incorrect password attempt ; TTY=pts/42 ; PWD=/usr/local/bin ; USER=root ; COMMAND=/usr/bin/vi /etc/passwd Jun 10 15:39:36 blnfce066 sudo.1.7.4p6[1597]: [ID 401707 auth.error] open_module: /usr/lib/security/pam_login_limit.so.1 failed: ld.so.1: sudo.1.7.4p6: fatal: relocation error: file /usr/lib/security/pam_login_limit.so.1: symbol main: referenced symbol not found Jun 10 15:39:36 blnfce066 sudo.1.7.4p6[1597]: [ID 487707 auth.error] load_modules: can not open module /usr/lib/security/pam_login_limit.so.1 Jun 10 15:39:36 blnfce066 sudo: [ID 702911 auth.alert] rtp99 : pam_authenticate: Dlopen failure ; TTY=pts/42 ; PWD=/usr/local/bin ; USER=root ; COMMAND=/usr/bin/vi /etc/passwd [rtp99@blnfce066:/usr/local/bin] $ date Monday, June 10, 2013 3:40:03 PM MEST I am confused, why the behaviour of two sudo versions are different with the same pam_login_limit.so.1. Regards, Gyorgy Hello, my colleague found that the build script is using gcc –G option: gcc -G ../CR0096243/PAM/pam_login_limit.c -lpam -lc -o ../CR0096243/PAM/pam_login_limit.so.1 The recompiled pam_login_limit.so.1 with 'gcc -shared -DPIC -fPIC -G pam_login_limit.c -lpam -lc -o pam_login_limit.so.1' seems to be solved the problem. Thank you once again your help. Regards, Gyorgy Submitter confirmed that pam_login_limit.so was the problem. |