Quick enable/disable user account.

Fajar A. Nugraha list at fajar.net
Wed Sep 14 06:44:26 CEST 2011


On Wed, Sep 14, 2011 at 11:10 AM, Christ Schlacta <lists at aarcane.org> wrote:
> Not using mysql.  you must peruse the manual pages about how to do it in
> your mysql module,

doc/rlm_sql on the source code (or /usr/[local]/share/doc/freeradius/
after installation)

in particular, search for "read_groups" and read the example.

> however, the magic lies in the users file.  you need a
> stanza similar to the following (but modified for sql)
>
> DEFAULT Ldap-Group == "WifiDisabled", Auth-Type := Reject
>                 Reply-Message = "Your account has been disabled."

usergroup and radgroupreply table.

Or, as Arran hinted, modify the default schema and query to have an
"enabled" column.

> On 9/13/2011 18:33, 2394263740 wrote:
>
> Christ,
>
> Thanks for your help.
>
> Can you please advise how to configurre a group reject access?

PLEASE do NOT reply ALL message digest. Trim them away.

-- 
Fajar




More information about the Freeradius-Users mailing list