MySQL is 5.0.x<br><br>Query SELECT * FROM `radcheck` WHERE `UserName` LIKE 'test.user '; (added space) returns 0 records (not found)<br><br>Query SELECT * FROM `radcheck` WHERE `UserName` LIKE 'test.user';  (without blank space) returns valid records. (password, simultaneus-use and other check entries. 
<br><br>So this can be called as FreeRadius bug ?<br><br>I saw binary option so I will test it later. <br><br>Best regards and thanks for your time and ideas you gave to me. <br><br>Marinko<br><br><div class="gmail_quote">
2008/1/22  <<a href="mailto:tnt@kalik.co.yu">tnt@kalik.co.yu</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">It's more likely to be a MySQL bug. Try the same with a user entry in
<br>users file - if user can authenticate with and without trailing space<br>then it is freeradius bug. If SELECT ..... 'test' and SELECT .....<br>'test ' produce the same output, then the problem is with MySQL.
<br><div><div></div><div class="Wj3C7c"><br>Ivan Kalik<br>Kalik Informatika ISP<br><br><br>Dana 22/1/2008, "Marinko Tarlac" <<a href="mailto:mangia81@gmail.com">mangia81@gmail.com</a>> piše:<br><br>>Thanks but this option didn't help.
<br>><br>>I tried with random username and when I add blank space after username user<br>>still can connect... Seems like a radius bug so I will try to install newer<br>>version.<br>><br>>In any case I will inform you about this... Until I fix this issue I will
<br>>update radacct with my own script who will remove blank spaces in usernames.<br>><br>><br>>Best regards<br>><br>>2008/1/22 <<a href="mailto:tnt@kalik.co.yu">tnt@kalik.co.yu</a>>:<br>><br>>> There is a configuration line in 
radiusd.conf:<br>>><br>>> nospace_user = yes (default is no)<br>>><br>>> that will remove trailing space even when entered. By the user. It<br>>> doesn't help if the trailing space is in the database.
<br>>><br>>> Ivan Kalik<br>>> Kalik Informatika ISP<br>>><br>>><br>>> Dana 22/1/2008, "Marinko Tarlac" <<a href="mailto:mangia81@gmail.com">mangia81@gmail.com</a>> piše:
<br>>><br>>> >>  Neither.  The user is adding the spaces.  It looks to me like someone<br>>> >> figured out that you have test accounts.  They are using the test<br>>> >> accounts to log in without paying.
<br>>> >><br>>> >><br>>> >Well it is more than one account and they are random usernames (example,<br>>> >mirije, drogbba, etc. )<br>>> ><br>>> ><br>>> >>  You need to to audit your configuration to ensure that you are using
<br>>> >> the user name *correctly*.<br>>> >><br>>> >>  e.g. this is wrong: SELECT ... %{User-Name} ...<br>>> >><br>>> >>  this is correct:    SELECT ... '%{User-Name}' ...
<br>>> >><br>>> >> > One is sure. MySql seems fine and only solution I can do now is to<br>>> make<br>>> >> > querry "UPDATE radacct SET UserName=' test.user' WHERE
<br>>> >> > UserName='test.user  '";<br>>> >><br>>> >> -<br>>> >><br>>> ><br>>> >Inside sql.conf everything seems fine.<br>>> >.....
<br>>> >sql_user_name = "%{User-Name}"<br>>> >......<br>>> >authorize_check_query = "SELECT id, UserName, Attribute, Value, op \<br>>> >          FROM ${authcheck_table} \
<br>>> >          WHERE Username = '%{SQL-User-Name}' \<br>>> >          ORDER BY id"<br>>> >authorize_reply_query = "SELECT id, UserName, Attribute, Value, op \<br>>> >          FROM ${authreply_table} \
<br>>> >          WHERE Username = '%{SQL-User-Name}' \<br>>> >          ORDER BY id"<br>>> ><br>>> >Also, accounting queries are also the same. ???<br>>> ><br>>> >
<br>>><br>>> -<br>>> List info/subscribe/unsubscribe? See<br>>> <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>>><br>>
<br><br>-<br>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br></div></div></blockquote></div><br>