TAC_PLUS-NG short config file.

211 views
Skip to first unread message

Sergio Gomez Ramirez

unread,
Sep 6, 2023, 10:34:56 AM9/6/23
to Event-Driven Servers
Hi Marc,

I have a question or request. I am trying simplify tac_plus-ng.cfg using other files, for example to host:

In your example :

host test { 
          host  example { 
                   address = 192.168.0.1 
                   key = key
          }
Mi config, Now it is working OK

host lab { include = /etc/tac_plus-ng/hosts/lab.conf }

But if i want to do the same whit "profile" i can´t do it. I can start tac_plus-ng service but i get this message when i try some authentication:

sep 06 13:55:31 tacacs1.example.com tac_plus-ng[916970]: scm_send_msg: sendmsg: Connection refused
sep 06 13:55:31 tacacs1. example.com tac_plus-ng[916970]: scm_send_msg (/etc/event-driven-servers-master/mavis/spawnd_accepted.c:218): Connection refused
sep 06 13:55:31 tacacs1. example.com tac_plus-ng[916980]: epoll event notification mechanism is being used
sep 06 13:55:31 tacacs1. example.com tac_plus-ng[916970]: free(): invalid pointer


I think that it is because the option "profile" can not be parent of another profile or it can not have a profile on another profile.

Regards
Sergio

Marc Huber

unread,
Sep 7, 2023, 11:10:15 AM9/7/23
to event-driv...@googlegroups.com

Hi Sergio,

On 06.09.2023 16:34, Sergio Gomez Ramirez wrote:
Mi config, Now it is working OK

host lab { include = /etc/tac_plus-ng/hosts/lab.conf }

But if i want to do the same whit "profile" i can´t do it. I can start tac_plus-ng service but i get this message when i try some authentication:

hierarchical profile definitions currently aren't supported, but I'm considering to add support for that.

sep 06 13:55:31 tacacs1.example.com tac_plus-ng[916970]: scm_send_msg: sendmsg: Connection refused
sep 06 13:55:31 tacacs1. example.com tac_plus-ng[916970]: scm_send_msg (/etc/event-driven-servers-master/mavis/spawnd_accepted.c:218): Connection refused
sep 06 13:55:31 tacacs1. example.com tac_plus-ng[916980]: epoll event notification mechanism is being used
sep 06 13:55:31 tacacs1. example.com tac_plus-ng[916970]: free(): invalid pointer

I can't reproduce that free() issue due to a massive lack of details.

Cheers,

Marc


Sergio Gomez Ramirez

unread,
Sep 8, 2023, 4:45:03 AM9/8/23
to Event-Driven Servers
Hi Marc,

I attach my config, for your tests. Thanks for considering this idea.

Regards,
Sergio

com.conf
engineering_l2.conf
tac_plus-ng.conf

Marc Huber

unread,
Sep 8, 2023, 10:00:44 AM9/8/23
to event-driv...@googlegroups.com

Hi Sergio,

thanks, I think I've fixed this, please git pull and retry.

Cheers,

Marc

--
You received this message because you are subscribed to the Google Groups "Event-Driven Servers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to event-driven-ser...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/event-driven-servers/9b7f45d9-9c48-4ff0-8d64-524b4b02c5ccn%40googlegroups.com.

Sergio Gomez Ramirez

unread,
Sep 13, 2023, 5:30:57 AM9/13/23
to Event-Driven Servers
Hi Marc,

I tested the last version and it works so fine. 

Thank so much
Regards

Reply all
Reply to author
Forward
0 new messages