{"action":"created","issue":{"url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/957","labels_url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/957/labels{/name}","comments_url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/957/comments","events_url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/957/events","html_url":"https://github.com/FreeRADIUS/freeradius-server/issues/957","id":68948272,"number":957,"title":"3.1.x - radclient - filter not working","user":{"login":"nchaigne","id":6780490,"avatar_url":"https://avatars.githubusercontent.com/u/6780490?v=3","gravatar_id":"","url":"https://api.github.com/users/nchaigne","html_url":"https://github.com/nchaigne","followers_url":"https://api.github.com/users/nchaigne/followers","following_url":"https://api.github.com/users/nchaigne/following{/other_user}","gists_url":"https://api.github.com/users/nchaigne/gists{/gist_id}","starred_url":"https://api.github.com/users/nchaigne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nchaigne/subscriptions","organizations_url":"https://api.github.com/users/nchaigne/orgs","repos_url":"https://api.github.com/users/nchaigne/repos","events_url":"https://api.github.com/users/nchaigne/events{/privacy}","received_events_url":"https://api.github.com/users/nchaigne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-16T15:26:45Z","updated_at":"2015-04-16T15:31:59Z","closed_at":null,"body":"I'm trying to use a filter with radclient, with a filter that matches exactly the actual attribute returned.\r\nIt doesn't work as expected.\r\nI get the following message:\r\n\r\n\tReceived Access-Accept Id 195 from 10.67.106.9:42812 to 0.0.0.0:0 length 32\r\n\t\t\tReply-Message = 'Hello, bob'\r\n\t(0) in-bob-pap.vps: Response for failed filter: Attribute value \"Hello, bob\" didn't match filter: Reply-Message = \"Hello, bob\"\r\n\r\n\r\nI've tried the following change, which fixes the issue.\r\nCan you check if it's correct ?\r\n\r\nIn function value_data_cmp_op (file: src\\lib\\value.c):\r\nAfter line 384, I've added \"case T_OP_EQ\", as follows:\r\n\r\n\tswitch (op) {\r\n\tcase T_OP_CMP_EQ:\r\n\tcase T_OP_EQ:\r\n\t\treturn (compare == 0);\r\n"},"comment":{"url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/comments/93764737","html_url":"https://github.com/FreeRADIUS/freeradius-server/issues/957#issuecomment-93764737","issue_url":"https://api.github.com/repos/FreeRADIUS/freeradius-server/issues/957","id":93764737,"user":{"login":"arr2036","id":791758,"avatar_url":"https://avatars.githubusercontent.com/u/791758?v=3","gravatar_id":"","url":"https://api.github.com/users/arr2036","html_url":"https://github.com/arr2036","followers_url":"https://api.github.com/users/arr2036/followers","following_url":"https://api.github.com/users/arr2036/following{/other_user}","gists_url":"https://api.github.com/users/arr2036/gists{/gist_id}","starred_url":"https://api.github.com/users/arr2036/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arr2036/subscriptions","organizations_url":"https://api.github.com/users/arr2036/orgs","repos_url":"https://api.github.com/users/arr2036/repos","events_url":"https://api.github.com/users/arr2036/events{/privacy}","received_events_url":"https://api.github.com/users/arr2036/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T15:31:59Z","updated_at":"2015-04-16T15:31:59Z","body":"Use == in the filter"}}