<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi John,<br>
    <br>
    Greg's suggestion should work fine if he says it does.<br>
    <br>
    I just wanted to say that there isn't an exclusion regexp, you can
    stop looking for one. :-)<br>
    <br>
    Cheers,<br>
    Jules.<br>
    <br>
    <div class="moz-cite-prefix">On 16/06/2022 12:02 am, John Thurston
      via ZendTo wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:WM!ad7c400779eaf1c6dfba1de0f47e9da9f053908368cae2d99fb3e6dde8db43a044319e909d4fa3abf59bef0b1ab094da!@mx.jul.es">Experimentation
      shows I can get the behavior I seek by prepending
      <br>
        (?!.*-(foo|bar|baz)$)
      <br>
      to the default usernameRegexp (well, prepending it to the
      expression, not the string. So stuffing it between the / and the
      ^)
      <br>
      <br>
      The result is a line in the log, of the form:
      <br>
        Warning: illegal username "jimmy-joe-foo" attempted to login
      <br>
      <br>
      I still haven't found an exclusion regexp, so this may have to do.
      <br>
      <br>
      <br>
      <br>
      --
      <br>
      Do things because you should, not just because you can.
      <br>
      <br>
      John Thurston    907-465-8591
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:John.Thurston@alaska.gov">John.Thurston@alaska.gov</a>
      <br>
      Department of Administration
      <br>
      State of Alaska
      <br>
      <br>
      On 6/15/2022 12:08 PM, John Thurston via ZendTo wrote:
      <br>
      <blockquote type="cite">We expect internal users to authenticate
        to ZendTo to perform their
        <br>
        transfers. There is a subset of accounts we think should _not_
        be
        <br>
        allowed to authenticate. These accounts are recognizable because
        their
        <br>
        usernames end with magic strings:
        <br>
           -foo
        <br>
           -bar
        <br>
        <br>
        I see 'usernameRegexp' in the config file:
        <br>
           // Regular expression defining a valid username for the Login
        page.
        <br>
           // Usually no need to change this.
        <br>
           'usernameRegexp'    =>
        '/^([a-zA-Z0-9][a-zA-Z0-9\_\.\-\@\\\]*)$/i',
        <br>
        <br>
        Is this where I might try to hack together a regexp which would
        fail to
        <br>
        match those magic strings?
        <br>
        <br>
        Is there a different regexp (which I have not yet found) which
        defines
        <br>
        an exclusion list of usernames?
        <br>
      </blockquote>
      <br>
      _______________________________________________
      <br>
      ZendTo mailing list
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto">http://jul.es/mailman/listinfo/zendto</a>
      <br>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CEng CITP MBCS MIEEE MACM

'What happened before no longer exists. What will happen next has
 not yet been written. We have only now. That is our greatest
 advantage. What we do now, here, in this moment has the power to
 determine the future. Instinct and logic, together. ...All of history
 can change with our next move.' - Spock

<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
  </body>
</html>