forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7618eaf
committed
Avoid downcasing/truncation of RADIUS authentication parameters.
Commit6b76f1b changed all the RADIUS auth parameters to be listsrather than single values. But its use of SplitIdentifierStringto parse the list format was not very carefully thought through,because that function thinks it's parsing SQL identifiers, whichmeans it will (a) downcase the strings and (b) truncate them tobe shorter than NAMEDATALEN. While downcasing should be harmlessfor the server names and ports, it's just wrong for the sharedsecrets, and probably for the NAS Identifier strings as well.The truncation aspect is at least potentially a problem too,though typical values for these parameters would fit in 63 bytes.Fortunately, we now have a function SplitGUCList that is exactlythe same except for not doing the two unwanted things, so fixingthis is a trivial matter of calling that function instead.While here, improve the documentation to show how to double-quotethe parameter values. I failed to resist the temptation to dosome copy-editing as well.Report and patch from Marcos David (bug #16106); doc changes by me.Back-patch to v10 where the aforesaid commit came in, since this isarguably a regression from our previous behavior with RADIUS auth.Discussion:https://postgr.es/m/16106-7d319e4295d08e70@postgresql.org1 parent2c7b5da commit7618eaf
2 files changed
+29
-18
lines changedLines changed: 25 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1824 | 1824 |
| |
1825 | 1825 |
| |
1826 | 1826 |
| |
1827 |
| - | |
| 1827 | + | |
1828 | 1828 |
| |
1829 | 1829 |
| |
1830 | 1830 |
| |
| |||
1833 | 1833 |
| |
1834 | 1834 |
| |
1835 | 1835 |
| |
1836 |
| - | |
1837 |
| - | |
1838 |
| - | |
1839 |
| - | |
1840 |
| - | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
1841 | 1841 |
| |
1842 | 1842 |
| |
1843 | 1843 |
| |
| |||
1847 | 1847 |
| |
1848 | 1848 |
| |
1849 | 1849 |
| |
1850 |
| - | |
| 1850 | + | |
1851 | 1851 |
| |
1852 | 1852 |
| |
1853 | 1853 |
| |
| |||
1858 | 1858 |
| |
1859 | 1859 |
| |
1860 | 1860 |
| |
1861 |
| - | |
| 1861 | + | |
1862 | 1862 |
| |
1863 | 1863 |
| |
1864 | 1864 |
| |
| |||
1878 | 1878 |
| |
1879 | 1879 |
| |
1880 | 1880 |
| |
1881 |
| - | |
1882 |
| - | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
1883 | 1884 |
| |
1884 | 1885 |
| |
1885 | 1886 |
| |
| |||
1888 | 1889 |
| |
1889 | 1890 |
| |
1890 | 1891 |
| |
1891 |
| - | |
1892 |
| - | |
1893 |
| - | |
1894 |
| - | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
1895 | 1896 |
| |
1896 | 1897 |
| |
1897 | 1898 |
| |
| |||
1900 | 1901 |
| |
1901 | 1902 |
| |
1902 | 1903 |
| |
| 1904 | + | |
| 1905 | + | |
| 1906 | + | |
| 1907 | + | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
1903 | 1914 |
| |
1904 | 1915 |
| |
1905 | 1916 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1927 | 1927 |
| |
1928 | 1928 |
| |
1929 | 1929 |
| |
1930 |
| - | |
| 1930 | + | |
1931 | 1931 |
| |
1932 | 1932 |
| |
1933 | 1933 |
| |
| |||
1976 | 1976 |
| |
1977 | 1977 |
| |
1978 | 1978 |
| |
1979 |
| - | |
| 1979 | + | |
1980 | 1980 |
| |
1981 | 1981 |
| |
1982 | 1982 |
| |
| |||
2011 | 2011 |
| |
2012 | 2012 |
| |
2013 | 2013 |
| |
2014 |
| - | |
| 2014 | + | |
2015 | 2015 |
| |
2016 | 2016 |
| |
2017 | 2017 |
| |
| |||
2033 | 2033 |
| |
2034 | 2034 |
| |
2035 | 2035 |
| |
2036 |
| - | |
| 2036 | + | |
2037 | 2037 |
| |
2038 | 2038 |
| |
2039 | 2039 |
| |
|
0 commit comments
Comments
(0)