freeradius test user fails Parse error (reply) for entry test: Expected end of line or commaMethods to diagnose why an application works for local user account but fails on a network user account?How does one disable the floppy module from loading on boot in CentOs7?Radiusd(freeradius): User only for a special clientFreeradius: No reply message for Failed AuthenticationsFreeradius Error binding to port for 0.0.0.0 port 1812Linux/Embedded Linux - Understanding the Kernel and additional BSP specific componentsUsing “su - ” to change user given “No passwd entry for user”SSH Configuration Help / Can't tunnelpasswd fails with “Authentication token manipulation error” for NISHow do I add an entry to the end of the line in bash

Why does Kotter return in Welcome Back Kotter

Is there a hemisphere-neutral way of specifying a season?

How to draw the figure with four pentagons?

What is the intuition behind short exact sequences of groups; in particular, what is the intuition behind group extensions?

Infinite Abelian subgroup of infinite non Abelian group example

What killed these X2 caps?

What about the virus in 12 Monkeys?

What is the most common color to indicate the input-field is disabled?

A reference to a well-known characterization of scattered compact spaces

1960's book about a plague that kills all white people

How can saying a song's name be a copyright violation?

Were any external disk drives stacked vertically?

I would say: "You are another teacher", but she is a woman and I am a man

Memorizing the Keyboard

Is it unprofessional to ask if a job posting on GlassDoor is real?

What mechanic is there to disable a threat instead of killing it?

What to put in ESTA if staying in US for a few days before going on to Canada

What's the difference between 'rename' and 'mv'?

Neighboring nodes in the network

I Accidentally Deleted a Stock Terminal Theme

How can I prevent hyper evolved versions of regular creatures from wiping out their cousins?

When a company launches a new product do they "come out" with a new product or do they "come up" with a new product?

Intersection of two sorted vectors in C++

Did Shadowfax go to Valinor?



freeradius test user fails Parse error (reply) for entry test: Expected end of line or comma


Methods to diagnose why an application works for local user account but fails on a network user account?How does one disable the floppy module from loading on boot in CentOs7?Radiusd(freeradius): User only for a special clientFreeradius: No reply message for Failed AuthenticationsFreeradius Error binding to port for 0.0.0.0 port 1812Linux/Embedded Linux - Understanding the Kernel and additional BSP specific componentsUsing “su - ” to change user given “No passwd entry for user”SSH Configuration Help / Can't tunnelpasswd fails with “Authentication token manipulation error” for NISHow do I add an entry to the end of the line in bash






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I am trying to use the following at the top of my files authorize to test a new radius installation on default configs.



head /etc/raddb/mods-config/files/authorize
bob Cleartext-Password := "hello"
Reply-Message := "Hello, %User-Name"

test Cleartext-Password := "test"
Reply-Message := "Hello, %User-Name


#
# Configuration file for the rlm_files module.
# Please see rlm_files(5) manpage for more information.


This fails to load at start up.
With the last few lines of the logs looking like this.



