1162
1162
char buffer[256];
1163
1163
NormalizeModuleName( buffer, module, sizeof(buffer));
1165
if(!strcmp(phase, "auth") &&
1165
/* Fix bug 5557. On HP-UX 11.31, libpam_hpsec.so.1 also blocks domain
1166
* users in the account phase. */
1167
if((!strcmp(phase, "auth") || !strcmp(phase, "account")) &&
1166
1168
!strcmp(control, "required") &&
1167
1169
!strcmp(buffer, "pam_hpsec"))
1859
1861
!PamModulePrompts(phase, module) &&
1860
1862
!PamModuleChecksCaller(phase, module))))
1864
char normalizedService[256];
1862
1866
if(state->sawCallerRequirementLine)
1864
1868
/* This service is protected by something other than a password
1893
1897
* system, then gnome-screensaver-smartcard does not have any
1894
1898
* auth modules.
1896
if(!strcmp(service, "gdm-autologin"))
1898
if(!strcmp(service, "passwd"))
1900
if(!strcmp(service, "rsh"))
1902
if(!strcmp(service, "shadow"))
1904
if(!strcmp(service, "runuser"))
1906
if(!strcmp(service, "runuser-l"))
1900
strncpy(normalizedService, service, sizeof(normalizedService));
1901
normalizedService[sizeof(normalizedService) - 1] = '\0';
1902
if(CTStrEndsWith(normalizedService, ".rpmnew"))
1905
strlen(normalizedService) - strlen(".rpmnew")] = '\0';
1907
if(!strcmp(normalizedService, "gdm-autologin"))
1909
if(!strcmp(normalizedService, "passwd"))
1911
if(!strcmp(normalizedService, "rsh"))
1913
if(!strcmp(normalizedService, "shadow"))
1915
if(!strcmp(normalizedService, "runuser"))
1917
if(!strcmp(normalizedService, "runuser-l"))
1908
1919
/* I'm not sure if this is a typo or not */
1909
if(!strcmp(service, "kde-np"))
1920
if(!strcmp(normalizedService, "kde-np"))
1911
1922
/* Centos 5 has kdm-np as part of an optional package */
1912
if(!strcmp(service, "kdm-np"))
1914
if(!strcmp(service, "xdm-np"))
1916
if(!strcmp(service, "useradd"))
1918
if(!strcmp(service, "gnome-screensaver-smartcard"))
1923
if(!strcmp(normalizedService, "kdm-np"))
1925
if(!strcmp(normalizedService, "xdm-np"))
1927
if(!strcmp(normalizedService, "useradd"))
1929
if(!strcmp(normalizedService, "gnome-screensaver-smartcard"))
1921
1932
DJ_LOG_ERROR("Nothing seems to be protecting logins for service %s", service);
2484
2495
for(i = 0; i < serviceCount; i++)
2497
if(!strcmp(services[i], "common-pammount"))
2499
/* eeepc has a pam file called common-pammount which is only
2500
* intended to be used as an include file in conjunction with
2501
* other include files. All of our changes should go in
2502
* common-auth instead.
2504
DJ_LOG_INFO("Ignoring pam service common-pammount");
2486
2507
for(j = 0; phases[j] != NULL; j++)
2488
2509
memset(&state, 0, sizeof(state));