Freeradius Authenticate ADSL with Calling-Station ID

Maile Halatuituia maile.halatuituia at tcc.to
Sun Jul 19 22:54:33 CEST 2020


Hi Marki
I have managed to find a solution to this by adjusting the default server configuration This does the Job for me

# if Calling-Station-Id exists
    if ( &Calling-Station-Id ) {

# Update authorization request attribute
# Set the username to Calling-Station-Id

        update request {
            #&User-Name := "%{%{Stripped-User-name}:-%{User-Name}}@somerealm"
            &User-Name := "%{Calling-Station-Id}"
        }

    }

    # if Calling-Station-Id doesn't exists

    else {

       # if username doesn't contain an @
       # add @kalianet.to

        if ( &User-Name !~ /\@/ ){
            update request {
              &User-Name := "%{User-Name}@somerealm"
            }
        }
    }
perl
if ( ok || updated ) {
    update control {
      &Auth-Type := Perl
    }
}
}



-----Original Message-----
From: Freeradius-Users <freeradius-users-bounces+maile.halatuituia=tcc.to at lists.freeradius.org> On Behalf Of marki
Sent: Thursday, 16 July 2020 9:09 PM
To: FreeRadius users mailing list <freeradius-users at lists.freeradius.org>
Subject: RE: Freeradius Authenticate ADSL with Calling-Station ID

Again, what have you tried so far and what is the exact problem? (Include debug output if necessary as per list instructions)

On July 16, 2020 12:23:53 AM GMT+02:00, Maile Halatuituia <maile.halatuituia at tcc.to> wrote:
> In summary all I
>want to do

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

This email (including any attachment) is intended for internal use only. Any unauthorized use, dissemination or copying of the content is prohibited. If you are not the intended recipient and have received this e-mail in error, please notify the sender by email and delete this email and any attachment.
Confidentiality Notice:

This email (including any attachment) is intended for internal use only. Any unauthorized use, dissemination or copying of the content is prohibited. If you are not the intended recipient and have received this e-mail in error, please notify the sender by email and delete this email and any attachment.



More information about the Freeradius-Users mailing list