[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: change Group-Name in unlang
From:       Mehdi Ravanbakhsh <babakco () gmail ! com>
Date:       2013-03-30 17:32:07
Message-ID: CAFnRD1k6TkBqSRNSPPs9uoLk=vfMyOGS=2ywHb5dA+Wvy50w2A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Can i use :


sql
if (notfound) {
update control {

Auth-Type := "Accept"
User-Profile = "Bad-User-Profile"
}
}




is User-Profile is changeable in unlang or i just can change Pool name by :

Pool-Name := "Bad-User-Pool"

Best regards.




On Sat, Mar 30, 2013 at 9:14 PM, Mehdi Ravanbakhsh <babakco@gmail.com>wrote:

> can i use Sql-Group in unlang?
>
> i use sql module and in sql database i can relate user to group, can i
> change user group in unlang ?
>
>
> On Sat, Mar 30, 2013 at 8:58 PM, Alan DeKok <aland@deployingradius.com>wrote:
>
>> Mehdi Ravanbakhsh wrote:
>> > I can change Pool-Name in unlang after if condition but if i use
>> > Group-Name for change the group of user it not work ....!!!
>>
>>   Group and Group-Name do checks in the unix /etc/groups file.  You
>> CANNOT re-write them.
>>
>>   Alan DeKok.
>> -
>> List info/subscribe/unsubscribe? See
>> http://www.freeradius.org/list/users.html
>>
>
>

[Attachment #5 (text/html)]

<div dir="ltr">Can i use :<div><br></div><div><br></div><div \
style>sql</div><div><div>if (notfound) {</div><div><span class="" \
style="white-space:pre">		</span>update control {</div><div><br></div><div><span \
class="" style="white-space:pre">				</span>Auth-Type := &quot;Accept&quot;</div> \
<div><span class="" style="white-space:pre">				</span>User-Profile = \
&quot;Bad-User-Profile&quot;</div><div><span class="" \
style="white-space:pre">		</span>}</div><div><span class="" \
style="white-space:pre">	</span>}</div> \
</div><div><br></div><div><br></div><div><br></div><div><br></div><div style>is \
User-Profile is changeable in unlang or i just can change Pool name by :  </div><div \
style><br></div><div style>Pool-Name := &quot;Bad-User-Pool&quot;</div> \
<div><br></div><div style>Best regards.</div><div style><br></div><div \
style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On \
Sat, Mar 30, 2013 at 9:14 PM, Mehdi Ravanbakhsh <span dir="ltr">&lt;<a \
href="mailto:babakco@gmail.com" target="_blank">babakco@gmail.com</a>&gt;</span> \
wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">can i use  Sql-Group in \
unlang?<div><br></div><div>i use sql module and in sql database i can relate user to \
group, can i change user group in unlang ?</div> </div><div class="HOEnZb"><div \
class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote"> On Sat, Mar 30, \
2013 at 8:58 PM, Alan DeKok <span dir="ltr">&lt;<a \
href="mailto:aland@deployingradius.com" \
target="_blank">aland@deployingradius.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">

<div>Mehdi Ravanbakhsh wrote:<br>
&gt; I can change Pool-Name in unlang after if condition but if i use<br>
&gt; Group-Name for change the group of user it not work ....!!!<br>
<br>
</div>   Group and Group-Name do checks in the unix /etc/groups file.   You<br>
CANNOT re-write them.<br>
<span><font color="#888888"><br>
   Alan DeKok.<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> \
</font></span></blockquote></div><br></div> </div></div></blockquote></div><br></div>



-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic