Auth_HTTP encapsulates many
of the messy aspects of user authentication, exposing the information and features
you??™re looking for by way of a convenient interface. Furthermore, because it inherits
from the Auth class, Auth_HTTP also offers a broad range of authentication storage
mechanisms, some of which include the DB database abstraction package, LDAP,
POP3, IMAP, RADIUS, and SAMBA. This section shows you how to take advantage of
Auth_HTTP to store user authentication information in a flat file.
Installing Auth_HTTP
To take advantage of Auth_HTTP??™s features, you need to install it. Therefore, invoke
PEAR and pass it the following arguments:
%>pear install -o auth_http
Because Auth_HTTP is dependent upon another package (Auth), you should pass at
least the -o option, which will install this required package. Execute this command
and you??™ll see output similar to the following:
Did not download dependencies: pear/File_Passwd, pear/Net_POP3, pear/MDB,
pear/MDB2, pear/Auth_RADIUS, pear/Crypt_CHAP, pear/File_SMBPasswd,
use --alldeps or --onlyreqdeps to download automatically
pear/Auth can optionally use package "pear/File_Passwd" (version >= 0.9.5)
pear/Auth can optionally use package "pear/Net_POP3" (version >= 1.3)
pear/Auth can optionally use package "pear/MDB"
pear/Auth can optionally use package "pear/MDB2" (version >= 2.0.0RC1)
pear/Auth can optionally use package "pear/Auth_RADIUS"
378 CHAPTER 14 ?– AUTHENTICATING YOUR USERS
pear/Auth can optionally use package "pear/Crypt_CHAP" (version >= 1.
Pages:
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