/sbin/radiusd -f -X -x
.....
Wed Aug 16 16:37:38 2017 : Debug: reference = "Accounting-Request.%%Acct-Status-Type:-unknown"
Wed Aug 16 16:37:38 2017 : Debug: }
Wed Aug 16 16:37:38 2017 : Debug: (Loaded rlm_files, checking if it's valid)
Wed Aug 16 16:37:38 2017 : Debug: # Loaded module rlm_files
Wed Aug 16 16:37:38 2017 : Debug: # Instantiating module "files" from file /etc/raddb/mods-enabled/files
Wed Aug 16 16:37:38 2017 : Debug: files
Wed Aug 16 16:37:38 2017 : Debug: filename = "/etc/raddb/mods-config/files/authorize"
Wed Aug 16 16:37:38 2017 : Debug: usersfile = "/etc/raddb/mods-config/files/authorize"
Wed Aug 16 16:37:38 2017 : Debug: acctusersfile = "/etc/raddb/mods-config/files/accounting"
Wed Aug 16 16:37:38 2017 : Debug: preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy"
Wed Aug 16 16:37:38 2017 : Debug: compat = "cistron"
Wed Aug 16 16:37:38 2017 : Debug:
Wed Aug 16 16:37:38 2017 : Debug: reading pairlist file /etc/raddb/mods-config/files/authorize
Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-config/files/authorize[5]: Parse error (reply) for entry test: Expected end of line or comma
Wed Aug 16 16:37:38 2017 : Error: Failed reading /etc/raddb/mods-config/files/authorize
Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-enabled/files[9]: Instantiation failed for module "files"









share|improve this question




























    1















    I am trying to use the following at the top of my files authorize to test a new radius installation on default configs.



    head /etc/raddb/mods-config/files/authorize
    bob Cleartext-Password := "hello"
    Reply-Message := "Hello, %User-Name"

    test Cleartext-Password := "test"
    Reply-Message := "Hello, %User-Name


    #
    # Configuration file for the rlm_files module.
    # Please see rlm_files(5) manpage for more information.


    This fails to load at start up.
    With the last few lines of the logs looking like this.



    /sbin/radiusd -f -X -x
    .....
    Wed Aug 16 16:37:38 2017 : Debug: reference = "Accounting-Request.%%Acct-Status-Type:-unknown"
    Wed Aug 16 16:37:38 2017 : Debug: }
    Wed Aug 16 16:37:38 2017 : Debug: (Loaded rlm_files, checking if it's valid)
    Wed Aug 16 16:37:38 2017 : Debug: # Loaded module rlm_files
    Wed Aug 16 16:37:38 2017 : Debug: # Instantiating module "files" from file /etc/raddb/mods-enabled/files
    Wed Aug 16 16:37:38 2017 : Debug: files
    Wed Aug 16 16:37:38 2017 : Debug: filename = "/etc/raddb/mods-config/files/authorize"
    Wed Aug 16 16:37:38 2017 : Debug: usersfile = "/etc/raddb/mods-config/files/authorize"
    Wed Aug 16 16:37:38 2017 : Debug: acctusersfile = "/etc/raddb/mods-config/files/accounting"
    Wed Aug 16 16:37:38 2017 : Debug: preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy"
    Wed Aug 16 16:37:38 2017 : Debug: compat = "cistron"
    Wed Aug 16 16:37:38 2017 : Debug:
    Wed Aug 16 16:37:38 2017 : Debug: reading pairlist file /etc/raddb/mods-config/files/authorize
    Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-config/files/authorize[5]: Parse error (reply) for entry test: Expected end of line or comma
    Wed Aug 16 16:37:38 2017 : Error: Failed reading /etc/raddb/mods-config/files/authorize
    Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-enabled/files[9]: Instantiation failed for module "files"









    share|improve this question
























      1












      1








      1








      I am trying to use the following at the top of my files authorize to test a new radius installation on default configs.



      head /etc/raddb/mods-config/files/authorize
      bob Cleartext-Password := "hello"
      Reply-Message := "Hello, %User-Name"

      test Cleartext-Password := "test"
      Reply-Message := "Hello, %User-Name


      #
      # Configuration file for the rlm_files module.
      # Please see rlm_files(5) manpage for more information.


      This fails to load at start up.
      With the last few lines of the logs looking like this.



      /sbin/radiusd -f -X -x
      .....
      Wed Aug 16 16:37:38 2017 : Debug: reference = "Accounting-Request.%%Acct-Status-Type:-unknown"
      Wed Aug 16 16:37:38 2017 : Debug: }
      Wed Aug 16 16:37:38 2017 : Debug: (Loaded rlm_files, checking if it's valid)
      Wed Aug 16 16:37:38 2017 : Debug: # Loaded module rlm_files
      Wed Aug 16 16:37:38 2017 : Debug: # Instantiating module "files" from file /etc/raddb/mods-enabled/files
      Wed Aug 16 16:37:38 2017 : Debug: files
      Wed Aug 16 16:37:38 2017 : Debug: filename = "/etc/raddb/mods-config/files/authorize"
      Wed Aug 16 16:37:38 2017 : Debug: usersfile = "/etc/raddb/mods-config/files/authorize"
      Wed Aug 16 16:37:38 2017 : Debug: acctusersfile = "/etc/raddb/mods-config/files/accounting"
      Wed Aug 16 16:37:38 2017 : Debug: preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy"
      Wed Aug 16 16:37:38 2017 : Debug: compat = "cistron"
      Wed Aug 16 16:37:38 2017 : Debug:
      Wed Aug 16 16:37:38 2017 : Debug: reading pairlist file /etc/raddb/mods-config/files/authorize
      Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-config/files/authorize[5]: Parse error (reply) for entry test: Expected end of line or comma
      Wed Aug 16 16:37:38 2017 : Error: Failed reading /etc/raddb/mods-config/files/authorize
      Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-enabled/files[9]: Instantiation failed for module "files"









      share|improve this question














      I am trying to use the following at the top of my files authorize to test a new radius installation on default configs.



      head /etc/raddb/mods-config/files/authorize
      bob Cleartext-Password := "hello"
      Reply-Message := "Hello, %User-Name"

      test Cleartext-Password := "test"
      Reply-Message := "Hello, %User-Name


      #
      # Configuration file for the rlm_files module.
      # Please see rlm_files(5) manpage for more information.


      This fails to load at start up.
      With the last few lines of the logs looking like this.



      /sbin/radiusd -f -X -x
      .....
      Wed Aug 16 16:37:38 2017 : Debug: reference = "Accounting-Request.%%Acct-Status-Type:-unknown"
      Wed Aug 16 16:37:38 2017 : Debug: }
      Wed Aug 16 16:37:38 2017 : Debug: (Loaded rlm_files, checking if it's valid)
      Wed Aug 16 16:37:38 2017 : Debug: # Loaded module rlm_files
      Wed Aug 16 16:37:38 2017 : Debug: # Instantiating module "files" from file /etc/raddb/mods-enabled/files
      Wed Aug 16 16:37:38 2017 : Debug: files
      Wed Aug 16 16:37:38 2017 : Debug: filename = "/etc/raddb/mods-config/files/authorize"
      Wed Aug 16 16:37:38 2017 : Debug: usersfile = "/etc/raddb/mods-config/files/authorize"
      Wed Aug 16 16:37:38 2017 : Debug: acctusersfile = "/etc/raddb/mods-config/files/accounting"
      Wed Aug 16 16:37:38 2017 : Debug: preproxy_usersfile = "/etc/raddb/mods-config/files/pre-proxy"
      Wed Aug 16 16:37:38 2017 : Debug: compat = "cistron"
      Wed Aug 16 16:37:38 2017 : Debug:
      Wed Aug 16 16:37:38 2017 : Debug: reading pairlist file /etc/raddb/mods-config/files/authorize
      Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-config/files/authorize[5]: Parse error (reply) for entry test: Expected end of line or comma
      Wed Aug 16 16:37:38 2017 : Error: Failed reading /etc/raddb/mods-config/files/authorize
      Wed Aug 16 16:37:38 2017 : Error: /etc/raddb/mods-enabled/files[9]: Instantiation failed for module "files"






      linux centos configuration radius freeradius






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 16 '17 at 16:52









      nelaaronelaaro

      6052816




      6052816




















          1 Answer
          1






          active

          oldest

          votes


















          3














          After many hours and a lot of googling.

          I fixed this by taking a harder look at the lines in my authorise



          bob Cleartext-Password := "hello"
          Reply-Message := "Hello, %User-Name"

          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name


          The problem was the trailing " was missing on my test user.

          Googling for the error did not get me to any useful answers.



          Error: /etc/raddb/mods-config/files/authorize[5]: Parse error (reply) for entry test: Expected end of line or comma


          I just added the missing " after %User-Name" and everything worked.



          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name"


          I hope this save somebody some time in the future.



          $ radtest "test" test 127.0.0.1 1812 testing123
          Sent Access-Request Id 25 from 0.0.0.0:59986 to 127.0.0.1:1812 length 74
          User-Name = "test"
          User-Password = "test"
          NAS-IP-Address = 127.0.1.1
          NAS-Port = 1812
          Message-Authenticator = 0x00
          Cleartext-Password = "test"
          Received Access-Accept Id 25 from 127.0.0.1:1812 to 0.0.0.0:0 length 33
          Reply-Message = "Hello, test"





          share|improve this answer























          • You might find it easier to hardcode a couple of test users using unlang. It is easier to follow the debug trace.

            – Rui F Ribeiro
            Aug 16 '17 at 17:06











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f386487%2ffreeradius-test-user-fails-parse-error-reply-for-entry-test-expected-end-of-l%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3














          After many hours and a lot of googling.

          I fixed this by taking a harder look at the lines in my authorise



          bob Cleartext-Password := "hello"
          Reply-Message := "Hello, %User-Name"

          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name


          The problem was the trailing " was missing on my test user.

          Googling for the error did not get me to any useful answers.



          Error: /etc/raddb/mods-config/files/authorize[5]: Parse error (reply) for entry test: Expected end of line or comma


          I just added the missing " after %User-Name" and everything worked.



          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name"


          I hope this save somebody some time in the future.



          $ radtest "test" test 127.0.0.1 1812 testing123
          Sent Access-Request Id 25 from 0.0.0.0:59986 to 127.0.0.1:1812 length 74
          User-Name = "test"
          User-Password = "test"
          NAS-IP-Address = 127.0.1.1
          NAS-Port = 1812
          Message-Authenticator = 0x00
          Cleartext-Password = "test"
          Received Access-Accept Id 25 from 127.0.0.1:1812 to 0.0.0.0:0 length 33
          Reply-Message = "Hello, test"





          share|improve this answer























          • You might find it easier to hardcode a couple of test users using unlang. It is easier to follow the debug trace.

            – Rui F Ribeiro
            Aug 16 '17 at 17:06















          3














          After many hours and a lot of googling.

          I fixed this by taking a harder look at the lines in my authorise



          bob Cleartext-Password := "hello"
          Reply-Message := "Hello, %User-Name"

          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name


          The problem was the trailing " was missing on my test user.

          Googling for the error did not get me to any useful answers.



          Error: /etc/raddb/mods-config/files/authorize[5]: Parse error (reply) for entry test: Expected end of line or comma


          I just added the missing " after %User-Name" and everything worked.



          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name"


          I hope this save somebody some time in the future.



          $ radtest "test" test 127.0.0.1 1812 testing123
          Sent Access-Request Id 25 from 0.0.0.0:59986 to 127.0.0.1:1812 length 74
          User-Name = "test"
          User-Password = "test"
          NAS-IP-Address = 127.0.1.1
          NAS-Port = 1812
          Message-Authenticator = 0x00
          Cleartext-Password = "test"
          Received Access-Accept Id 25 from 127.0.0.1:1812 to 0.0.0.0:0 length 33
          Reply-Message = "Hello, test"





          share|improve this answer























          • You might find it easier to hardcode a couple of test users using unlang. It is easier to follow the debug trace.

            – Rui F Ribeiro
            Aug 16 '17 at 17:06













          3












          3








          3







          After many hours and a lot of googling.

          I fixed this by taking a harder look at the lines in my authorise



          bob Cleartext-Password := "hello"
          Reply-Message := "Hello, %User-Name"

          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name


          The problem was the trailing " was missing on my test user.

          Googling for the error did not get me to any useful answers.



          Error: /etc/raddb/mods-config/files/authorize[5]: Parse error (reply) for entry test: Expected end of line or comma


          I just added the missing " after %User-Name" and everything worked.



          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name"


          I hope this save somebody some time in the future.



          $ radtest "test" test 127.0.0.1 1812 testing123
          Sent Access-Request Id 25 from 0.0.0.0:59986 to 127.0.0.1:1812 length 74
          User-Name = "test"
          User-Password = "test"
          NAS-IP-Address = 127.0.1.1
          NAS-Port = 1812
          Message-Authenticator = 0x00
          Cleartext-Password = "test"
          Received Access-Accept Id 25 from 127.0.0.1:1812 to 0.0.0.0:0 length 33
          Reply-Message = "Hello, test"





          share|improve this answer













          After many hours and a lot of googling.

          I fixed this by taking a harder look at the lines in my authorise



          bob Cleartext-Password := "hello"
          Reply-Message := "Hello, %User-Name"

          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name


          The problem was the trailing " was missing on my test user.

          Googling for the error did not get me to any useful answers.



          Error: /etc/raddb/mods-config/files/authorize[5]: Parse error (reply) for entry test: Expected end of line or comma


          I just added the missing " after %User-Name" and everything worked.



          test Cleartext-Password := "test"
          Reply-Message := "Hello, %User-Name"


          I hope this save somebody some time in the future.



          $ radtest "test" test 127.0.0.1 1812 testing123
          Sent Access-Request Id 25 from 0.0.0.0:59986 to 127.0.0.1:1812 length 74
          User-Name = "test"
          User-Password = "test"
          NAS-IP-Address = 127.0.1.1
          NAS-Port = 1812
          Message-Authenticator = 0x00
          Cleartext-Password = "test"
          Received Access-Accept Id 25 from 127.0.0.1:1812 to 0.0.0.0:0 length 33
          Reply-Message = "Hello, test"






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 16 '17 at 16:52









          nelaaronelaaro

          6052816




          6052816












          • You might find it easier to hardcode a couple of test users using unlang. It is easier to follow the debug trace.

            – Rui F Ribeiro
            Aug 16 '17 at 17:06

















          • You might find it easier to hardcode a couple of test users using unlang. It is easier to follow the debug trace.

            – Rui F Ribeiro
            Aug 16 '17 at 17:06
















          You might find it easier to hardcode a couple of test users using unlang. It is easier to follow the debug trace.

          – Rui F Ribeiro
          Aug 16 '17 at 17:06





          You might find it easier to hardcode a couple of test users using unlang. It is easier to follow the debug trace.

          – Rui F Ribeiro
          Aug 16 '17 at 17:06

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f386487%2ffreeradius-test-user-fails-parse-error-reply-for-entry-test-expected-end-of-l%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

          Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

          Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.