3.33. <AuthBy CDB> Previous topic Parent topic Child topic Next topic

<AuthBy CDB> authenticates users from a user database stored in a CDB database file. CDB is a fast, reliable, lightweight package for creating and reading constant databases. For more details about CDB, see cdb website Opens in new window. It is implemented in AuthCDB.pm, which was contributed by Pedro Melo (melo@ip.pt). It does not log accounting requests but replies to them. To use <AuthBy CDB>, install the CDB_File package from CPAN. For more information, see Section 2.1.2. CPAN.
<AuthBy CDB> opens and reads the user database for every authentication. This means that if you change the user database CDB file, it has an immediate effect. The CDB file is not locked when it is accessed.
The CDB is indexed by user name and the value is the check items followed by a newline followed by the reply items.
When attempting to authenticate a user, <AuthBy CDB> first compares all the check items associated with the user in the same way as <AuthBy FILE> (for more information, see Section 3.31. <AuthBy FILE>). If all those match to the attributes in the Access-Request message, <AuthBy CDB> replies with an Access-Accept message containing all the attributes given as reply attributes in the user database. If the user does not appear in the database or if any check attribute does not match, an Access-Reject message is sent to the client.
<AuthBy CDB> understands also the same parameters as <AuthBy xxxxxx>. For more information, see Section 3.28. <AuthBy xxxxxx>.