forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit76c09db
committed
Rewrite pam_passwd_conv_proc to be more robust: avoid assuming that the
pam_message array contains exactly one PAM_PROMPT_ECHO_OFF message.Instead, deal with however many messages there are, and don't throw errorfor PAM_ERROR_MSG and PAM_TEXT_INFO messages. This logic is borrowed fromopenssh 5.2p1, which hopefully has seen more real-world PAM usage than wehave. Per bug #5121 from Ryan Douglas, which turned out to be caused bythe conv_proc being called with zero messages. Apparently that is normalbehavior given the combination of Linux pam_krb5 with MS Active Directoryas the domain controller.Patch all the way back, since this code has been essentially untouchedsince 7.4. (Surprising we've not heard complaints before.)1 parentc02350d commit76c09db
1 file changed
+80
-48
lines changedLines changed: 80 additions & 48 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
455 |
| - | |
456 | 455 |
| |
457 | 456 |
| |
458 | 457 |
| |
| |||
1888 | 1887 |
| |
1889 | 1888 |
| |
1890 | 1889 |
| |
1891 |
| - | |
1892 |
| - | |
1893 |
| - | |
1894 |
| - | |
1895 |
| - | |
1896 |
| - | |
1897 |
| - | |
1898 |
| - | |
1899 |
| - | |
1900 |
| - | |
1901 |
| - | |
1902 |
| - | |
1903 |
| - | |
1904 |
| - | |
1905 |
| - | |
1906 |
| - | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
1907 | 1893 |
| |
1908 |
| - | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
1909 | 1897 |
| |
1910 | 1898 |
| |
1911 | 1899 |
| |
1912 | 1900 |
| |
1913 | 1901 |
| |
1914 |
| - | |
| 1902 | + | |
1915 | 1903 |
| |
1916 | 1904 |
| |
1917 |
| - | |
1918 |
| - | |
1919 |
| - | |
1920 |
| - | |
1921 |
| - | |
1922 |
| - | |
1923 |
| - | |
1924 |
| - | |
1925 |
| - | |
1926 |
| - | |
1927 |
| - | |
1928 |
| - | |
1929 |
| - | |
| 1905 | + | |
1930 | 1906 |
| |
1931 |
| - | |
1932 |
| - | |
1933 |
| - | |
1934 |
| - | |
1935 |
| - | |
1936 |
| - | |
1937 |
| - | |
1938 |
| - | |
| 1907 | + | |
| 1908 | + | |
1939 | 1909 |
| |
1940 | 1910 |
| |
1941 | 1911 |
| |
1942 | 1912 |
| |
1943 | 1913 |
| |
1944 |
| - | |
1945 |
| - | |
| 1914 | + | |
1946 | 1915 |
| |
1947 | 1916 |
| |
1948 | 1917 |
| |
1949 | 1918 |
| |
1950 | 1919 |
| |
1951 | 1920 |
| |
1952 | 1921 |
| |
1953 |
| - | |
1954 |
| - | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
| 1943 | + | |
| 1944 | + | |
| 1945 | + | |
| 1946 | + | |
| 1947 | + | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
1955 | 1985 |
| |
1956 |
| - | |
| 1986 | + | |
1957 | 1987 |
| |
1958 | 1988 |
| |
1959 | 1989 |
| |
| |||
1967 | 1997 |
| |
1968 | 1998 |
| |
1969 | 1999 |
| |
1970 |
| - | |
1971 |
| - | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
1972 | 2003 |
| |
1973 | 2004 |
| |
| 2005 | + | |
1974 | 2006 |
| |
1975 | 2007 |
| |
1976 | 2008 |
| |
|
0 commit comments
Comments
(0)