Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 825007 Details for
Bug 1031334
LMI_AccountProvider crash if user password is in /etc/passwd instead of /etc/shadow
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to fall back to /etc/passwd if /etc/shadow returns NULL password
fall-back-to-passwd.patch (text/plain), 738 bytes, created by
Klaus Kämpf
on 2013-11-16 23:07:37 UTC
(
hide
)
Description:
Patch to fall back to /etc/passwd if /etc/shadow returns NULL password
Filename:
MIME Type:
Creator:
Klaus Kämpf
Created:
2013-11-16 23:07:37 UTC
Size:
738 bytes
patch
obsolete
>diff --git a/src/account/LMI_AccountProvider.c b/src/account/LMI_AccountProvider.c >index da7f97080047..a55a220d78dd 100644 >--- a/src/account/LMI_AccountProvider.c >+++ b/src/account/LMI_AccountProvider.c >@@ -207,6 +207,12 @@ static CMPIStatus LMI_AccountEnumInstances( > } > > password = aux_lu_get_str(lue, LU_SHADOWPASSWORD); >+ if (password == NULL) { >+ /* password is not in /etc/shadow */ >+ password = aux_lu_get_str(lue, LU_USERPASSWORD); >+ if (password == NULL) >+ password = ""; >+ } > LMI_Account_Init_UserPassword(&la, 1); > LMI_Account_Set_UserPassword(&la, 0, password); > /* Assume all passwords (encrypted or not) are in ascii encoding */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1031334
: 825007