On Wed, 26 Nov 2003 firstname.lastname@example.org wrote:
> I've read http://www.web-polygraph.org/docs/userman/auth.html many
> times, but I cannot see how to map the user:pass combinations below:
> credentials = "yxxxx[1-998]:yyyyy[1-998]";
> Will give me yxxxx1:yyyyy1, yxxxx1:yyyyy2, yxxxx1:yyyyy3
You cannot synchronize iteration of two string ranges the way you want.
Each string range in "yxxxx[1-998]:yyyyy[1-998]" is iterated
independently of the ranges to the left, if any (as if these were
implemented using nested loops). This is similar to how, say, IP
addresses are iterated in 10.0.1-4.1-250.
If you want unique usernames and unique passwords, you can use the
credentials() function call documented on the same web page. Have you
tried using it? Is it not close enough to what you want? In what way?
Finally, you can generate a list of credentials externally and listing
them in PGL explicitly (via #include statement, for example). This
way you can have ultimate flexibility in credential patterns at the
expense of more resources spent maintaining those custom credentials.
For a few thousand credentials, this approach should not be a problem
resource-wise; though I have not tested the actual resource
consumption and would still recommend using credentials() PGL call.
-- Protocol performance, functionality, and reliability testing. Tools, services, and know-how. http://www.measurement-factory.com/
This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:27 MST