<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    And of course you need to change the definition of usernameRegexp in
    config/preferences.php to<br>
    &nbsp; 'usernameRegexp'&nbsp;&nbsp;&nbsp; =&gt;
    '/^([a-zA-Z0-9][a-zA-Z0-9\_\.\-\@\\\]*)$/i',<br>
    <br>
    And yes, I have added *3* "\" characters near the end of that
    string, not 2 as you might think.<br>
    <br>
    That way it's done in the code, so you don't have to change your
    templates in 2 different places.<br>
    <br>
    This will be in the next release.<br>
    <br>
    Jules.<br>
    <br>
    On 17/09/2011 14:33, Jules wrote:
    <blockquote cite="mid:4E74A1A2.8000908@Zend.To" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      The only snag with that implementation is that if they are logging
      in from a LocalIP (i.e. somewhere on your site), that won't fix it
      when they login with the little "dropdown" login box, only if they
      actually go to the full login form.<br>
      <br>
      I've added a couple of lines to NSSADAuthenticator.php to say
      this:<br>
      &nbsp;&nbsp;&nbsp; $uname = preg_replace('/@.*$/', '', $uname);<br>
      &nbsp;&nbsp;&nbsp; $uname = preg_replace('/^.*\\\/', '', $uname);<br>
      where previously it just said<br>
      &nbsp;&nbsp;&nbsp; $uname = preg_replace('/@.*$/', '', $uname);<br>
      (that occurs twice in NSSADAuthenticator.php).<br>
      <br>
      On 17/09/2011 11:19, --[ UxBoD ]-- wrote:
      <blockquote
        cite="mid:c67ba2de-fff6-442c-aef7-228b7994f654@office.splatnix.net"
        type="cite">
        <style type="text/css">p { margin: 0; }</style>
        <div style="font-family: Courier New; font-size: 10pt; color:
          #000000">Jules, please ignore this request as all that is
          required is JS magic in login.tpl:<br>
          <br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;script type="text/javascript"&gt;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bindEnter($('#passwordField'), function(){
          submitform() });<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; function submitform() {<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var uname = document.forms["login"].uname.value;<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.forms["login"].uname.value =
          uname.substring(uname.indexOf("\\")+1);<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; document.login.submit(); }<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/script&gt;<br>
          <span>-- <br>
            Thanks, Phil<span name="x"></span><br>
          </span><br>
          <hr id="zwchr">
          <blockquote style="border-left:2px solid rgb(16, 16,
255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
            <style>p { margin: 0; }</style>
            <div style="font-family: Courier New; font-size: 10pt;
              color: #000000">Jules, a number of our test users have
              commented that it would be great if they were able to
              specify the same sign on credentials as they do for other
              systems. What is the difference you may ask? Well all
              other systems require DOMAIN\USERID and they are looking
              for consistency. They believe when rolled out there will
              be a lot of login failures as people will try to use the
              later format. How feasible would it be to add a parse
              routine to the code to strip the slash and domain from the
              login credentials ?<span><br>
                <span></span>-- <br>
                Thanks, Phil<span></span><br>
              </span><br>
            </div>
            <br>
            _______________________________________________<br>
            ZendTo mailing list<br>
            <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
              href="mailto:ZendTo@zend.to">ZendTo@zend.to</a><br>
            <a moz-do-not-send="true" class="moz-txt-link-freetext"
              href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></blockquote>
          <br>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
ZendTo mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CITP CEng
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>

Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

'Teach a man to reason, and he will think for a lifetime.' - Phil Plait
'All programs have a desire to be useful' - Tron, 1982
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>

Follow me at twitter.com/JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

'Teach a man to reason, and he will think for a lifetime.' - Phil Plait
'All programs have a desire to be useful' - Tron, 1982
</pre>
  </body>
</html>