<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I have freeRADIUS 2.0.5 authenticating
against LDAP via eap and this has been working perfectly since last year.
</font>
<br><font size=2 face="sans-serif">Now a I have a new requirement to authenticate
another set of users in the same LDAP tree onto a different service. </font>
<br><font size=2 face="sans-serif">These users will be visitors to our
site and will have the user names Visitor1 ... Visitor(nn)</font>
<br>
<br><font size=2 face="sans-serif">I do not want visitors to be able to
get onto the original service, and I do not want normal users to get onto
the visitor service.</font>
<br>
<br><font size=2 face="sans-serif">My thoughts are to set up a new virtual
server and add an 'if' statement to look for the visitor user names, and
reject or allow as necessary. </font>
<br>
<br><font size=2 face="sans-serif">something like this in the new virtual
server</font>
<br>
<br><font size=1 face="Courier New">if ( Stripped-User-Name != /visitor[0-9]?[0-9]/i
) { reject }</font>
<br>
<br><font size=2 face="sans-serif">and the inverse for the old service.
</font>
<br>
<br><font size=1 face="Courier New">if ( Stripped-User-Name =~ /visitor[0-9]?[0-9]/i
) { reject }</font>
<br>
<br><font size=2 face="sans-serif">Is this syntax correct ? and where do
I put it?</font>
<br>
<br><font size=2 face="sans-serif">Thanks for your time ...regards,<br>
<br>
Bruce Richardson<br>
</font>
<br>
<br>
<span style="font-family:'Arial',sans-serif; font-size:8pt; font-weight:bold; font-style:italic; color:#008000"> Please consider the environment - do you really need to print this email?</span><br>
<br>
<br>
<br>
<span style="font-family:monospacesans-serif,arial; font-size:10pt; color:#000000">________________________________________________________________________________________</span><br>
<br>
<span style="font-family:monospacesans-serif,arial; font-size:9pt; color:#000000">This e-mail and any attachments are confidential and solely for the use of the intended recipient. They may contain material protected by legal professional or other privilege. If you receive it in error, please delete it from your system, make no copies of it, do not disclose its contents to any third party or use it for your own or any other person's benefit. Please advise the sender of its receipt as soon as possible. Although this email and its attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that they are virus free and no responsibility is accepted by the company for any loss or damage arising from receipt or use thereof. Any opinions expressed that do not relate to the official business of the company are those of the author, not the United Biscuits group of companies.</span><br>
<br>
<span style="font-family:monospacesans-serif,arial; font-size:9pt; color:#000000">United Biscuits (UK) Limited Registered in England number 2506007 Registered Office: Hayes Park, Hayes End Road, Hayes, Middlesex, UB4 8EE</span><br>
<span style="font-family:monospacesans-serif,arial; font-size:10pt; color:#000000">________________________________________________________________________________________</span><br>