1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 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 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML
><HEAD
><link rel='stylesheet' type='text/css' href='manpage.css'>
<!-- $Id: README_authlib.sgml,v 1.3 2005/07/05 12:25:08 mrsam Exp $ -->
<!-- Copyright 1998 - 2004 Double Precision, Inc. See COPYING for -->
<!-- distribution information. -->
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<link rel="icon" href="icon.gif" type="image/gif" />
<TITLE
>Courier Authentication Library</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="AUTHLIB"
></A
>Courier Authentication Library</H1
><P
>This library is used for two purposes:</P
><P
>1. Read the name of a mail account.
Determine the local account's home directory, and system userid and
groupid.</P
><P
>2. Read an account name, and a password.
If valid, determine the account's home directory, system userid, and
groupid.</P
><P
>The term "authentication" is used in the following documentation to refer
to either one of these two functions.
The library contains several alternative authentication modules to choose
from, described below.</P
><P
>The configuration file <TT
CLASS="FILENAME"
>@authdaemonrc@</TT
> contains several
settings. The most important of them are:</P
><P
></P
><UL
><LI
><P
>A list of authentication modules to activate.
By default, this list includes all available authentication modules,
even if some are not actually installed at the moment.
When the authentication library is set up, only those authentication
modules that can be supported by the operating system will be installed.
Some of the listed modules may not actually be there,
however that's not a problem.
Any unavailable authentication modules will be ignored.
Also, on some platforms certain authentication modules are installed by
optional sub-packages.
Installing the sub-package is the only action needed to make use of it.</P
><P
>The only time the list of authentication modules need to be adjusted is
when an available authentication module must be disabled for some reason.
This should only be needed in the most unusual circumstances.</P
></LI
><LI
><P
>Number of authentication processes.
The default setting is to start five authentication processes, which should be
sufficient for normal usage.
Try increasing this setting if its taking too long to log into an account,
and you have determined that this is not due to a bottleneck in the whatever
authentication database you're using (LDAP, MySQL, or PostgreSQL).</P
><P
>An authentication request must be completed within thirty seconds, otherwise
it gets rejected.
When authentication requests come in faster than all five authentication
processes can get to them, delays build up, and the timer is ticking.
If all the activity maxes out the CPU or I/O bandwidth,
nothing can be done about it, short
of getting another server. However if there's plenty of available CPU and
I/O, increasing the number of processes will do the trick.</P
></LI
></UL
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN20"
>The <TT
CLASS="LITERAL"
>authpwd</TT
> authentication module</A
></H2
><P
>This modules obtains account information and passwords from the
<TT
CLASS="FILENAME"
>/etc/passwd</TT
> file.</P
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
>NOTE:</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>This module doesn't actually read the <TT
CLASS="FILENAME"
>/etc/passwd</TT
>
file, it uses the C library's getpw() functions.
The C library implementation could use any mechanism to obtain the equivalent
information.</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN28"
>The <TT
CLASS="LITERAL"
>authshadow</TT
> authentication module</A
></H2
><P
>This module is a version of the <TT
CLASS="LITERAL"
>authpwd</TT
> module that
reads passwords
from <TT
CLASS="FILENAME"
>/etc/shadow</TT
> (the C library's getsp()
functions).</P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN34"
>The <TT
CLASS="LITERAL"
>authpam</TT
> authentication module</A
></H2
><P
>This modules uses the system's PAM library
(pluggable authentication modules) for authentication.
This is, essentially, a way to use existing PAM modules for authentication.
Note, however, that the authenticated account's home directory, userid and
groupid are still read from the <TT
CLASS="FILENAME"
>/etc/passwd</TT
> file,
since PAM functionality is limited to validating account passwords.</P
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
>NOTE:</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Not all PAM modules are compatible with Courier's authentication library.
PAM modules that make use of PAM's session functions, or authentication token
functions, like <TT
CLASS="LITERAL"
>pam_krb5</TT
> will not work with Courier.</P
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
>NOTE:</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Additional configuration steps will be required to set up
the PAM library to authenticate Courier's services.
Courier's IMAP and POP3 servers, for example, require that the
<SPAN
CLASS="QUOTE"
>"imap"</SPAN
> and <SPAN
CLASS="QUOTE"
>"pop3"</SPAN
> PAM service to be
configured.</P
><P
>The specific configuration steps differ from system to system.
Consult the system documentation for more information.
It might be tempting to throw in a towel and use
<TT
CLASS="LITERAL"
>authshadow</TT
> or <TT
CLASS="LITERAL"
>authpwd</TT
>
if you cannot figure out how to install PAM support,
however that is not advisable.
It is highly recommended to use
<TT
CLASS="FILENAME"
>authpam</TT
> wherever the PAM library is available.</P
><P
>The exact configuration procedure depends on the PAM implementation.
Most PAM libraries use configuration files in the
<TT
CLASS="FILENAME"
>/etc/pam.d</TT
> directory.
Therefore, it will be necessary to install the configuration files
<TT
CLASS="FILENAME"
>/etc/pam.d/imap</TT
> and
<TT
CLASS="FILENAME"
>/etc/pam.d/pop3</TT
>. Similarly, Courier's webmail
server, SqWebMail, uses <TT
CLASS="FILENAME"
>/etc/pam.d/webmail</TT
>, and
its optional calendar component uses <TT
CLASS="FILENAME"
>/etc/pam.d/webmail</TT
>.
Courier-MTA's authenticated SMTP component uses the
<TT
CLASS="FILENAME"
>/etc/pam.d/smtp</TT
> service.</P
><P
>In nearly all cases all these configuration files will specify an
identical PAM library configuration for all services.
The exact configuration details are site-specific.
Here's an example of a PAM configuration file for a recent version of the
most common PAM library:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN58"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>auth required pam_nologin.so
auth required pam_stack.so service=system-auth
account required pam_stack.so service=system-auth
session required pam_stack.so service=system-auth</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>Again, the actual configuration is site specific.
Examine the contents of existing configuration files in
<TT
CLASS="FILENAME"
>/etc/pam.d</TT
> for similar services (if there's
<TT
CLASS="FILENAME"
>/etc/pam.d/ppp</TT
>
it's often a good example to follow) in order
to derive the correct setup for Courier.</P
><P
>Older PAM libraries use a single configuration file, usually
<TT
CLASS="FILENAME"
>/etc/pam.conf</TT
>.
Append Courier-specific PAM settings to this configuration file, again
using settings for existing services as a guide.
For example:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN65"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>imap auth required pam_unix.so try_first_pass
imap account required pam_unix.so
imap session required pam_permit.so
pop3 auth required pam_unix.so try_first_pass
pop3 account required pam_unix.so</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>Some PAM libraries use
<TT
CLASS="FILENAME"
>pam_pwdb.so</TT
> instead of
<TT
CLASS="FILENAME"
>pam_unix.so</TT
>; consult the PAM library's
documentation for more information.</P
></TD
></TR
></TABLE
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN70"
>The <TT
CLASS="LITERAL"
>authpipe</TT
> authentication module</A
></H2
><P
>This is a generic plug-in module that runs an external script,
or a program, in response to authentication requests.</P
><P
>The external program reads from stdin and writes to stdout. It
can be persistent and handle many authentication requests. Only one request
will be sent to it at a time; each authdaemon process starts its own copy of
the external script.</P
><P
>The location of the external program is set by the
<TT
CLASS="LITERAL"
>--with-pipeprog</TT
> configure option,
which defaults to
<TT
CLASS="FILENAME"
>@sysconfdir@/authlib/authProg</TT
>. A sample program
is included in the courier-authlib source.</P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN78"
>The <TT
CLASS="LITERAL"
>authpipe</TT
> protocol</A
></H3
><P
>authpipe uses the same protocol as authdaemon clients use to communicate
with authdaemond.</P
><P
>There are four possible requests: <TT
CLASS="LITERAL"
>PRE</TT
>,
<TT
CLASS="LITERAL"
>AUTH</TT
>, <TT
CLASS="LITERAL"
>PASSWD</TT
> and
<TT
CLASS="LITERAL"
>ENUMERATE</TT
>. Apart from <TT
CLASS="LITERAL"
>AUTH</TT
>, each
request is a single line terminated by newline.</P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
>PRE . <VAR
CLASS="REPLACEABLE"
>authservice</VAR
> <VAR
CLASS="REPLACEABLE"
>username</VAR
> <I
CLASS="EMPHASIS"
><newline></I
></DT
><DD
><P
>Look up data for an account.
<VAR
CLASS="REPLACEABLE"
>authservice</VAR
> identifies the service the
user is trying to use - e.g. pop3, imap, webmail etc.</P
><P
>If the account exists, return the account
data as a series of ATTR=value newline-terminated lines, followed by a
period on a line of its own. Valid attributes are:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SCREEN"
> USERNAME=username -- system account which owns mailbox (name)
UID=uid -- system account which owns mailbox (numeric uid)
GID=gid -- numeric groupid
HOME=homedir -- home directory
ADDRESS=addr -- e-mail address
NAME=name -- full name
MAILDIR=maildir -- Maildir relative to home directory
QUOTA=quota -- quota string: maxbytesS,maxfilesC
PASSWD=cryptpasswd -- encrypted password
PASSWD2=plainpasswd -- plain text password
OPTIONS=acctoptions -- option1=val1,option2=val2,...
.
</PRE
></TD
></TR
></TABLE
><P
> Of these, it is mandatory to return ADDRESS, HOME, GID, and either UID
or USERNAME; the others are optional.
</P
><P
>If the account is not known, return <TT
CLASS="LITERAL"
>FAIL</TT
><I
CLASS="EMPHASIS"
><TT
CLASS="LITERAL"
><newline></TT
></I
>.
If there is a temporary failure, such as a database being down, authProg
should terminate (thereby closing stdin/stdout) without sending any
response. authdaemon will restart the pipe module for the next
request, thus ensuring it is properly reinitialized.
</P
></DD
><DT
>AUTH <VAR
CLASS="REPLACEABLE"
>len</VAR
><I
CLASS="EMPHASIS"
><newline></I
><VAR
CLASS="REPLACEABLE"
>len-bytes</VAR
></DT
><DD
><P
> Validate a login attempt. The AUTH line is followed by
<I
CLASS="EMPHASIS"
>len-bytes</I
> of authentication data, which does not
necessarily end with a newline. The currently defined authentication
requests are:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SCREEN"
> login \n username \n password [\n] -- plaintext login
cram-md5 \n challenge \n response [\n] -- base-64 encoded challenge and response
cram-sha1 \n challenge \n response [\n] -- ditto
cram-sha256 \n challenge \n response [\n] -- ditto
</PRE
></TD
></TR
></TABLE
><P
> In the case of success, return the complete set of
account parameters in the same format as PRE, ending with a period on
a line of its own. In the case of failure (e.g. username does not exist,
password wrong, unsupported authentication type), return
<TT
CLASS="LITERAL"
>FAIL</TT
><I
CLASS="EMPHASIS"
><TT
CLASS="LITERAL"
><newline></TT
></I
>.
If there is a temporary failure, such as a database being down, authProg
should terminate without sending any response.
</P
><P
> Note: if the user provides a plaintext password and authenticates
successfully, then you can return it as PASSWD2 (plain text password)
even if the database contains an encrypted password. This is useful
when using the POP3/IMAP proxy functions of courier-imap.
</P
></DD
><DT
>PASSWD <VAR
CLASS="REPLACEABLE"
>service</VAR
><I
CLASS="EMPHASIS"
><tab></I
>
<VAR
CLASS="REPLACEABLE"
>username</VAR
><I
CLASS="EMPHASIS"
><tab></I
>
<VAR
CLASS="REPLACEABLE"
>oldpasswd</VAR
><I
CLASS="EMPHASIS"
><tab></I
>
<VAR
CLASS="REPLACEABLE"
>newpasswd</VAR
><I
CLASS="EMPHASIS"
><tab></I
>
<I
CLASS="EMPHASIS"
><newline></I
></DT
><DD
><P
>Request a password change for the given account: validate that
the oldpassword is correct, and if so, change it to the newpassword.
</P
><P
>Reply: the string
for success, or <TT
CLASS="LITERAL"
>FAIL</TT
><I
CLASS="EMPHASIS"
><TT
CLASS="LITERAL"
><newline></TT
></I
> for
a data error (e.g. no such account, old password wrong, new password not
acceptable). In the case of a temporary failure, such as a database
being down, authProg should terminate without sending any response.
</P
></DD
><DT
>ENUMERATE <I
CLASS="EMPHASIS"
><newline></I
></DT
><DD
><P
> Return a list of all accounts, one per line in the following format,
ending with a period on a line of its own:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SCREEN"
> username \t uid \t gid \t homedir \t maildir \t options \n
.
</PRE
></TD
></TR
></TABLE
><P
> If your module does not support the ENUMERATE command then return just
a period on a line of its own (which will still allow enumeration data
from other modules to be returned). In the case of a temporary failure,
such as a database being down or an error occuring mid-way through
returning account data, authProg should terminate before sending
the terminating period.
</P
></DD
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN142"
>The <TT
CLASS="LITERAL"
>authuserdb</TT
> authentication module</A
></H2
><P
>This module
uses a GDBM or a DB-based
<A
HREF="userdb.html"
TARGET="_top"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>userdb</SPAN
>(8)</SPAN
></A
> database.
This module also incorporates userdb-based challenge-response authentication
implementation that was done by a separate <TT
CLASS="LITERAL"
>authcram</TT
> module
in previous versions of the Courier authentication library.</P
><P
><TT
CLASS="FILENAME"
>@sysconfdir@/authlib/userdb</TT
> is a plain file that
can be edited with any text editor.
The file contains a list of account names, and their pertinent information.
<TT
CLASS="FILENAME"
>@sysconfdir@/authlib/userdb</TT
> may alternatively be a
directory containing plain text files, which are effectively concatenated
together to form the actual list of accounts.
The <B
CLASS="COMMAND"
>makeuserdb</B
> script compiles the account information
into a GDBM or DB database file, which can be quickly looked up.</P
><P
><TT
CLASS="FILENAME"
>@sysconfdir@/authlib/userdb</TT
> is loosely equivalent in
function to <TT
CLASS="FILENAME"
>/etc/passwd</TT
> and
<TT
CLASS="FILENAME"
>/etc/shadow</TT
>, and contain analous information: account
name, its numeric userid and groupid, home directory, and passwords.
<TT
CLASS="FILENAME"
>@sysconfdir@/authlib/userdb</TT
> also contains additional
Courier-specific metadata, such as account quotas and other account-specific
settings.
<TT
CLASS="FILENAME"
>@sysconfdir@/authlib/userdb</TT
> files can also be
maintained by custom-written Perl scripts, instead of being edited
by hand.</P
><P
><TT
CLASS="FILENAME"
>@sysconfdir@/authlib/userdb</TT
>
allows creation of virtual mail accounts that do not have a corresponding
login account -- virtual mail accounts that can share the same, reserved,
system userid.
<TT
CLASS="FILENAME"
>@sysconfdir@/authlib/userdb</TT
>
can also be used to completely supersede
<TT
CLASS="FILENAME"
>/etc/passwd</TT
>.
With many accounts it can be quite a drain to have to continuously linearly
scan <TT
CLASS="FILENAME"
>/etc/passwd</TT
> in order to look up an account.
Instead, a fast database lookup can retrieve the same information from the
database file.
Review the included manual pages, starting with
<A
HREF="userdb.html"
TARGET="_top"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>userdb</SPAN
>(8)</SPAN
></A
>, for more information.</P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN170"
>A brief <TT
CLASS="LITERAL"
>userdb</TT
> primer</A
></H3
><P
><TT
CLASS="LITERAL"
>userdb</TT
> is a way to implement many virtual mailboxes - many
mailboxes that do not have to have a separate system userid allocated for
each one, and there is no system login associated with each mailbox.
<TT
CLASS="LITERAL"
>userdb</TT
> uses a database for mapping virtual addresses to physical
maildirs. It should be scalable to thousands of mailboxes. It can also be
used to replace linear searches of <TT
CLASS="FILENAME"
>/etc/passwd</TT
> with a database
lookup, see
<A
HREF="pw2userdb.html"
TARGET="_top"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>pw2userdb</SPAN
>(8)</SPAN
></A
>.</P
><P
>Note - you still MUST use some valid system userid and groupid that is
shared by all virtual mailboxes. Instead of allocating a single userid and
groupid per each mailbox, the same userid and groupid is used for all of
them.</P
><P
>This is a rough overview of using userdb. For additional information, read
<A
HREF="userdb.html"
TARGET="_top"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>userdb</SPAN
>(8)</SPAN
></A
>
and
<A
HREF="makeuserdb.html"
TARGET="_top"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>makeuserdb</SPAN
>(8)</SPAN
></A
>. All the scripts will
be installed in <TT
CLASS="FILENAME"
>@sbindir@</TT
>, so look for them there.</P
><P
>The best way to describe how <TT
CLASS="LITERAL"
>userdb</TT
> works is to try to create
one virtual mail account. As mentioned before, virtual mailboxes still need
one system account to be used for uid/gid purposes. Let's call this system
account "vmail".</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN194"
>A simple userdb setup</A
></H3
><P
>This approach should be used if you do not have many virtual mailboxes.
It's very simple, but quickly becomes cumbersome if you administer many
virtual mailboxes.</P
><P
>Create an empty <TT
CLASS="FILENAME"
>@userdb@</TT
> file:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN199"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
># cp /dev/null @userdb@
# chmod 700 @userdb@</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
><TT
CLASS="FILENAME"
>@userdb@</TT
> must have 700 permissions,
since it will contain passwords.</P
><P
>Now, run the script <B
CLASS="COMMAND"
>pw2userdb</B
>, as root.
This script converts the
contents of <TT
CLASS="FILENAME"
>/etc/passwd</TT
>
to the <TT
CLASS="FILENAME"
>@userdb@</TT
> format
(including the contents of <TT
CLASS="FILENAME"
>/etc/shadow</TT
>,
this is why permissions
on <TT
CLASS="FILENAME"
>@userdb@</TT
> must be 700). This script is usually used
where you
want to convert a very large <TT
CLASS="FILENAME"
>/etc/passwd</TT
> to
<TT
CLASS="FILENAME"
>@userdb@</TT
>. <TT
CLASS="LITERAL"
>userdb</TT
> applications can now
use a fast
<TT
CLASS="LITERAL"
>userdb</TT
> database instead of a linear scan
of <TT
CLASS="FILENAME"
>/etc/passwd</TT
>
in order to look up system accounts. However, you probably don't want to
use this feature right now, so what you want to do is take the output
of <B
CLASS="COMMAND"
>pw2userdb</B
>, and find the entry for the vmail account
that you
created earlier. Look for a line that starts with 'vmail' followed by tab,
followed by familiar fields from <TT
CLASS="FILENAME"
>/etc/passwd</TT
>. Save the
output of
<B
CLASS="COMMAND"
>pw2userdb</B
> in a temporary file, edit it, and remove
everything
except the line containing vmail, and the very next line, which is a special
entry that maps vmail's userid back to the vmail record.</P
><P
>Here's what you might find in the output of
<B
CLASS="COMMAND"
>pw2userdb</B
>:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN219"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>vmail uid=1012|gid=1012|home=/home/vmail|systempw=*
1012= vmail</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>The actual numerical values and the home directory location may vary.
Save
these two lines as <TT
CLASS="FILENAME"
>@userdb@</TT
>, and set the permissions on
<TT
CLASS="FILENAME"
>@userdb@</TT
> to 700:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN224"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>$ chmod 700 <TT
CLASS="FILENAME"
>@userdb@</TT
></PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>Now, with that out of the way, let's really create a virtual account. In
this example we'll create a virtual mailbox for 'john@example.com'.</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN228"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
># su vmail
$ cd ~vmail
$ mkdir john-example
$ maildirmake john-example/Maildir
$ exit
#</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>You may need to specify a full path to your <B
CLASS="COMMAND"
>maildirmake</B
>
program. The end result is that you created
<TT
CLASS="FILENAME"
>$HOME/john-example</TT
> in vmail's account, which
can be thought of as a <SPAN
CLASS="QUOTE"
>"virtual home directory"</SPAN
> for
<SPAN
CLASS="QUOTE"
>"john@example.com"</SPAN
>, that contains the account's maildir
mailbox.</P
><P
>Now, let's connect the dots here, and create an entry in
<TT
CLASS="FILENAME"
>@userdb@</TT
> for <TT
CLASS="FILENAME"
>john@example.com</TT
>:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN238"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
># userdb "john@example.com" set home=/home/vmail/john-example \
uid=UUU gid=GGG</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>This command runs the script named <TT
CLASS="FILENAME"
>userdb</TT
> , which is
installed, by default in <TT
CLASS="FILENAME"
>@sbindir@</TT
>. Replace UUU and
GGG with the userid and groupid of the vmail account. If you now look in
<TT
CLASS="FILENAME"
>@userdb@</TT
>, you will see that a new record for
<SPAN
CLASS="QUOTE"
>"john@example.com"</SPAN
>
has been appended to the end of the file.</P
><P
>One more detail: we need to set the IMAP password for this
mailbox:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN246"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
># userdbpw | userdb "john@example.com" set imappw</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>On most modern Linux and BSD distributions, you can specify the -md5
option to <B
CLASS="COMMAND"
>userdbpw</B
>, in order to use MD5 password hashes,
instead of crypt. The traditional password function allows passwords only
up to 8 characters long; everything in excess is ignored.
The newer MD5 passwords, now supported by most modern systems, allow
longer passwords.</P
><P
>Use "<TT
CLASS="LITERAL"
>systempw</TT
>" instead of
"<TT
CLASS="LITERAL"
>imappw</TT
>" if you would like to use the same password for the POP3
server, and for all other services.
The "<TT
CLASS="LITERAL"
>imappw</TT
>" field is only checked by the IMAP server.
If not
defined, "<TT
CLASS="LITERAL"
>systempw</TT
>" is used instead. The field
<TT
CLASS="LITERAL"
>pop3pw</TT
>
is checked only by Courier's POP3 server. If it is
not defined the POP3 server will check <TT
CLASS="LITERAL"
>systempw</TT
> too.</P
><P
>Finally, compile the database:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN258"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
># makeuserdb</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>This command creates the actual database, <TT
CLASS="FILENAME"
>@userdb@.dat</TT
> and
<TT
CLASS="FILENAME"
>@userdb@shadow.dat</TT
> from the plain text file
<TT
CLASS="FILENAME"
>@userdb@</TT
>. Courier will now start accepting logins to this
mailbox. Adding and removing mailboxes can be done while Courier is
running.</P
><P
>Courier reads <TT
CLASS="FILENAME"
>@userdb@.dat</TT
> and
<TT
CLASS="FILENAME"
>@userdb@shadow.dat</TT
> only. The plain text source,
<TT
CLASS="FILENAME"
>@userdb@</TT
> is not read by Courier itself. Changes take
effect
only when <B
CLASS="COMMAND"
>makeuserdb</B
> runs.</P
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN269"
>Large virtual domain farm</A
></H3
><P
>The previous approach used a single flat file, <TT
CLASS="FILENAME"
>@userdb@</TT
>.
This
will work for up to a couple of hundred accounts.
An slightly different approach can scale to thousands of
domains and mailboxes.</P
><P
>Instead of creating a <TT
CLASS="FILENAME"
>@userdb@</TT
> file, create a
subdirectory:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN275"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
># mkdir @userdb@
# chmod 700 @userdb@</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>Now, create <TT
CLASS="FILENAME"
>@userdb@/default</TT
>, containing pw2userdb's
output
for the vmail account, as previously described.</P
><P
>This time, you probably want to create all mailboxes for the same domain
in a separate subdirectory:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN280"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
># su - vmail
$ cd ~vmail
$ mkdir -p domains/example-com
$ mkdir domains/example-com/john
$ maildirmake domains/example-com/john
$ exit</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>The idea is that all the maildirs for <TT
CLASS="LITERAL"
>@example.com</TT
> will
now be found
in <TT
CLASS="FILENAME"
>~vmail/domains/example-com</TT
>. All maildirs for
<TT
CLASS="LITERAL"
>domain.org</TT
> will be in
<TT
CLASS="FILENAME"
>~vmail/domains/domain.org</TT
>. The actual layout and naming
conventions are entirely up to you to define.</P
><P
>Here's how configure <TT
CLASS="FILENAME"
>@userdb@</TT
>:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN289"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>$ userdb "example-com/john@example.com" set \
home=/home/vmail/domains/example-com/john \
uid=UUU gid=GGG</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>This creates the file <TT
CLASS="FILENAME"
>@userdb@/example-com</TT
> (the first
parameter to the <B
CLASS="COMMAND"
>userdb</B
> command), and appends a record named
"john@example.com". You will store all <TT
CLASS="LITERAL"
>userdb</TT
> entries for
<TT
CLASS="LITERAL"
>@example.com</TT
> in the file
<TT
CLASS="FILENAME"
>@userdb@/example-com</TT
>. All
entries for <TT
CLASS="LITERAL"
>@domain.org</TT
> will be maintained in
<TT
CLASS="FILENAME"
>@userdb@/domain-org</TT
>, and so on.</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN299"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>$ userdbpw | userdb "example-com/john@example.com" set imappw</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>This sets the IMAP access password for this account. Finally:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN302"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>$ makeuserdb</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN304"
>Beyond <TT
CLASS="LITERAL"
>userdb</TT
></A
></H3
><P
><TT
CLASS="LITERAL"
>userdb</TT
> is a simple, straightforward solution that scales
to a couple of thousand of mail accounts, depending on the hardware.
Beyond that, one of database-based modules will need to be used,
such as
<TT
CLASS="LITERAL"
>authldap</TT
>,
<TT
CLASS="LITERAL"
>authmysql</TT
>,
<TT
CLASS="LITERAL"
>authpgsql</TT
>.
Since <TT
CLASS="LITERAL"
>userdb</TT
> is maintained as plain text files that
are easily parsed by a script, migrating data from userdb will not be
difficult.</P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN313"
>The <TT
CLASS="LITERAL"
>authvchkpw</TT
> authentication module</A
></H2
><P
>This module uses
the <TT
CLASS="LITERAL"
>vpopmail/vchkpw</TT
> library for authentication.</P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN318"
>The <TT
CLASS="LITERAL"
>authmysql</TT
> authentication module</A
></H2
><P
>This module reads
the list of mail accounts and passwords from a table in a
MySQL database.
The <TT
CLASS="FILENAME"
>@authmysqlrc@</TT
> configuration file defines the
particular details regarding the MySQL database and the schema of the
mail account table.</P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN323"
>The <TT
CLASS="LITERAL"
>authpgsql</TT
> authentication module</A
></H2
><P
>This module reads
the list of mail accounts and passwords from a table in a
PostgreSQL database.
The <TT
CLASS="FILENAME"
>@authpgsqlrc@</TT
> configuration file defines the
particular details regarding the PostgreSQL database and the schema of the
mail account table.</P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN328"
>The <TT
CLASS="LITERAL"
>authldap</TT
> authentication module</A
></H2
><P
>This module reads
the list of mail accounts and passwords from an LDAP directory.
The <TT
CLASS="FILENAME"
>@authldaprc@</TT
> configuration file defines the
particular details regarding the LDAP directory layout.</P
><P
>A suggested LDAP schema can be found in the file
<TT
CLASS="FILENAME"
>authldap.schema</TT
>,
which is included in Courier authentication library's source code, and
may be installed on your system.</P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN335"
><TT
CLASS="LITERAL"
>authcustom</TT
></A
></H2
><P
>This is a do-nothing module where custom authentication code
can be added.
This authentication module is just a stub that doesn't really do anything.
It's purpose is to serve as a placeholder where custom authentication code
can be easily implement.</P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN339"
>Account options</A
></H2
><P
>The authentication library has a facility for keep arbitrary
<SPAN
CLASS="QUOTE"
>"name=value"</SPAN
>-type settings,
called <SPAN
CLASS="QUOTE"
>"options"</SPAN
>, for individual accounts. This feature is
only available with
<TT
CLASS="LITERAL"
>userdb</TT
>,
<TT
CLASS="LITERAL"
>LDAP</TT
>, <TT
CLASS="LITERAL"
>MySQL</TT
>, and
<TT
CLASS="LITERAL"
>PostgresSQL</TT
>
modules. Individual account options are not supported with
system-based authentication modules (password/shadow files, or PAM).</P
><P
>See the
<A
HREF="auth_generic.html"
TARGET="_top"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>auth_generic</SPAN
>(3)</SPAN
></A
>
for a description of option names used by various Courier packages.
Other applications can make up names for their own settings, and
use them in the same way.</P
><P
>Account options are specified via the authentication modules in the
following manner:</P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
><TT
CLASS="LITERAL"
>userdb</TT
></DT
><DD
><P
>Use the <B
CLASS="COMMAND"
>userdb</B
> command to set a field called
"<TT
CLASS="LITERAL"
>options</TT
>". Example:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN362"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>userdb user1@example.com set options=disableimap=1,sharedgroup=44
makeuserdb</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>The option text string here is
"<TT
CLASS="LITERAL"
>disableimap=1,sharedgroup=44</TT
>".
It specifies two options.</P
></DD
><DT
><TT
CLASS="LITERAL"
>LDAP</TT
></DT
><DD
><P
>Account options are defined by the <TT
CLASS="LITERAL"
>LDAP_AUXOPTIONS</TT
>
setting in the <TT
CLASS="FILENAME"
>authldaprc</TT
> configuration file.
<TT
CLASS="LITERAL"
>LDAP_AUXOPTIONS</TT
> consists of a comma-separated list of
"<TT
CLASS="LITERAL"
>attribute=setting</TT
>". "attribute" is the name of an LDAP
attribute, and "setting" is the corresponding account setting name. The
value of the attribute becomes the value of the setting. Unless you
value your sanity, the names of LDAP attributes should be the same as
the actual setting names (in which case "=setting" may be dropped and
<TT
CLASS="LITERAL"
>LDAP_AUXOPTIONS</TT
> becomes a simple comma-separated list of
supported settings), but they don't have to be.</P
><P
><TT
CLASS="LITERAL"
>LDAP_AUXOPTIONS</TT
> is nothing more than a simple mapping
of LDAP attributes to account settings. A <TT
CLASS="LITERAL"
>LDAP_AUXOPTIONS</TT
>
of "shared=sharedgroup,disableimap" means that the LDAP attribute
called "shared" contains the "sharedgroup" setting, as described
previously; and an LDAP attribute of disableimap contains the setting
of the same name.</P
></DD
><DT
><TT
CLASS="APPLICATION"
>MySQL</TT
>, and <TT
CLASS="APPLICATION"
>PostgreSQL</TT
></DT
><DD
><P
>Account options are defined by <TT
CLASS="LITERAL"
>MYSQL_AUXOPTIONS_FIELD</TT
>
or <TT
CLASS="LITERAL"
>POSTGRESQL_AUXOPTIONS_FIELD</TT
>, in its corresponding
configuration file. In the most simplest case, add a character field to
the database, and put the field name into the
<TT
CLASS="LITERAL"
>MYSQL_AUXOPTIONS_FIELD</TT
> or
<TT
CLASS="LITERAL"
>POSTGRESQL_AUXOPTIONS_FIELD</TT
> configuration file setting.
For each account, the character field should contain the literal option
string. Yes, you'll just put "shared=sharedgroup,disableimap"
literally, in that field.</P
><P
>Fortunately, there is a cleaner way to do this, which avoid driving
a database designer batty. Keep in mind that the contents of
<TT
CLASS="LITERAL"
>MYSQL_AUXOPTIONS_FIELD</TT
>/<TT
CLASS="LITERAL"
>POSTGRESQL_AUXOPTIONS_FIELD</TT
>
are simply inserted directly into the SQL query that fetches the
account information. Both MySQL and PostgreSQL have a rich SQL that can
be used to manufacture a suitable option string from plain,
garden-variety, database fields. That is, you may define individual
table fields like "disableimap", and "disablepop3", then provide a
suitable (albeit ugly) SQL fragment that combines them together into
the expected option string. An example of such an SQL string is
provided in the comments portion of the configuration file.</P
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="90%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
>NOTE:</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>When using the alternative custom query option, the option string
is the last field that the custom SQL query should return.</P
></TD
></TR
></TABLE
></DIV
></DD
></DL
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN394"
>Running <B
CLASS="COMMAND"
>authtest</B
></A
></H2
><P
>The <B
CLASS="COMMAND"
>authtest</B
> command may be used to verify that the
authentication library is working:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN399"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>authtest userid
authtest userid password
authtest userid password newpassword
authenumerate</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>Running
<B
CLASS="COMMAND"
>authtest</B
>
with one argument should display the selected account's
home directory, userid, groupid,
and other related data.
The second argument to
<B
CLASS="COMMAND"
>authtest</B
>,
if supplied, specifies the account's password.
The two argument form of
<B
CLASS="COMMAND"
>authtest</B
>
validates the password, and displays an indication whether the given
password is valid, or not.
The three argument form of the
<B
CLASS="COMMAND"
>authtest</B
>
command attemps to change the account's password.
The second argument is the old password, the third argument is the
new password.</P
><P
>See <A
HREF="README.authdebug.html"
TARGET="_top"
><TT
CLASS="FILENAME"
>README.authdebug.html</TT
></A
> for more information.</P
><DIV
CLASS="SECT2"
><HR><H3
CLASS="SECT2"
><A
NAME="AEN409"
>Changing account passwords</A
></H3
><P
>For the virtual domain modules (<TT
CLASS="LITERAL"
>authldap</TT
>,
<TT
CLASS="LITERAL"
>authmysql</TT
>, <TT
CLASS="LITERAL"
>authpgsql</TT
> and friends) changing the
login is a no-brainer. The tricky situation is when SqWebMail uses system
passwords to log in (the <TT
CLASS="LITERAL"
>authpwd</TT
>, <TT
CLASS="LITERAL"
>authshadow</TT
>, or
<TT
CLASS="LITERAL"
>authpam</TT
> authentication module). Different systems use different
ways to keep login passwords. Many systems use the traditional
<TT
CLASS="FILENAME"
>/etc/passwd</TT
> and <TT
CLASS="FILENAME"
>/etc/shadow</TT
> files. Other systems
use a binary database; other systems use NIS. And on some systems the
password file lookup library is a wrapper that goes against an external LDAP
directory, or a database. For maximum compatibility, SqWebMail changes login
passwords by running the <B
CLASS="COMMAND"
>passwd</B
> command. This is the traditinal
*nix command that changes login passwords. <B
CLASS="COMMAND"
>passwd</B
> is an
interactive command. It's normally run from a terminal.
SqWebMail uses an
<B
CLASS="COMMAND"
>expect</B
> script - as mentioned in
the introduction - to answer interactive
prompts from <B
CLASS="COMMAND"
>passwd</B
>. The <B
CLASS="COMMAND"
>expect</B
> script expects to
get a plain, garden-variety, <B
CLASS="COMMAND"
>passwd</B
> command, which acts
something like this:</P
><DIV
CLASS="INFORMALEXAMPLE"
><P
></P
><A
NAME="AEN426"
></A
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
> # passwd
Changing password for luser
(current) UNIX password: (old password typed here)
New UNIX password: (new password typed here)
Retype new UNIX password: (new password retyped here)
passwd: all authentication tokens updated successfully
#</PRE
></TD
></TR
></TABLE
><P
></P
></DIV
><P
>Systems that use a <B
CLASS="COMMAND"
>passwd</B
> command with very different prompts
may find that the default <B
CLASS="COMMAND"
>expect</B
> script will fail. In which case
it will be necessary to tweak the <B
CLASS="COMMAND"
>expect</B
> script to match the
prompts from the system's <B
CLASS="COMMAND"
>passwd</B
> command.</P
><P
>Modern systems use a <B
CLASS="COMMAND"
>passwd</B
> command that rejects "bad"
passwords - passwords that are based on dictionary words, are too short, or
are obvious for other reasons. When testing the ability to change
system passwords be sure to use randomly-generated gibberish for the test
passwords. Otherwise, the default <B
CLASS="COMMAND"
>expect</B
> script will
actually be
working, but you won't be the wiser. For security reasons, the actual
messages from <B
CLASS="COMMAND"
>passwd</B
> will not be shown by.</P
><P
>The <B
CLASS="COMMAND"
>expect</B
> script is installed as
<TT
CLASS="FILENAME"
>/usr/local/libexec/courier-authlib/authsystem.passwd</TT
>
(assuming default options to the <B
CLASS="COMMAND"
>configure</B
> script).</P
></DIV
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN441"
>Authentication internals</A
></H2
><P
>The following structure describes an authentication module:</P
><A
NAME="AEN444"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><DIV
CLASS="EXAMPLE"
><A
NAME="AEN445"
></A
><P
><B
>Example 1. struct authstaticinfo</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>struct authstaticinfo {
const char *auth_name;
int (*auth_func)(const char *, const char *, char *, int,
int (*)(struct authinfo *, void *),
void *);
int (*auth_prefunc)(const char *, const char *,
int (*)(struct authinfo *, void *),
void *);
void (*auth_cleanupfunc)();
int (*auth_changepwd)(const char *, /* service */
const char *, /* userid */
const char *, /* oldpassword */
const char *); /* new password */
void (*auth_idle)();
/* Not null - gets called every 5 mins when we're idle */
void (*auth_enumerate)( void(*cb_func)(const char *name,
uid_t uid,
gid_t gid,
const char *homedir,
const char *maildir,
void *void_arg),
void *void_arg);
} ;</PRE
></TD
></TR
></TABLE
></DIV
></BLOCKQUOTE
><P
>An authentication module is a shared library that defines a single function
called
<SPAN
CLASS="QUOTE"
>"courier_auth_<VAR
CLASS="REPLACEABLE"
>NAME</VAR
>_init"</SPAN
>, where
<SPAN
CLASS="QUOTE"
>"NAME"</SPAN
> is the name of the authentication module.
The shared library does not need to export any other symbols, this is the
only function that needs to be exported.
The function returns a pointer to the <CODE
CLASS="STRUCTNAME"
>authstaticinfo</CODE
>
structure.
For example, the relevant code from the <TT
CLASS="LITERAL"
>authmysql</TT
> module is:</P
><A
NAME="AEN454"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><DIV
CLASS="EXAMPLE"
><A
NAME="AEN455"
></A
><P
><B
>Example 2. authmysql</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>static struct authstaticinfo authmysql_info={
"authmysql",
auth_mysql,
auth_mysql_pre,
auth_mysql_cleanup,
auth_mysql_changepw,
auth_mysql_cleanup,
auth_mysql_enumerate};
struct authstaticinfo *courier_authmysql_init()
{
return &authmysql_info;
}</PRE
></TD
></TR
></TABLE
></DIV
></BLOCKQUOTE
><P
><TT
CLASS="FUNCTION"
>auth_func</TT
> points to a function that handles an
authentication request. The function is invoked as follows:</P
><A
NAME="AEN460"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><DIV
CLASS="EXAMPLE"
><A
NAME="AEN461"
></A
><P
><B
>Example 3. auth_func</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>int result=auth_func(const char *service, const char *authtype,
const char *authdata,
int (*callback_func)(struct authinfo *, void *),
void *callback_arg);</PRE
></TD
></TR
></TABLE
></DIV
></BLOCKQUOTE
><P
><SPAN
CLASS="QUOTE"
>"service"</SPAN
> is the name of the service being authenticated,
such as <SPAN
CLASS="QUOTE"
>"<TT
CLASS="LITERAL"
>imap</TT
>"</SPAN
> or
<SPAN
CLASS="QUOTE"
>"<TT
CLASS="LITERAL"
>pop3</TT
>"</SPAN
>.
<SPAN
CLASS="QUOTE"
>"authtype"</SPAN
> defines the authentication format,
and <SPAN
CLASS="QUOTE"
>"authdata"</SPAN
> is the actual authentication request.</P
><P
>Two authentication formats are defined at this time.
The <SPAN
CLASS="QUOTE"
>"authtype"</SPAN
> string is set to one of the following
strings:</P
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
><SPAN
CLASS="QUOTE"
>"login"</SPAN
></DT
><DD
><P
>Tradition userid/password authentication.
<TT
CLASS="LITERAL"
>authdata</TT
> points to a string that consists of:
the userid; a newline character; the password; a final newline
character.</P
></DD
><DT
><SPAN
CLASS="QUOTE"
>"cram-md5"</SPAN
>, or <SPAN
CLASS="QUOTE"
>"cram-sha1"</SPAN
></DT
><DD
><P
>Challenge/response authentication.
<TT
CLASS="LITERAL"
>authdata</TT
> points to a string that consists of:
the base64-encoded challenge; a newline character;
the base64-encoded response string; and a final newline
character. Furthermore, the base64-encoded response string consists of:
the login ID, a space character, and the response as a hexadecimal
string (yes, base64-encoding of the response string is not strictly
necessary).</P
></DD
></DL
></DIV
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
>NOTE:</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Not all authentication modules may implement all authentication formats.
An authentication module that does not implement a particular authentication
format should handle it the same way as an invalid login ID.</P
></TD
></TR
></TABLE
></DIV
><P
>The authentication function should return a negative value if the login ID
is invalid. The authentication library will try the next authentication
module.</P
><P
>The authentication function should return a positive value if the login ID
is valid, but the password is invalid. The authentication library will not
try any more authentication modules.</P
><P
>Otherwise, the authentication module should call the
<TT
CLASS="FUNCTION"
>callback_func</TT
> function, and return the same value that's
returned by this function.</P
><P
>The authentication module should pass through <TT
CLASS="LITERAL"
>callback_arg</TT
>
to the callback function as a second argument.
The first argument is a pointer to the
<CODE
CLASS="STRUCTNAME"
>authinfo</CODE
> structure, which is described in detail
in the
<A
HREF="auth_generic.html"
TARGET="_top"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>auth_generic</SPAN
>(3)</SPAN
></A
>
manual page.
The authentication module is responsible for allocating this structure.
After the callback function returns this structure can be deallocated.
The authentication module initializes the following fields:</P
><P
><TT
CLASS="FUNCTION"
>auth_pre_func</TT
> points to a function that obtains
account information. The function is invoked as follows:</P
><A
NAME="AEN503"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><DIV
CLASS="EXAMPLE"
><A
NAME="AEN504"
></A
><P
><B
>Example 4. auth_pre_func</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>int auth_pre_func(const char *user, const char *service,
int (*callback)(struct authinfo *, void *), void *arg);</PRE
></TD
></TR
></TABLE
></DIV
></BLOCKQUOTE
><P
>This function does the same thing as <SPAN
CLASS="QUOTE"
>"auth_func"</SPAN
> except that
the password is not actually verified.
If the account exists, the callback function is invoked with the
same callback arguments.</P
><P
><TT
CLASS="FUNCTION"
>auth_cleanup_func</TT
> points to a function that will be
invoked just before the authentication module is uninstalled, giving it
the opportunity for some last-minute cleanup.</P
><P
><TT
CLASS="FUNCTION"
>auth_idle</TT
> points to a function that will be
invoked when no authentication requests are received for a couple of minutes,
giving the authentication module an opportunity to close any database
connections, so that they do not get shut down by the server, for inactivity,
resulting in an error the next time an authentication request is
received.</P
><P
><TT
CLASS="FUNCTION"
>auth_changepwd</TT
> points to a function that will be
invoked to change a password on an account, as follows.</P
><A
NAME="AEN515"
></A
><BLOCKQUOTE
CLASS="BLOCKQUOTE"
><DIV
CLASS="EXAMPLE"
><A
NAME="AEN516"
></A
><P
><B
>Example 5. auth_changepwd</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>int auth_changepwd(const char *service, const char *user,
const char *oldpw, const char *newpw);</PRE
></TD
></TR
></TABLE
></DIV
></BLOCKQUOTE
><P
><TT
CLASS="LITERAL"
>service</TT
> is the name of the service whose password is to
be changed (such as <SPAN
CLASS="QUOTE"
>"imap"</SPAN
> or <SPAN
CLASS="QUOTE"
>"pop3"</SPAN
>).
<TT
CLASS="FUNCTION"
>auth_changepwd</TT
> should return 0 if the password was
changed succesfully, a negative value if <TT
CLASS="LITERAL"
>user</TT
> is invalid
(the next authentication module will be tried), or a positive value if
the password change request failed (no more modules will be tried).</P
><P
><TT
CLASS="FUNCTION"
>auth_enumerate</TT
> points to a function that enumerates
the list of all login IDs known to the authentication module.
The first argument <TT
CLASS="FUNCTION"
>auth_enumerate</TT
> is a callback
function. <TT
CLASS="FUNCTION"
>auth_enumerate</TT
> invokes the callback
function once for each login ID, supplying the login ID, the userid,
groupid, home directory and maildir as arguments.
The last argument to the callback function is passed through from the
second argument to <TT
CLASS="FUNCTION"
>auth_enumerate</TT
>.</P
><P
>After enumerating all login IDs <TT
CLASS="FUNCTION"
>auth_enumerate</TT
> calls
the callback function one last time, with a NULL pointer for the login ID,
then returns. If an error is encountered while enumerating the login IDs,
<TT
CLASS="FUNCTION"
>auth_enumerate</TT
> terminates without invoking
the callback function with a NULL login ID.</P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN533"
>FILES</A
></H2
><P
><TT
CLASS="FILENAME"
> @authdaemonrc@</TT
> - <B
CLASS="COMMAND"
>authdaemond</B
> configuration file</P
><P
><TT
CLASS="FILENAME"
> @authldaprc@</TT
> - <B
CLASS="COMMAND"
>authldap</B
> configuration file</P
><P
><TT
CLASS="FILENAME"
> @authmysqlrc@</TT
> - <B
CLASS="COMMAND"
>authmysql</B
> configuration file</P
><P
><TT
CLASS="FILENAME"
> @authpgsqlrc@</TT
> - <B
CLASS="COMMAND"
>authpgsql</B
> configuration file</P
></DIV
><DIV
CLASS="SECT1"
><HR><H2
CLASS="SECT1"
><A
NAME="AEN547"
>SEE ALSO</A
></H2
><P
><A
HREF="courier.html"
TARGET="_top"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>courier</SPAN
>(8)</SPAN
></A
>,
<A
HREF="userdb.html"
TARGET="_top"
><SPAN
CLASS="CITEREFENTRY"
><SPAN
CLASS="REFENTRYTITLE"
>userdb</SPAN
>(8)</SPAN
></A
></P
></DIV
></DIV
></BODY
></HTML
>
|