<div dir="ltr">Don't you need a default service = permit in there somewhere?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 17, 2016 at 2:40 PM, Philip Prindeville <span dir="ltr"><<a href="mailto:philipp@redfish-solutions.com" target="_blank">philipp@redfish-solutions.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
<br>
I’m banging on the source to pam_tacplus’s libtac library and tacc (a simple test program) and I’m trying to figure out if the source to that is broken or if I’m invoking the test code incorrectly or if the configuration that I’m using for testing is wrong.<br>
<br>
Here’s the config file that I have:<br>
<br>
key = "password"<br>
accounting file = /var/log/tac.acct<br>
<br>
user = fred {<br>
    login = cleartext "wilma"<br>
    name = "Fred Flintstone"<br>
    # member = guest<br>
    expires = "May 23 2020"<br>
<br>
    service = exec {<br>
        "acl" = 5<br>
<br>
        autocmd = "telnet foo"<br>
    }<br>
}<br>
<br>
group = guest {<br>
    expires = "May 1 2017"<br>
}<br>
<br>
<br>
and when I do an authorization query against it, this is the resultant logging:<br>
<br>
Oct 17 13:35:46 type=AUTHOR, priv_lvl=0, authen=1<br>
Oct 17 13:35:46 method=tacacs+<br>
Oct 17 13:35:46 svc=3 user_len=4 port_len=5 rem_addr_len=7<br>
Oct 17 13:35:46 arg_cnt=2<br>
Oct 17 13:35:46 User:<br>
Oct 17 13:35:46 fred<br>
Oct 17 13:35:46 port:<br>
Oct 17 13:35:46 pts/2<br>
Oct 17 13:35:46 rem_addr:<br>
Oct 17 13:35:46 1.2.3.4<br>
Oct 17 13:35:46 arg[0]: size=12<br>
Oct 17 13:35:46 service=exec<br>
Oct 17 13:35:46 arg[1]: size=11<br>
Oct 17 13:35:46 protocol=ip<br>
Oct 17 13:35:46 End packet<br>
Oct 17 13:35:46 Start authorization request<br>
Oct 17 13:35:46 cfg_get_value: name=fred isuser=1 attr=acl rec=1<br>
Oct 17 13:35:46 cfg_get_pvalue: returns NULL<br>
Oct 17 13:35:46 do_author: user='fred'<br>
Oct 17 13:35:46 cfg_get_value: name=fred isuser=1 attr=before rec=1<br>
Oct 17 13:35:46 cfg_get_pvalue: returns NULL<br>
Oct 17 13:35:46 user 'fred' found<br>
Oct 17 13:35:46 cfg_get_svc_node: username=fred N_svc proto= svcname=exec rec=1<br>
Oct 17 13:35:46 cfg_get_svc_node: returns NULL<br>
Oct 17 13:35:46 cfg_get_value: name=fred isuser=1 attr=svc_dflt rec=1<br>
Oct 17 13:35:46 cfg_get_intvalue: returns 0<br>
Oct 17 13:35:46 svc=N_svc protocol= not found, denied by default<br>
Oct 17 13:35:46 cfg_get_value: name=fred isuser=1 attr=after rec=1<br>
Oct 17 13:35:46 cfg_get_pvalue: returns NULL<br>
Oct 17 13:35:46 Writing AUTHOR/FAIL size=18<br>
<br>
<br>
What am I missing?<br>
<br>
Thanks,<br>
<br>
-Philip<br>
<br>
______________________________<wbr>_________________<br>
tac_plus mailing list<br>
<a href="mailto:tac_plus@shrubbery.net">tac_plus@shrubbery.net</a><br>
<a href="http://www.shrubbery.net/mailman/listinfo/tac_plus" rel="noreferrer" target="_blank">http://www.shrubbery.net/<wbr>mailman/listinfo/tac_plus</a><br>
</blockquote></div><br></div>

<br>
<br>E-Mail to and from me, in connection with the transaction <br>of public business, is subject to the Wyoming Public Records <br>Act and may be disclosed to third parties.<br>