<div dir="ltr">OK. But the answer granted/declined comes from IPA. So why IPA doesn't check its own HBAC rules at all?<div>Maybe the line '<span style="font-size:12.8000001907349px">account      required      pam_sss.so' isn't necessary/required. I just want to do authentication by IPA HBAC rules.</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Thanks,</span></div><div><span style="font-size:12.8000001907349px">Bartek.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-05-11 17:22 GMT+02:00 Sumit Bose <span dir="ltr"><<a href="mailto:sbose@redhat.com" target="_blank">sbose@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, May 11, 2015 at 05:15:31PM +0200, Sumit Bose wrote:<br>
> On Mon, May 11, 2015 at 04:47:01PM +0200, Lukas Slebodnik wrote:<br>
> > On (11/05/15 14:57), Vangass wrote:<br>
> > >Hi,<br>
> > ><br>
> > >I try to access Cisco switch via ssh. Cisco has tacacs login configured.<br>
> > ><br>
> > ># tail /var/log/secure<br>
> > >May 11 14:18:46 freeipa tac_plus[29096]: pam_sss(tac_plus:auth):<br>
> > >authentication success; logname=bartosz uid=0 euid=0 tty= ruser= rhost=<br>
> > >user=bartosz<br>
> > >May 11 14:18:53 freeipa tac_plus[29096]: pam_sss(tac_plus:auth):<br>
> > >authentication success; logname=bartosz uid=0 euid=0 tty= ruser= rhost=<br>
> > >user=test<br>
> > ><br>
> > >User bartosz is added in HBAC rule as Specified Users and Groups.<br>
> > >User test exist in FreeIPA but isn't in HBAC rule and shouldn't be<br>
> > >autheniticated.<br>
> > ><br>
> > ># cat /etc/sssd/sssd.conf<br>
> > >[domain/<a href="http://test.example.com" target="_blank">test.example.com</a>]<br>
> > >debug_level = 6<br>
> > >cache_credentials = True<br>
> > >krb5_store_password_if_offline = True<br>
> > >ipa_domain = <a href="http://test.example.com" target="_blank">test.example.com</a><br>
> > >id_provider = ipa<br>
> > >auth_provider = ipa<br>
> > >access_provider = ipa<br>
> > >ipa_hostname = <a href="http://freeipa.test.example.com" target="_blank">freeipa.test.example.com</a><br>
> > >chpass_provider = ipa<br>
> > >ipa_server = <a href="http://freeipa.test.example.com" target="_blank">freeipa.test.example.com</a><br>
> > >ipa_server_mode = True<br>
> > >ldap_tls_cacert = /etc/ipa/ca.crt<br>
> > ><br>
> > >[sssd]<br>
> > >services = nss, sudo, pam, ssh<br>
> > >config_file_version = 2<br>
> > >domains = <a href="http://test.example.com" target="_blank">test.example.com</a><br>
> > ><br>
> > >[nss]<br>
> > >homedir_substring = /home<br>
> > ><br>
> > >[pam]<br>
> > >debug_level = 6<br>
> > >domains = <a href="http://test.example.com" target="_blank">test.example.com</a><br>
> > ><br>
> > >[sudo]<br>
> > ><br>
> > >[autofs]<br>
> > ><br>
> > >[ssh]<br>
> > ><br>
> > >[pac]<br>
> > ><br>
> > >[ifp]<br>
> > ><br>
> > ><br>
> > >#cat /var/log/sssd/sssd_pam.log<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [accept_fd_handler] (0x0400): Client<br>
> > >connected to privileged pipe!<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [sss_cmd_get_version] (0x0200):<br>
> > >Received client version [3].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [sss_cmd_get_version] (0x0200):<br>
> > >Offered version [3].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_cmd_authenticate] (0x0100):<br>
> > >entering pam_cmd_authenticate<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [sss_parse_name_for_domains]<br>
> > >(0x0200): name 'test' matched without domain, user is test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): command:<br>
> > >PAM_AUTHENTICATE<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): domain:<br>
> > >not set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): user: test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): service:<br>
> > >tac_plus<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): tty: not<br>
> > >set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): ruser:<br>
> > >not set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): rhost:<br>
> > >not set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): authtok<br>
> > >type: 1<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100):<br>
> > >newauthtok type: 0<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): priv: 1<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): cli_pid:<br>
> > >29218<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): logon<br>
> > >name: test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [sss_dp_issue_request] (0x0400):<br>
> > >Issuing request for [<a href="mailto:0x7f4f20215ed0%3A3%3Atest@test.example.com">0x7f4f20215ed0:3:test@test.example.com</a>]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [sss_dp_get_account_msg] (0x0400):<br>
> > >Creating request for [<a href="http://test.example.com" target="_blank">test.example.com</a>][3][1][name=test]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [sss_dp_internal_get_send] (0x0400):<br>
> > >Entering request [<a href="mailto:0x7f4f20215ed0%3A3%3Atest@test.example.com">0x7f4f20215ed0:3:test@test.example.com</a>]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_check_user_search] (0x0100):<br>
> > >Requesting info for [<a href="mailto:test@test.example.com">test@test.example.com</a>]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_check_user_search] (0x0400):<br>
> > >Returning info for user [<a href="mailto:test@test.example.com">test@test.example.com</a>]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_dp_send_req] (0x0100): Sending<br>
> > >request with the following data:<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): command:<br>
> > >PAM_AUTHENTICATE<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): domain:<br>
> > ><a href="http://test.example.com" target="_blank">test.example.com</a><br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): user: test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): service:<br>
> > >tac_plus<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): tty: not<br>
> > >set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): ruser:<br>
> > >not set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): rhost:<br>
> > >not set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): authtok<br>
> > >type: 1<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100):<br>
> > >newauthtok type: 0<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): priv: 1<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): cli_pid:<br>
> > >29218<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_print_data] (0x0100): logon<br>
> > >name: test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_dom_forwarder] (0x0100):<br>
> > >pam_dp_send_req returned 0<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [sss_dp_req_destructor] (0x0400):<br>
> > >Deleting request: [<a href="mailto:0x7f4f20215ed0%3A3%3Atest@test.example.com">0x7f4f20215ed0:3:test@test.example.com</a>]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_dp_process_reply] (0x0100):<br>
> > >received: [0][<a href="http://test.example.com" target="_blank">test.example.com</a>]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_reply] (0x0200): pam_reply<br>
> > >called with result [0].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_reply] (0x0200): pam_reply<br>
> > >called with result [0].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [pam_reply] (0x0200): blen: 81<br>
> > >(Mon May 11 14:40:28 2015) [sssd[pam]] [client_recv] (0x0200): Client<br>
> > >disconnected!<br>
> > ><br>
> > ># cat /var/log/sssd/sssd_test.example.com.log<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[be_get_account_info] (0x0200): Got request for [0x3][1][name=test]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [be_req_set_domain]<br>
> > >(0x0400): Changing request domain from [<a href="http://test.example.com" target="_blank">test.example.com</a>] to [<br>
> > ><a href="http://test.example.com" target="_blank">test.example.com</a>]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> > >domain SID from [(null)]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> > >domain SID from [(null)]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_initgr_next_base] (0x0400): Searching for users with base<br>
> > >[cn=accounts,dc=test,dc=example,dc=com]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_generic_ext_step] (0x0400): calling ldap_search_ext with<br>
> > >[(&(uid=test)(objectclass=posixAccount)(&(uidNumber=*)(!(uidNumber=0))))][cn=accounts,dc=test,dc=example,dc=com].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_generic_op_finished] (0x0400): Search result: Success(0), no<br>
> > >errmsg set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_user]<br>
> > >(0x0400): Save user<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_primary_name] (0x0400): Processing object test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_user]<br>
> > >(0x0400): Processing user test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> > >domain SID from [(null)]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_user]<br>
> > >(0x0400): Adding original memberOf attributes to [test].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_user]<br>
> > >(0x0400): Adding user principal [<a href="mailto:test@TEST.EXAMPLE.COM">test@TEST.EXAMPLE.COM</a>] to attributes of<br>
> > >[test].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_user]<br>
> > >(0x0400): Storing info for user test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_primary_name] (0x0400): Processing object test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_has_deref_support] (0x0400): The server supports deref method OpenLDAP<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_generic_ext_step] (0x0400): calling ldap_search_ext with<br>
> > >[(&(|(objectClass=ipaUserGroup)(objectClass=posixGroup))(cn=*))][cn=ipausers,cn=groups,cn=accounts,dc=test,dc=example,dc=com].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_generic_op_finished] (0x0400): Search result: Success(0), no<br>
> > >errmsg set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_primary_name] (0x0400): Processing object ipausers<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> > >domain SID from [(null)]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_groups_next_base] (0x0400): Searching for groups with base<br>
> > >[cn=accounts,dc=test,dc=example,dc=com]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_generic_ext_step] (0x0400): calling ldap_search_ext with<br>
> > >[(&(gidNumber=<a href="tel:732000003" value="+48732000003">732000003</a>)(|(objectClass=ipaUserGroup)(objectClass=posixGroup))(cn=*)(&(gidNumber=*)(!(gidNumber=0))))][cn=accounts,dc=test,dc=example,dc=com].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_generic_op_finished] (0x0400): Search result: Success(0), no<br>
> > >errmsg set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_groups_process] (0x0400): Search for groups, returned 1 results.<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_has_deref_support] (0x0400): The server supports deref method OpenLDAP<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> > >domain SID from [(null)]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_nested_group_recv] (0x0400): 0 users found in the hash table<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_nested_group_recv] (0x0400): 1 groups found in the hash table<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_primary_name] (0x0400): Processing object test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_group]<br>
> > >(0x0400): Processing group test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_idmap_domain_has_algorithmic_mapping] (0x0080): Could not parse<br>
> > >domain SID from [(null)]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_process_ghost_members] (0x0400): The group has 0 members<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_process_ghost_members] (0x0400): Group has 0 members<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_group]<br>
> > >(0x0400): Storing info for group test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_primary_name] (0x0400): Processing object test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_grpmem]<br>
> > >(0x0400): Processing group test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_grpmem]<br>
> > >(0x0400): Failed to get group sid<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [sdap_save_grpmem]<br>
> > >(0x0400): No members for group [test]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_generic_ext_step] (0x0400): calling ldap_search_ext with<br>
> > >[(&(objectClass=ipaOverrideAnchor)(ipaAnchorUUID=:IPA:test.example.com:b8e22526-f4c0-11e4-8865-005056a8f368))][cn=Default<br>
> > >Trust View,cn=views,cn=accounts,dc=test,dc=example,dc=com].<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[sdap_get_generic_op_finished] (0x0400): Search result: No such object(32),<br>
> > >no errmsg set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [acctinfo_callback]<br>
> > >(0x0100): Request processed. Returned 0,0,Success<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [be_req_set_domain]<br>
> > >(0x0400): Changing request domain from [<a href="http://test.example.com" target="_blank">test.example.com</a>] to [<br>
> > ><a href="http://test.example.com" target="_blank">test.example.com</a>]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [be_pam_handler]<br>
> > >(0x0100): Got request with the following data<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): command: PAM_AUTHENTICATE<br>
> > Here just authentication was performed.<br>
> >    It coresponds to the line "auth required pam_sss.so" in your pam stack.<br>
> ><br>
> ><br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): domain: <a href="http://test.example.com" target="_blank">test.example.com</a><br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): user: test<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): service: tac_plus<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): tty:<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): ruser:<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): rhost:<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): authtok type: 1<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): newauthtok type: 0<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): priv: 1<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): cli_pid: 29218<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [pam_print_data]<br>
> > >(0x0100): logon name: not set<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[fo_resolve_service_send] (0x0100): Trying to resolve service 'IPA'<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[be_resolve_server_process] (0x0200): Found address for server<br>
> > ><a href="http://freeipa.test.example.com" target="_blank">freeipa.test.example.com</a>: [172.21.0.20] TTL 7200<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[write_pipe_handler] (0x0400): All data has been sent!<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [child_sig_handler]<br>
> > >(0x0100): child [29226] finished successfully.<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]] [read_pipe_handler]<br>
> > >(0x0400): EOF received, client finished<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[fo_set_port_status] (0x0100): Marking port 0 of server '<br>
> > ><a href="http://freeipa.test.example.com" target="_blank">freeipa.test.example.com</a>' as 'working'<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[set_server_common_status] (0x0100): Marking server '<br>
> > ><a href="http://freeipa.test.example.com" target="_blank">freeipa.test.example.com</a>' as 'working'<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[fo_set_port_status] (0x0400): Marking port 0 of duplicate server '<br>
> > ><a href="http://freeipa.test.example.com" target="_blank">freeipa.test.example.com</a>' as 'working'<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[be_pam_handler_callback] (0x0100): Backend returned: (0, 0, <NULL>)<br>
> > >[Success]<br>
> >  ^^^^^^^^<br>
> > Result of authentication is "Success" which means that password is correct.<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[be_pam_handler_callback] (0x0100): Sending result [0][<a href="http://test.example.com" target="_blank">test.example.com</a>]<br>
> > >(Mon May 11 14:40:28 2015) [sssd[be[<a href="http://test.example.com" target="_blank">test.example.com</a>]]]<br>
> > >[be_pam_handler_callback] (0x0100): Sent result [0][<a href="http://test.example.com" target="_blank">test.example.com</a>]<br>
> > ><br>
> ><br>
> > I could not see authorisation phase; neither in sssd_pam log nor in<br>
> > sssd_$domain.log.<br>
> ><br>
> > It means that you either shared just part of log file or that<br>
> > your application did not reach/try line "account" in pam stack<br>
> >   "account required pam_sss.so"<br>
> > In this case you would able to see PAM_ACCT_MGMT in log files.<br>
> ><br>
> > sssd seems to work as expected.<br>
><br>
> I found the following on<br>
> <a href="http://www.shrubbery.net/tac_plus/PAM_guide.txt" target="_blank">http://www.shrubbery.net/tac_plus/PAM_guide.txt</a>:<br>
><br>
> "Currently, tac_plus only allows authentication using pam (since pam is<br>
> only used for authentication anyway). Authorizations are still<br>
> configured within the conf file, no ldap groups allowed :("<br>
><br>
> So it is not expected that tac_plus does only authentication and not<br>
> access control via PAM.<br>
<br>
</div></div>I just checked the sources in tacacs-F4.0.4.28.tar.gz, only<br>
pam_authenticate is called and not pam_acct_mgmt.<br>
<br>
bye,<br>
Sumit<br>
<div class="HOEnZb"><div class="h5">><br>
> HTH<br>
><br>
> bye,<br>
> Sumit<br>
><br>
> ><br>
> > LS<br>
> ><br>
> > --<br>
> > Manage your subscription for the Freeipa-users mailing list:<br>
> > <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
> > Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
><br>
> --<br>
> Manage your subscription for the Freeipa-users mailing list:<br>
> <a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
> Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
<br>
--<br>
Manage your subscription for the Freeipa-users mailing list:<br>
<a href="https://www.redhat.com/mailman/listinfo/freeipa-users" target="_blank">https://www.redhat.com/mailman/listinfo/freeipa-users</a><br>
Go to <a href="http://freeipa.org" target="_blank">http://freeipa.org</a> for more info on the project<br>
</div></div></blockquote></div><br></div>