Maximum number of lines in authorize file
Hi, is there a maximum number of lines or "blocks" that can be defined in authorize (old users) file? Best regards, Gianni Costanzi
On May 13, 2019, at 11:06 AM, Gianni Costanzi <gianni.costanzi@gmail.com> wrote:
is there a maximum number of lines or "blocks" that can be defined in authorize (old users) file?
The entries get put into an RB tree. So lookups are always O(logN). I've tested it with 500K entries. The server takes a while to parse the entries, and uses a lot of RAM. But it does work. For anything past a few hundred entries tho, you'd be *much* better using a real database. Alan DeKok.
On Mon, May 13, 2019 at 5:10 PM Alan DeKok <aland@deployingradius.com> wrote:
On May 13, 2019, at 11:06 AM, Gianni Costanzi <gianni.costanzi@gmail.com> wrote:
is there a maximum number of lines or "blocks" that can be defined in authorize (old users) file? For anything past a few hundred entries tho, you'd be *much* better using a real database.
Alan DeKok.
Hi Alan, thank you for your answer. We'll definitely use a PostgreSQL DB for those entries, but I need to put them into a file for some months. There will be about 1k entries with less than 10 rows per entry, so there should be no problem since you've tested it with much more entries. Best regards, Gianni Costanzi
participants (2)
-
Alan DeKok -
Gianni Costanzi