<br>Hi,<br><div class="gmail_quote"><div>I'm giving a detailed description of my problem here</div><div><br></div><div>Im setting up 802.1x port based authentication using wire1x as supplicant and freeradius as the server.I have configured </div>
<div>
switch for 802.1x and using eap-tls as authentication protocol.freeradius is configured to authenticate the client with username and password.</div><div><br></div><div>My problem is i want to sent a bit(P bit) along with this username which will be taken into account for the authentication.for this i planned to send the username as P<specialcharacter>UserName.and wire1x will send the username as usual.</div>
<div><br></div><div>Now at the freeradius side i have to seperate this new user name to P and UserName.and and make the authentication as(hypothetically):</div><div><br></div><div>if(recieved (username,password)=(username,password)in clients.conf)&&bit P==1)</div>
<div>{</div><div>authenticate(return 0)</div><div>}</div><div>I found that the username,password checking is done in auth.c file.i have to add 1 more condition to that.</div><div>Hope i have explained my problem well.and hope u will give enough suggestions.</div>
<div>thank you</div><div><div></div><div class="h5"><div><div><br><div class="gmail_quote">On Thu, Apr 21, 2011 at 4:22 PM, Brian Candler <span dir="ltr"><<a href="mailto:B.Candler@pobox.com" target="_blank">B.Candler@pobox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>On Wed, Apr 20, 2011 at 08:30:28PM +0530, ashwini b wrote:<br>
> thank you for the suggestion.but as i mentioned earlier i'm really a<br>
> newcomer in this field..<br>
><br>
> where should i make these changes?and i hav to authenticate the user<br>
> based on username ,password and the checkbit(as mentioned earlier).Can<br>
> u suggest how i could accomplish this.a detailed explanation will be a<br>
> great help...<br>
<br>
</div>You will make the change in sites-available/default in the "authorize"<br>
section. "man unlang" will tell you more about the language you can use in<br>
here.<br>
<br>
I can't give you any more detailled description of the solution, because you<br>
haven't given a detailled description of the problem. All you've said is<br>
you're "sending a bit along with the username". Maybe you could give an<br>
example of what the modified username looks like, and how you want the<br>
username to look after restoring it?<br>
</blockquote></div><br></div></div>
</div></div></div><br>