report.html

Report generated on 29-Aug-2018 at 21:44:26 by pytest-html v1.19.0

Environment

Packages {'pytest': '3.4.2', 'py': '1.5.4', 'pluggy': '0.6.0'}
Platform Linux-4.17.7-200.fc28.x86_64-x86_64-with-fedora-28-Twenty_Eight
Plugins {'metadata': '1.7.0', 'html': '1.19.0', 'sourceorder': '0.5', 'multihost': '3.0'}
Python 3.6.6

Summary

76 tests ran in 1777.07 seconds.

76 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passes

Results

Result Test Duration Links
Passed test_sudo.py::TestSudo::()::test_nisdomainname 0.06
------------------------------ Captured log setup ------------------------------
__init__.py 250 INFO Preparing host client0.ipa.test transport.py 1687 INFO Connected (version 2.0, client OpenSSH_7.7) transport.py 247 DEBUG Authenticating with private RSA key using user root transport.py 1687 INFO Authentication (publickey) successful! transport.py 318 INFO RUN ['true'] transport.py 513 DEBUG RUN ['true'] transport.py 558 DEBUG -bash: line 1: cd: /ipatests: No such file or directory transport.py 217 DEBUG Exit code: 0 __init__.py 244 INFO Adding client0.ipa.test:/ipatests/env.sh to list of logs to collect transport.py 301 DEBUG STAT /ipatests sftp.py 131 INFO [chan 1] Opened sftp connection (server version 3) transport.py 301 DEBUG STAT / transport.py 312 INFO MKDIR /ipatests transport.py 293 INFO WRITE /ipatests/env.sh __init__.py 250 INFO Preparing host master.ipa.test transport.py 1687 INFO Connected (version 2.0, client OpenSSH_7.7) transport.py 247 DEBUG Authenticating with private RSA key using user root transport.py 1687 INFO Authentication (publickey) successful! transport.py 318 INFO RUN ['true'] transport.py 513 DEBUG RUN ['true'] transport.py 558 DEBUG -bash: line 1: cd: /ipatests: No such file or directory transport.py 217 DEBUG Exit code: 0 __init__.py 244 INFO Adding master.ipa.test:/ipatests/env.sh to list of logs to collect transport.py 301 DEBUG STAT /ipatests sftp.py 131 INFO [chan 1] Opened sftp connection (server version 3) transport.py 301 DEBUG STAT / transport.py 312 INFO MKDIR /ipatests transport.py 293 INFO WRITE /ipatests/env.sh __init__.py 244 INFO Adding master.ipa.test:/var/log/dirsrv/slapd-IPA-TEST/errors to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/dirsrv/slapd-IPA-TEST/access to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipaserver-install.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipaclient-install.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipareplica-install.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipareplica-conncheck.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipareplica-ca-install.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipaclient-install.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipaserver-kra-install.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipa-custodia.audit.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipaclient-uninstall.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/iparestore.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/ipabackup.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/kadmind.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/krb5kdc.log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/httpd/error_log to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/pki/ to list of logs to collect __init__.py 244 INFO Adding master.ipa.test:/var/log/audit/audit.log to list of logs to collect transport.py 318 INFO RUN ['true'] transport.py 513 DEBUG RUN ['true'] transport.py 217 DEBUG Exit code: 0 __init__.py 244 INFO Adding master.ipa.test:/ipatests/env.sh to list of logs to collect transport.py 301 DEBUG STAT /ipatests transport.py 293 INFO WRITE /ipatests/env.sh transport.py 301 DEBUG STAT /etc/hostname transport.py 301 DEBUG STAT /ipatests/file_backup/etc transport.py 301 DEBUG STAT /ipatests/file_backup transport.py 301 DEBUG STAT /ipatests transport.py 312 INFO MKDIR /ipatests/file_backup transport.py 312 INFO MKDIR /ipatests/file_backup/etc transport.py 318 INFO RUN ['cp', '-af', '/etc/hostname', '/ipatests/file_backup/etc/hostname'] transport.py 513 DEBUG RUN ['cp', '-af', '/etc/hostname', '/ipatests/file_backup/etc/hostname'] transport.py 217 DEBUG Exit code: 0 transport.py 293 INFO WRITE /etc/hostname transport.py 318 INFO RUN ['hostname', 'master.ipa.test'] transport.py 513 DEBUG RUN ['hostname', 'master.ipa.test'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN hostname > '/ipatests/backup_hostname' transport.py 513 DEBUG RUN hostname > '/ipatests/backup_hostname' transport.py 217 DEBUG Exit code: 0 transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'httpd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'httpd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN for line in `ipcs -s | grep apache | cut -d " " -f 2`; do ipcrm -s $line; done transport.py 513 DEBUG RUN for line in `ipcs -s | grep apache | cut -d " " -f 2`; do ipcrm -s $line; done transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa-server-install', '-n', 'ipa.test', '-r', 'IPA.TEST', '-p', 'Secret.123', '-a', 'Secret.123', '--domain-level=1', '-U', '--setup-dns', '--forwarder', '192.168.121.1', '--auto-reverse'] transport.py 513 DEBUG RUN ['ipa-server-install', '-n', 'ipa.test', '-r', 'IPA.TEST', '-p', 'Secret.123', '-a', 'Secret.123', '--domain-level=1', '-U', '--setup-dns', '--forwarder', '192.168.121.1', '--auto-reverse'] transport.py 558 DEBUG Checking DNS domain ipa.test, please wait ... transport.py 558 DEBUG Checking DNS domain ipa.test., please wait ... transport.py 558 DEBUG Checking DNS domain 121.168.192.in-addr.arpa., please wait ... transport.py 558 DEBUG Reverse zone 121.168.192.in-addr.arpa. will be created transport.py 558 DEBUG Synchronizing time transport.py 558 DEBUG No SRV records of NTP servers found and no NTP server or pool address was provided. transport.py 558 DEBUG Attempting to sync time with chronyc. transport.py 558 DEBUG Process chronyc waitsync failed to sync time! transport.py 558 DEBUG Unable to sync time with chrony server, assuming the time is in sync. Please check that 123 UDP port is opened, and any time server is on network. transport.py 558 DEBUG Checking DNS domain ipa.test, please wait ... transport.py 558 DEBUG transport.py 558 DEBUG The log file for this installation can be found in /var/log/ipaserver-install.log transport.py 558 DEBUG ============================================================================== transport.py 558 DEBUG This program will set up the FreeIPA Server. transport.py 558 DEBUG Version 4.7.90test transport.py 558 DEBUG transport.py 558 DEBUG This includes: transport.py 558 DEBUG * Configure a stand-alone CA (dogtag) for certificate management transport.py 558 DEBUG * Configure the NTP client (chronyd) transport.py 558 DEBUG * Create and configure an instance of Directory Server transport.py 558 DEBUG * Create and configure a Kerberos Key Distribution Center (KDC) transport.py 558 DEBUG * Configure Apache (httpd) transport.py 558 DEBUG * Configure DNS (bind) transport.py 558 DEBUG * Configure the KDC to enable PKINIT transport.py 558 DEBUG transport.py 558 DEBUG Warning: skipping DNS resolution of host master.ipa.test transport.py 558 DEBUG Checking DNS forwarders, please wait ... transport.py 558 DEBUG Using reverse zone(s) 121.168.192.in-addr.arpa. transport.py 558 DEBUG transport.py 558 DEBUG The IPA Master Server will be configured with: transport.py 558 DEBUG Hostname: master.ipa.test transport.py 558 DEBUG IP address(es): 192.168.121.162 transport.py 558 DEBUG Domain name: ipa.test transport.py 558 DEBUG Realm name: IPA.TEST transport.py 558 DEBUG transport.py 558 DEBUG The CA will be configured with: transport.py 558 DEBUG Subject DN: CN=Certificate Authority,O=IPA.TEST transport.py 558 DEBUG Subject base: O=IPA.TEST transport.py 558 DEBUG Chaining: self-signed transport.py 558 DEBUG transport.py 558 DEBUG BIND DNS server will be configured to serve IPA domain with: transport.py 558 DEBUG Forwarders: 192.168.121.1 transport.py 558 DEBUG Forward policy: only transport.py 558 DEBUG Reverse zone(s): 121.168.192.in-addr.arpa. transport.py 558 DEBUG transport.py 558 DEBUG Using default chrony configuration. transport.py 558 DEBUG Warning: IPA was unable to sync time with chrony! transport.py 558 DEBUG Time synchronization is required for IPA to work correctly transport.py 558 DEBUG Configuring directory server (dirsrv). Estimated time: 30 seconds transport.py 558 DEBUG [1/44]: creating directory server instance transport.py 558 DEBUG [2/44]: enabling ldapi transport.py 558 DEBUG [3/44]: configure autobind for root transport.py 558 DEBUG [4/44]: stopping directory server transport.py 558 DEBUG [5/44]: updating configuration in dse.ldif transport.py 558 DEBUG [6/44]: starting directory server transport.py 558 DEBUG [7/44]: adding default schema transport.py 558 DEBUG [8/44]: enabling memberof plugin transport.py 558 DEBUG [9/44]: enabling winsync plugin transport.py 558 DEBUG [10/44]: configuring replication version plugin transport.py 558 DEBUG [11/44]: enabling IPA enrollment plugin transport.py 558 DEBUG [12/44]: configuring uniqueness plugin transport.py 558 DEBUG [13/44]: configuring uuid plugin transport.py 558 DEBUG [14/44]: configuring modrdn plugin transport.py 558 DEBUG [15/44]: configuring DNS plugin transport.py 558 DEBUG [16/44]: enabling entryUSN plugin transport.py 558 DEBUG [17/44]: configuring lockout plugin transport.py 558 DEBUG [18/44]: configuring topology plugin transport.py 558 DEBUG [19/44]: creating indices transport.py 558 DEBUG [20/44]: enabling referential integrity plugin transport.py 558 DEBUG [21/44]: configuring certmap.conf transport.py 558 DEBUG [22/44]: configure new location for managed entries transport.py 558 DEBUG [23/44]: configure dirsrv ccache transport.py 558 DEBUG [24/44]: enabling SASL mapping fallback transport.py 558 DEBUG [25/44]: restarting directory server transport.py 558 DEBUG [26/44]: adding sasl mappings to the directory transport.py 558 DEBUG [27/44]: adding default layout transport.py 558 DEBUG [28/44]: adding delegation layout transport.py 558 DEBUG [29/44]: creating container for managed entries transport.py 558 DEBUG [30/44]: configuring user private groups transport.py 558 DEBUG [31/44]: configuring netgroups from hostgroups transport.py 558 DEBUG [32/44]: creating default Sudo bind user transport.py 558 DEBUG [33/44]: creating default Auto Member layout transport.py 558 DEBUG [34/44]: adding range check plugin transport.py 558 DEBUG [35/44]: creating default HBAC rule allow_all transport.py 558 DEBUG [36/44]: adding entries for topology management transport.py 558 DEBUG [37/44]: initializing group membership transport.py 558 DEBUG [38/44]: adding master entry transport.py 558 DEBUG [39/44]: initializing domain level transport.py 558 DEBUG [40/44]: configuring Posix uid/gid generation transport.py 558 DEBUG [41/44]: adding replication acis transport.py 558 DEBUG [42/44]: activating sidgen plugin transport.py 558 DEBUG [43/44]: activating extdom plugin transport.py 558 DEBUG [44/44]: configuring directory to start on boot transport.py 558 DEBUG Done configuring directory server (dirsrv). transport.py 558 DEBUG Configuring Kerberos KDC (krb5kdc) transport.py 558 DEBUG [1/10]: adding kerberos container to the directory transport.py 558 DEBUG [2/10]: configuring KDC transport.py 558 DEBUG [3/10]: initialize kerberos container transport.py 558 DEBUG [4/10]: adding default ACIs transport.py 558 DEBUG [5/10]: creating a keytab for the directory transport.py 558 DEBUG [6/10]: creating a keytab for the machine transport.py 558 DEBUG [7/10]: adding the password extension to the directory transport.py 558 DEBUG [8/10]: creating anonymous principal transport.py 558 DEBUG [9/10]: starting the KDC transport.py 558 DEBUG [10/10]: configuring KDC to start on boot transport.py 558 DEBUG Done configuring Kerberos KDC (krb5kdc). transport.py 558 DEBUG Configuring kadmin transport.py 558 DEBUG [1/2]: starting kadmin transport.py 558 DEBUG [2/2]: configuring kadmin to start on boot transport.py 558 DEBUG Done configuring kadmin. transport.py 558 DEBUG Configuring ipa-custodia transport.py 558 DEBUG [1/5]: Making sure custodia container exists transport.py 558 DEBUG [2/5]: Generating ipa-custodia config file transport.py 558 DEBUG [3/5]: Generating ipa-custodia keys transport.py 558 DEBUG [4/5]: starting ipa-custodia transport.py 558 DEBUG [5/5]: configuring ipa-custodia to start on boot transport.py 558 DEBUG Done configuring ipa-custodia. transport.py 558 DEBUG Configuring certificate server (pki-tomcatd). Estimated time: 3 minutes transport.py 558 DEBUG [1/28]: configuring certificate server instance transport.py 558 DEBUG [2/28]: exporting Dogtag certificate store pin transport.py 558 DEBUG [3/28]: stopping certificate server instance to update CS.cfg transport.py 558 DEBUG [4/28]: backing up CS.cfg transport.py 558 DEBUG [5/28]: disabling nonces transport.py 558 DEBUG [6/28]: set up CRL publishing transport.py 558 DEBUG [7/28]: enable PKIX certificate path discovery and validation transport.py 558 DEBUG [8/28]: starting certificate server instance transport.py 558 DEBUG [9/28]: configure certmonger for renewals transport.py 558 DEBUG [10/28]: requesting RA certificate from CA transport.py 558 DEBUG [11/28]: setting audit signing renewal to 2 years transport.py 558 DEBUG [12/28]: restarting certificate server transport.py 558 DEBUG [13/28]: publishing the CA certificate transport.py 558 DEBUG [14/28]: adding RA agent as a trusted user transport.py 558 DEBUG [15/28]: authorizing RA to modify profiles transport.py 558 DEBUG [16/28]: authorizing RA to manage lightweight CAs transport.py 558 DEBUG [17/28]: Ensure lightweight CAs container exists transport.py 558 DEBUG [18/28]: configure certificate renewals transport.py 558 DEBUG [19/28]: configure Server-Cert certificate renewal transport.py 558 DEBUG [20/28]: Configure HTTP to proxy connections transport.py 558 DEBUG [21/28]: restarting certificate server transport.py 558 DEBUG [22/28]: updating IPA configuration transport.py 558 DEBUG [23/28]: enabling CA instance transport.py 558 DEBUG [24/28]: migrating certificate profiles to LDAP transport.py 558 DEBUG [25/28]: importing IPA certificate profiles transport.py 558 DEBUG [26/28]: adding default CA ACL transport.py 558 DEBUG [27/28]: adding 'ipa' CA entry transport.py 558 DEBUG [28/28]: configuring certmonger renewal for lightweight CAs transport.py 558 DEBUG Done configuring certificate server (pki-tomcatd). transport.py 558 DEBUG Configuring directory server (dirsrv) transport.py 558 DEBUG [1/3]: configuring TLS for DS instance transport.py 558 DEBUG [2/3]: adding CA certificate entry transport.py 558 DEBUG [3/3]: restarting directory server transport.py 558 DEBUG Done configuring directory server (dirsrv). transport.py 558 DEBUG Configuring ipa-otpd transport.py 558 DEBUG [1/2]: starting ipa-otpd transport.py 558 DEBUG [2/2]: configuring ipa-otpd to start on boot transport.py 558 DEBUG Done configuring ipa-otpd. transport.py 558 DEBUG Configuring the web interface (httpd) transport.py 558 DEBUG [1/21]: stopping httpd transport.py 558 DEBUG [2/21]: backing up ssl.conf transport.py 558 DEBUG [3/21]: disabling nss.conf transport.py 558 DEBUG [4/21]: configuring mod_ssl certificate paths transport.py 558 DEBUG [5/21]: setting mod_ssl protocol list to TLSv1.0 - TLSv1.2 transport.py 558 DEBUG [6/21]: configuring mod_ssl log directory transport.py 558 DEBUG [7/21]: disabling mod_ssl OCSP transport.py 558 DEBUG [8/21]: adding URL rewriting rules transport.py 558 DEBUG [9/21]: configuring httpd transport.py 558 DEBUG [10/21]: setting up httpd keytab transport.py 558 DEBUG [11/21]: configuring Gssproxy transport.py 558 DEBUG [12/21]: setting up ssl transport.py 558 DEBUG [13/21]: configure certmonger for renewals transport.py 558 DEBUG [14/21]: publish CA cert transport.py 558 DEBUG [15/21]: clean up any existing httpd ccaches transport.py 558 DEBUG [16/21]: configuring SELinux for httpd transport.py 558 DEBUG [17/21]: create KDC proxy config transport.py 558 DEBUG [18/21]: enable KDC proxy transport.py 558 DEBUG [19/21]: starting httpd transport.py 558 DEBUG [20/21]: configuring httpd to start on boot transport.py 558 DEBUG [21/21]: enabling oddjobd transport.py 558 DEBUG Done configuring the web interface (httpd). transport.py 558 DEBUG Configuring Kerberos KDC (krb5kdc) transport.py 558 DEBUG [1/1]: installing X509 Certificate for PKINIT transport.py 558 DEBUG PKINIT certificate request failed: request timed out transport.py 558 DEBUG Full PKINIT configuration did not succeed transport.py 558 DEBUG Failed to configure PKINIT transport.py 558 DEBUG The setup will only install bits essential to the server functionality transport.py 558 DEBUG You can enable PKINIT after the setup completed using 'ipa-pkinit-manage' transport.py 558 DEBUG Done configuring Kerberos KDC (krb5kdc). transport.py 558 DEBUG Applying LDAP updates transport.py 558 DEBUG Upgrading IPA:. Estimated time: 1 minute 30 seconds transport.py 558 DEBUG [1/11]: stopping directory server transport.py 558 DEBUG [2/11]: saving configuration transport.py 558 DEBUG [3/11]: disabling listeners transport.py 558 DEBUG [4/11]: enabling DS global lock transport.py 558 DEBUG [5/11]: disabling Schema Compat transport.py 558 DEBUG [6/11]: starting directory server transport.py 558 DEBUG [7/11]: updating schema transport.py 558 DEBUG [8/11]: upgrading server transport.py 558 DEBUG [9/11]: stopping directory server transport.py 558 DEBUG [10/11]: restoring configuration transport.py 558 DEBUG [11/11]: starting directory server transport.py 558 DEBUG Done. transport.py 558 DEBUG Restarting the KDC transport.py 558 DEBUG Configuring DNS (named) transport.py 558 DEBUG [1/12]: generating rndc key file transport.py 558 DEBUG [2/12]: adding DNS container transport.py 558 DEBUG [3/12]: setting up our zone transport.py 558 DEBUG [4/12]: setting up reverse zone transport.py 558 DEBUG [5/12]: setting up our own record transport.py 558 DEBUG [6/12]: setting up records for other masters transport.py 558 DEBUG [7/12]: adding NS record to the zones transport.py 558 DEBUG [8/12]: setting up kerberos principal transport.py 558 DEBUG [9/12]: setting up named.conf transport.py 558 DEBUG [10/12]: setting up server configuration transport.py 558 DEBUG [11/12]: configuring named to start on boot transport.py 558 DEBUG [12/12]: changing resolv.conf to point to ourselves transport.py 558 DEBUG Done configuring DNS (named). transport.py 558 DEBUG Restarting the web server to pick up resolv.conf changes transport.py 558 DEBUG Configuring DNS key synchronization service (ipa-dnskeysyncd) transport.py 558 DEBUG [1/7]: checking status transport.py 558 DEBUG [2/7]: setting up bind-dyndb-ldap working directory transport.py 558 DEBUG [3/7]: setting up kerberos principal transport.py 558 DEBUG [4/7]: setting up SoftHSM transport.py 558 DEBUG [5/7]: adding DNSSEC containers transport.py 558 DEBUG [6/7]: creating replica keys transport.py 558 DEBUG [7/7]: configuring ipa-dnskeysyncd to start on boot transport.py 558 DEBUG Done configuring DNS key synchronization service (ipa-dnskeysyncd). transport.py 558 DEBUG Restarting ipa-dnskeysyncd transport.py 558 DEBUG Restarting named transport.py 558 DEBUG Updating DNS system records transport.py 558 DEBUG Configuring client side components transport.py 558 DEBUG Using existing certificate '/etc/ipa/ca.crt'. transport.py 558 DEBUG Client hostname: master.ipa.test transport.py 558 DEBUG Realm: IPA.TEST transport.py 558 DEBUG DNS Domain: ipa.test transport.py 558 DEBUG IPA Server: master.ipa.test transport.py 558 DEBUG BaseDN: dc=ipa,dc=test transport.py 558 DEBUG Configured sudoers in /etc/nsswitch.conf transport.py 558 DEBUG Configured /etc/sssd/sssd.conf transport.py 558 DEBUG Systemwide CA database updated. transport.py 558 DEBUG Adding SSH public key from /etc/ssh/ssh_host_ed25519_key.pub transport.py 558 DEBUG Adding SSH public key from /etc/ssh/ssh_host_rsa_key.pub transport.py 558 DEBUG Adding SSH public key from /etc/ssh/ssh_host_ecdsa_key.pub transport.py 558 DEBUG SSSD enabled transport.py 558 DEBUG Configured /etc/openldap/ldap.conf transport.py 558 DEBUG Configured /etc/ssh/ssh_config transport.py 558 DEBUG Configured /etc/ssh/sshd_config transport.py 558 DEBUG Configuring ipa.test as NIS domain. transport.py 558 DEBUG Client configuration complete. transport.py 558 DEBUG The ipa-client-install command was successful transport.py 558 DEBUG This program will set up FreeIPA client. transport.py 558 DEBUG Version 4.7.90test transport.py 558 DEBUG transport.py 558 DEBUG transport.py 558 DEBUG The ipa-server-install command was successful transport.py 558 DEBUG transport.py 558 DEBUG ============================================================================== transport.py 558 DEBUG Setup complete transport.py 558 DEBUG transport.py 558 DEBUG Next steps: transport.py 558 DEBUG 1. You must make sure these network ports are open: transport.py 558 DEBUG TCP Ports: transport.py 558 DEBUG * 80, 443: HTTP/HTTPS transport.py 558 DEBUG * 389, 636: LDAP/LDAPS transport.py 558 DEBUG * 88, 464: kerberos transport.py 558 DEBUG * 53: bind transport.py 558 DEBUG UDP Ports: transport.py 558 DEBUG * 88, 464: kerberos transport.py 558 DEBUG * 53: bind transport.py 558 DEBUG * 123: ntp transport.py 558 DEBUG transport.py 558 DEBUG 2. You can now obtain a kerberos ticket using the command: 'kinit admin' transport.py 558 DEBUG This ticket will allow you to use the IPA tools (e.g., ipa user-add) transport.py 558 DEBUG and the web user interface. transport.py 558 DEBUG transport.py 558 DEBUG Be sure to back up the CA certificates stored in /root/cacert.p12 transport.py 558 DEBUG These files are required to create replicas. The password for these transport.py 558 DEBUG files is the Directory Manager password transport.py 217 DEBUG Exit code: 0 tasks.py 266 INFO Set LDAP debug level transport.py 318 INFO RUN ['ldapmodify', '-x', '-D', 'cn=Directory Manager', '-w', 'Secret.123', '-h', 'master.ipa.test'] transport.py 513 DEBUG RUN ['ldapmodify', '-x', '-D', 'cn=Directory Manager', '-w', 'Secret.123', '-h', 'master.ipa.test'] transport.py 558 DEBUG modifying entry "cn=config" transport.py 558 DEBUG transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['sed', '-i', '/debug_level = 7/d', '/etc/sssd/sssd.conf'] transport.py 513 DEBUG RUN ['sed', '-i', '/debug_level = 7/d', '/etc/sssd/sssd.conf'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['sed', '-i', '/\\[*\\]/ a\\debug_level = 7', '/etc/sssd/sssd.conf'] transport.py 513 DEBUG RUN ['sed', '-i', '/\\[*\\]/ a\\debug_level = 7', '/etc/sssd/sssd.conf'] transport.py 217 DEBUG Exit code: 0 __init__.py 244 INFO Adding master.ipa.test:/var/log/sssd to list of logs to collect transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['kinit', 'admin'] transport.py 513 DEBUG RUN ['kinit', 'admin'] transport.py 558 DEBUG Password for admin@IPA.TEST: transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'dnszone-mod', 'ipa.test', '--default-ttl', '1', '--ttl', '1'] transport.py 513 DEBUG RUN ['ipa', 'dnszone-mod', 'ipa.test', '--default-ttl', '1', '--ttl', '1'] transport.py 558 DEBUG ipa: WARNING: Service named-pkcs11.service requires restart on IPA server <all IPA DNS servers> to apply configuration changes. transport.py 558 DEBUG Zone name: ipa.test. transport.py 558 DEBUG Active zone: TRUE transport.py 558 DEBUG Authoritative nameserver: master.ipa.test. transport.py 558 DEBUG Administrator e-mail address: hostmaster.ipa.test. transport.py 558 DEBUG SOA serial: 1535578120 transport.py 558 DEBUG SOA refresh: 3600 transport.py 558 DEBUG SOA retry: 900 transport.py 558 DEBUG SOA expire: 1209600 transport.py 558 DEBUG SOA minimum: 3600 transport.py 558 DEBUG Time to live: 1 transport.py 558 DEBUG Default time to live: 1 transport.py 558 DEBUG Allow query: any; transport.py 558 DEBUG Allow transfer: none; transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'dnsrecord-show', 'ipa.test', 'client0.ipa.test.'] transport.py 513 DEBUG RUN ['ipa', 'dnsrecord-show', 'ipa.test', 'client0.ipa.test.'] transport.py 558 DEBUG ipa: ERROR: client0.ipa.test.: DNS resource record not found transport.py 217 DEBUG Exit code: 2 transport.py 318 INFO RUN ['ipa', 'dnsrecord-add', 'ipa.test', 'client0.ipa.test.', '--a-rec', '192.168.121.165'] transport.py 513 DEBUG RUN ['ipa', 'dnsrecord-add', 'ipa.test', 'client0.ipa.test.', '--a-rec', '192.168.121.165'] transport.py 558 DEBUG Record name: client0 transport.py 558 DEBUG A record: 192.168.121.165 transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'dnsrecord-show', 'ipa.test', 'master.ipa.test.'] transport.py 513 DEBUG RUN ['ipa', 'dnsrecord-show', 'ipa.test', 'master.ipa.test.'] transport.py 558 DEBUG Record name: master transport.py 558 DEBUG A record: 192.168.121.162 transport.py 558 DEBUG SSHFP record: 4 1 9AE6A724EAED02B09AABD926CC49FA4A0E4D9562, 4 2 9221E8F7CAD7ABC8390568370FD0A851944834177342774D3999100B 63C66B86, 1 1 401C077B9B9D6D44398FFA81F3C89617C25D7717, 1 2 09A9578A07C0BFBE02F0307369EFB907D677B35A859DAFCC965C3849 B96B9BB4, 3 1 8AAA06D0E7734AB9664D89B61BFF057DD8A77E98, 3 2 F3952A16C22FE37F1D7036FC5E84FC2E15AD48596B3DEFDE90CFF131 CB155E86 transport.py 217 DEBUG Exit code: 0 tasks.py 1128 INFO Installing client <Host master.ipa.test (master)> on <Host client0.ipa.test (client)> __init__.py 244 INFO Adding client0.ipa.test:/var/log/ipaclient-install.log to list of logs to collect transport.py 318 INFO RUN ['true'] transport.py 513 DEBUG RUN ['true'] transport.py 217 DEBUG Exit code: 0 __init__.py 244 INFO Adding client0.ipa.test:/ipatests/env.sh to list of logs to collect transport.py 301 DEBUG STAT /ipatests transport.py 293 INFO WRITE /ipatests/env.sh transport.py 301 DEBUG STAT /etc/hostname transport.py 301 DEBUG STAT /ipatests/file_backup/etc transport.py 301 DEBUG STAT /ipatests/file_backup transport.py 301 DEBUG STAT /ipatests transport.py 312 INFO MKDIR /ipatests/file_backup transport.py 312 INFO MKDIR /ipatests/file_backup/etc transport.py 318 INFO RUN ['cp', '-af', '/etc/hostname', '/ipatests/file_backup/etc/hostname'] transport.py 513 DEBUG RUN ['cp', '-af', '/etc/hostname', '/ipatests/file_backup/etc/hostname'] transport.py 217 DEBUG Exit code: 0 transport.py 293 INFO WRITE /etc/hostname transport.py 318 INFO RUN ['hostname', 'client0.ipa.test'] transport.py 513 DEBUG RUN ['hostname', 'client0.ipa.test'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN hostname > '/ipatests/backup_hostname' transport.py 513 DEBUG RUN hostname > '/ipatests/backup_hostname' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['kinit', 'admin'] transport.py 513 DEBUG RUN ['kinit', 'admin'] transport.py 558 DEBUG Password for admin@IPA.TEST: transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'dnsconfig-mod', '--allow-sync-ptr=true'] transport.py 513 DEBUG RUN ['ipa', 'dnsconfig-mod', '--allow-sync-ptr=true'] transport.py 558 DEBUG Allow PTR sync: TRUE transport.py 558 DEBUG IPA DNS servers: master.ipa.test transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'dnszone-add', '121.168.192.in-addr.arpa.'] transport.py 513 DEBUG RUN ['ipa', 'dnszone-add', '121.168.192.in-addr.arpa.'] transport.py 558 DEBUG ipa: ERROR: DNS zone with name "121.168.192.in-addr.arpa." already exists transport.py 217 DEBUG Exit code: 1 tasks.py 143 WARNING ipa: ERROR: DNS zone with name "121.168.192.in-addr.arpa." already exists transport.py 318 INFO RUN ['ipa-client-install', '-U', '--domain', 'ipa.test', '--realm', 'IPA.TEST', '-p', 'admin', '-w', 'Secret.123', '--server', 'master.ipa.test'] transport.py 513 DEBUG RUN ['ipa-client-install', '-U', '--domain', 'ipa.test', '--realm', 'IPA.TEST', '-p', 'admin', '-w', 'Secret.123', '--server', 'master.ipa.test'] transport.py 558 DEBUG Client hostname: client0.ipa.test transport.py 558 DEBUG Realm: IPA.TEST transport.py 558 DEBUG DNS Domain: ipa.test transport.py 558 DEBUG IPA Server: master.ipa.test transport.py 558 DEBUG BaseDN: dc=ipa,dc=test transport.py 558 DEBUG Synchronizing time transport.py 558 DEBUG No SRV records of NTP servers found and no NTP server or pool address was provided. transport.py 558 DEBUG Attempting to sync time with chronyc. transport.py 558 DEBUG Process chronyc waitsync failed to sync time! transport.py 558 DEBUG Unable to sync time with chrony server, assuming the time is in sync. Please check that 123 UDP port is opened, and any time server is on network. transport.py 558 DEBUG Successfully retrieved CA cert transport.py 558 DEBUG Subject: CN=Certificate Authority,O=IPA.TEST transport.py 558 DEBUG Issuer: CN=Certificate Authority,O=IPA.TEST transport.py 558 DEBUG Valid From: 2018-08-29 21:16:44 transport.py 558 DEBUG Valid Until: 2038-08-29 21:16:44 transport.py 558 DEBUG transport.py 558 DEBUG Enrolled in IPA realm IPA.TEST transport.py 558 DEBUG Created /etc/ipa/default.conf transport.py 558 DEBUG Configured sudoers in /etc/nsswitch.conf transport.py 558 DEBUG Configured /etc/sssd/sssd.conf transport.py 558 DEBUG Configured /etc/krb5.conf for IPA realm IPA.TEST transport.py 558 DEBUG Systemwide CA database updated. transport.py 558 DEBUG Hostname (client0.ipa.test) does not have A/AAAA record. transport.py 558 DEBUG Failed to update DNS records. transport.py 558 DEBUG Missing A/AAAA record(s) for host client0.ipa.test: 192.168.121.165. transport.py 558 DEBUG Missing reverse record(s) for address(es): 192.168.121.165. transport.py 558 DEBUG Adding SSH public key from /etc/ssh/ssh_host_ed25519_key.pub transport.py 558 DEBUG Adding SSH public key from /etc/ssh/ssh_host_rsa_key.pub transport.py 558 DEBUG Adding SSH public key from /etc/ssh/ssh_host_ecdsa_key.pub transport.py 558 DEBUG Could not update DNS SSHFP records. transport.py 558 DEBUG SSSD enabled transport.py 558 DEBUG Configured /etc/openldap/ldap.conf transport.py 558 DEBUG Configured /etc/ssh/ssh_config transport.py 558 DEBUG Configured /etc/ssh/sshd_config transport.py 558 DEBUG Configuring ipa.test as NIS domain. transport.py 558 DEBUG Client configuration complete. transport.py 558 DEBUG The ipa-client-install command was successful transport.py 558 DEBUG This program will set up FreeIPA client. transport.py 558 DEBUG Version 4.7.90test transport.py 558 DEBUG transport.py 558 DEBUG transport.py 558 DEBUG Using default chrony configuration. transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['sed', '-i', '/debug_level = 7/d', '/etc/sssd/sssd.conf'] transport.py 513 DEBUG RUN ['sed', '-i', '/debug_level = 7/d', '/etc/sssd/sssd.conf'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['sed', '-i', '/\\[*\\]/ a\\debug_level = 7', '/etc/sssd/sssd.conf'] transport.py 513 DEBUG RUN ['sed', '-i', '/\\[*\\]/ a\\debug_level = 7', '/etc/sssd/sssd.conf'] transport.py 217 DEBUG Exit code: 0 __init__.py 244 INFO Adding client0.ipa.test:/var/log/sssd to list of logs to collect transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['kinit', 'admin'] transport.py 513 DEBUG RUN ['kinit', 'admin'] transport.py 558 DEBUG Password for admin@IPA.TEST: transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['hostname', '-s'] transport.py 513 DEBUG RUN ['hostname', '-s'] transport.py 558 DEBUG client0 transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'user-add', 'testuser1', '--first', 'Test', '--last', 'User1'] transport.py 513 DEBUG RUN ['ipa', 'user-add', 'testuser1', '--first', 'Test', '--last', 'User1'] transport.py 558 DEBUG ---------------------- transport.py 558 DEBUG Added user "testuser1" transport.py 558 DEBUG ---------------------- transport.py 558 DEBUG User login: testuser1 transport.py 558 DEBUG First name: Test transport.py 558 DEBUG Last name: User1 transport.py 558 DEBUG Full name: Test User1 transport.py 558 DEBUG Display name: Test User1 transport.py 558 DEBUG Initials: TU transport.py 558 DEBUG Home directory: /home/testuser1 transport.py 558 DEBUG GECOS: Test User1 transport.py 558 DEBUG Login shell: /bin/sh transport.py 558 DEBUG Principal name: testuser1@IPA.TEST transport.py 558 DEBUG Principal alias: testuser1@IPA.TEST transport.py 558 DEBUG Email address: testuser1@ipa.test transport.py 558 DEBUG UID: 390400001 transport.py 558 DEBUG GID: 390400001 transport.py 558 DEBUG Password: False transport.py 558 DEBUG Member of groups: ipausers transport.py 558 DEBUG Kerberos keys available: False transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'group-add', 'testgroup1', '--desc', '"1. testing group"'] transport.py 513 DEBUG RUN ['ipa', 'group-add', 'testgroup1', '--desc', '"1. testing group"'] transport.py 558 DEBUG ------------------------ transport.py 558 DEBUG Added group "testgroup1" transport.py 558 DEBUG ------------------------ transport.py 558 DEBUG Group name: testgroup1 transport.py 558 DEBUG Description: "1. testing group" transport.py 558 DEBUG GID: 390400003 transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'group-add-member', 'testgroup1', '--users', 'testuser1'] transport.py 513 DEBUG RUN ['ipa', 'group-add-member', 'testgroup1', '--users', 'testuser1'] transport.py 558 DEBUG Group name: testgroup1 transport.py 558 DEBUG Description: "1. testing group" transport.py 558 DEBUG GID: 390400003 transport.py 558 DEBUG Member users: testuser1 transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'user-add', 'testuser2', '--first', 'Test', '--last', 'User2'] transport.py 513 DEBUG RUN ['ipa', 'user-add', 'testuser2', '--first', 'Test', '--last', 'User2'] transport.py 558 DEBUG ---------------------- transport.py 558 DEBUG Added user "testuser2" transport.py 558 DEBUG ---------------------- transport.py 558 DEBUG User login: testuser2 transport.py 558 DEBUG First name: Test transport.py 558 DEBUG Last name: User2 transport.py 558 DEBUG Full name: Test User2 transport.py 558 DEBUG Display name: Test User2 transport.py 558 DEBUG Initials: TU transport.py 558 DEBUG Home directory: /home/testuser2 transport.py 558 DEBUG GECOS: Test User2 transport.py 558 DEBUG Login shell: /bin/sh transport.py 558 DEBUG Principal name: testuser2@IPA.TEST transport.py 558 DEBUG Principal alias: testuser2@IPA.TEST transport.py 558 DEBUG Email address: testuser2@ipa.test transport.py 558 DEBUG UID: 390400004 transport.py 558 DEBUG GID: 390400004 transport.py 558 DEBUG Password: False transport.py 558 DEBUG Member of groups: ipausers transport.py 558 DEBUG Kerberos keys available: False transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'group-add', 'testgroup2', '--desc', '"2. testing group"'] transport.py 513 DEBUG RUN ['ipa', 'group-add', 'testgroup2', '--desc', '"2. testing group"'] transport.py 558 DEBUG ------------------------ transport.py 558 DEBUG Added group "testgroup2" transport.py 558 DEBUG ------------------------ transport.py 558 DEBUG Group name: testgroup2 transport.py 558 DEBUG Description: "2. testing group" transport.py 558 DEBUG GID: 390400005 transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'group-add-member', 'testgroup2', '--users', 'testuser2'] transport.py 513 DEBUG RUN ['ipa', 'group-add-member', 'testgroup2', '--users', 'testuser2'] transport.py 558 DEBUG Group name: testgroup2 transport.py 558 DEBUG Description: "2. testing group" transport.py 558 DEBUG GID: 390400005 transport.py 558 DEBUG Member users: testuser2 transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'hostgroup-add', 'testhostgroup', '--desc', '"Contains client"'] transport.py 513 DEBUG RUN ['ipa', 'hostgroup-add', 'testhostgroup', '--desc', '"Contains client"'] transport.py 558 DEBUG ------------------------------- transport.py 558 DEBUG Added hostgroup "testhostgroup" transport.py 558 DEBUG ------------------------------- transport.py 558 DEBUG Host-group: testhostgroup transport.py 558 DEBUG Description: "Contains client" transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'hostgroup-add-member', 'testhostgroup', '--hosts', 'client0.ipa.test'] transport.py 513 DEBUG RUN ['ipa', 'hostgroup-add-member', 'testhostgroup', '--hosts', 'client0.ipa.test'] transport.py 558 DEBUG Host-group: testhostgroup transport.py 558 DEBUG Description: "Contains client" transport.py 558 DEBUG Member hosts: client0.ipa.test transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['groupadd', 'localgroup'] transport.py 513 DEBUG RUN ['groupadd', 'localgroup'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['useradd', '-M', '-G', 'localgroup', 'localuser'] transport.py 513 DEBUG RUN ['useradd', '-M', '-G', 'localgroup', 'localuser'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add', 'defaults'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add', 'defaults'] transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Added Sudo Rule "defaults" transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Rule name: defaults transport.py 558 DEBUG Enabled: TRUE transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-option', 'defaults', '--sudooption', '!authenticate'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-option', 'defaults', '--sudooption', '!authenticate'] transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Added option "!authenticate" to Sudo Rule "defaults" transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Rule name: defaults transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN nisdomainname transport.py 513 DEBUG RUN nisdomainname transport.py 558 DEBUG ipa.test transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_add_sudo_commands 3.54
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudocmd-add', '/usr/bin/cat'] transport.py 513 DEBUG RUN ['ipa', 'sudocmd-add', '/usr/bin/cat'] transport.py 558 DEBUG --------------------------------- transport.py 558 DEBUG Added Sudo Command "/usr/bin/cat" transport.py 558 DEBUG --------------------------------- transport.py 558 DEBUG Sudo Command: /usr/bin/cat transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudocmd-add', '/usr/bin/tail'] transport.py 513 DEBUG RUN ['ipa', 'sudocmd-add', '/usr/bin/tail'] transport.py 558 DEBUG ---------------------------------- transport.py 558 DEBUG Added Sudo Command "/usr/bin/tail" transport.py 558 DEBUG ---------------------------------- transport.py 558 DEBUG Sudo Command: /usr/bin/tail transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudocmd-add', '/usr/bin/yum'] transport.py 513 DEBUG RUN ['ipa', 'sudocmd-add', '/usr/bin/yum'] transport.py 558 DEBUG --------------------------------- transport.py 558 DEBUG Added Sudo Command "/usr/bin/yum" transport.py 558 DEBUG --------------------------------- transport.py 558 DEBUG Sudo Command: /usr/bin/yum transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_add_sudo_command_groups 3.36
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudocmdgroup-add', 'readers', '--desc', '"Applications that read"'] transport.py 513 DEBUG RUN ['ipa', 'sudocmdgroup-add', 'readers', '--desc', '"Applications that read"'] transport.py 558 DEBUG ---------------------------------- transport.py 558 DEBUG Added Sudo Command Group "readers" transport.py 558 DEBUG ---------------------------------- transport.py 558 DEBUG Sudo Command Group: readers transport.py 558 DEBUG Description: "Applications that read" transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudocmdgroup-add-member', 'readers', '--sudocmds', '/usr/bin/cat'] transport.py 513 DEBUG RUN ['ipa', 'sudocmdgroup-add-member', 'readers', '--sudocmds', '/usr/bin/cat'] transport.py 558 DEBUG Sudo Command Group: readers transport.py 558 DEBUG Description: "Applications that read" transport.py 558 DEBUG Member Sudo commands: /usr/bin/cat transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudocmdgroup-add-member', 'readers', '--sudocmds', '/usr/bin/tail'] transport.py 513 DEBUG RUN ['ipa', 'sudocmdgroup-add-member', 'readers', '--sudocmds', '/usr/bin/tail'] transport.py 558 DEBUG Sudo Command Group: readers transport.py 558 DEBUG Description: "Applications that read" transport.py 558 DEBUG Member Sudo commands: /usr/bin/cat, /usr/bin/tail transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_create_allow_all_rule 2.25
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Added Sudo Rule "testrule" transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Added option "!authenticate" to Sudo Rule "testrule" transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_add_sudo_rule 22.30
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG (ALL : ALL) NOPASSWD: ALL transport.py 217 DEBUG Exit code: 0 transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser2 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser2 transport.py 558 DEBUG Matching Defaults entries for testuser2 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser2 may run the following commands on client0: transport.py 558 DEBUG (ALL : ALL) NOPASSWD: ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_user_setup 2.29
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat='] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat='] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Modified Sudo Rule "testrule" transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-user', 'testrule', '--users', 'testuser1'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-user', 'testrule', '--users', 'testuser1'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Users: testuser1 transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_user 22.27
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG (ALL : ALL) NOPASSWD: ALL transport.py 217 DEBUG Exit code: 0 transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser2 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser2 transport.py 558 DEBUG Sorry, user testuser2 may not run sudo on client0. transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_user_without_defaults_rule 12.29
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-disable', 'defaults'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-disable', 'defaults'] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Disabled Sudo Rule "defaults" transport.py 558 DEBUG ----------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser2 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser2 transport.py 558 DEBUG sudo: a password is required transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_user 1.13
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: user category cannot be set to 'all' while there are allowed users transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_user_teardown 2.43
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-user', 'testrule', '--users', 'testuser1'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-user', 'testrule', '--users', 'testuser1'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-enable', 'defaults'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-enable', 'defaults'] transport.py 558 DEBUG ---------------------------- transport.py 558 DEBUG Enabled Sudo Rule "defaults" transport.py 558 DEBUG ---------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_group_setup 1.05
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-user', 'testrule', '--groups', 'testgroup2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-user', 'testrule', '--groups', 'testgroup2'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG User Groups: testgroup2 transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_group 22.40
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Sorry, user testuser1 may not run sudo on client0. transport.py 217 DEBUG Exit code: 1 transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser2 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser2 transport.py 558 DEBUG Matching Defaults entries for testuser2 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser2 may run the following commands on client0: transport.py 558 DEBUG (ALL : ALL) NOPASSWD: ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_user_group 1.14
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: user category cannot be set to 'all' while there are allowed users transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_group_teardown 1.45
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-user', 'testrule', '--groups', 'testgroup2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-user', 'testrule', '--groups', 'testgroup2'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_host_negative_setup 6.72
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-del', 'testrule'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-del', 'testrule'] transport.py 558 DEBUG ---------------------------- transport.py 558 DEBUG Deleted Sudo Rule "testrule" transport.py 558 DEBUG ---------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add', 'testrule'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add', 'testrule'] transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Added Sudo Rule "testrule" transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Added option "!authenticate" to Sudo Rule "testrule" transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Modified Sudo Rule "testrule" transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--hostcat='] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--hostcat='] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Modified Sudo Rule "testrule" transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-host', 'testrule', '--hosts', 'master.ipa.test'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-host', 'testrule', '--hosts', 'master.ipa.test'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Hosts: master.ipa.test transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_host_negative 11.17
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Sorry, user testuser1 may not run sudo on client0. transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_host_negative_teardown 1.60
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-host', 'testrule', '--hosts', 'master.ipa.test'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-host', 'testrule', '--hosts', 'master.ipa.test'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_host_setup 2.26
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--hostcat='] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--hostcat='] transport.py 558 DEBUG ipa: ERROR: no modifications to be performed transport.py 217 DEBUG Exit code: 1 transport.py 318 INFO RUN ['ipa', 'sudorule-add-host', 'testrule', '--hosts', 'client0.ipa.test'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-host', 'testrule', '--hosts', 'client0.ipa.test'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Hosts: client0.ipa.test transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_host 11.15
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG (ALL : ALL) NOPASSWD: ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_host 1.19
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: host category cannot be set to 'all' while there are allowed hosts transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_host_teardown 1.41
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-host', 'testrule', '--hosts', 'client0.ipa.test'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-host', 'testrule', '--hosts', 'client0.ipa.test'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_hostgroup_setup 1.17
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-host', 'testrule', '--hostgroups', 'testhostgroup'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-host', 'testrule', '--hostgroups', 'testhostgroup'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Host Groups: testhostgroup transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_hostgroup 11.15
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG (ALL : ALL) NOPASSWD: ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_host_group 1.04
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: host category cannot be set to 'all' while there are allowed hosts transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_hostgroup_teardown 1.32
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-host', 'testrule', '--hostgroups', 'testhostgroup'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-host', 'testrule', '--hostgroups', 'testhostgroup'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_hostmask_setup 1.12
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ip', 'addr'] transport.py 513 DEBUG RUN ['ip', 'addr'] transport.py 558 DEBUG 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 transport.py 558 DEBUG link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 transport.py 558 DEBUG inet 127.0.0.1/8 scope host lo transport.py 558 DEBUG valid_lft forever preferred_lft forever transport.py 558 DEBUG inet6 ::1/128 scope host transport.py 558 DEBUG valid_lft forever preferred_lft forever transport.py 558 DEBUG 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 transport.py 558 DEBUG link/ether 52:54:00:0b:b0:7b brd ff:ff:ff:ff:ff:ff transport.py 558 DEBUG inet 192.168.121.165/24 brd 192.168.121.255 scope global dynamic noprefixroute eth0 transport.py 558 DEBUG valid_lft 2242sec preferred_lft 2242sec transport.py 558 DEBUG inet6 fe80::5054:ff:fe0b:b07b/64 scope link transport.py 558 DEBUG valid_lft forever preferred_lft forever transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', '-n', 'sudorule-add-host', 'testrule', '--hostmask', '192.168.121.165/24'] transport.py 513 DEBUG RUN ['ipa', '-n', 'sudorule-add-host', 'testrule', '--hostmask', '192.168.121.165/24'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Host Masks: 192.168.121.0/24 transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 284 DEBUG READ /etc/sssd/sssd.conf transport.py 293 INFO WRITE /etc/sssd/sssd.conf
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_hostmask 11.25
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG (ALL : ALL) NOPASSWD: ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_host_mask 1.11
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: host category cannot be set to 'all' while there are allowed hosts transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_hostmask_teardown 1.52
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ip', 'addr'] transport.py 513 DEBUG RUN ['ip', 'addr'] transport.py 558 DEBUG 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 transport.py 558 DEBUG link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 transport.py 558 DEBUG inet 127.0.0.1/8 scope host lo transport.py 558 DEBUG valid_lft forever preferred_lft forever transport.py 558 DEBUG inet6 ::1/128 scope host transport.py 558 DEBUG valid_lft forever preferred_lft forever transport.py 558 DEBUG 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 transport.py 558 DEBUG link/ether 52:54:00:0b:b0:7b brd ff:ff:ff:ff:ff:ff transport.py 558 DEBUG inet 192.168.121.165/24 brd 192.168.121.255 scope global dynamic noprefixroute eth0 transport.py 558 DEBUG valid_lft 2211sec preferred_lft 2211sec transport.py 558 DEBUG inet6 fe80::5054:ff:fe0b:b07b/64 scope link transport.py 558 DEBUG valid_lft forever preferred_lft forever transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', '-n', 'sudorule-remove-host', 'testrule', '--hostmask', '192.168.121.165/24'] transport.py 513 DEBUG RUN ['ipa', '-n', 'sudorule-remove-host', 'testrule', '--hostmask', '192.168.121.165/24'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Host Masks: transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_hostmask_negative_setup 1.12
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', '-n', 'sudorule-add-host', 'testrule', '--hostmask', '192.168.121.162/32'] transport.py 513 DEBUG RUN ['ipa', '-n', 'sudorule-add-host', 'testrule', '--hostmask', '192.168.121.162/32'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Host Masks: 192.168.121.162/32 transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_hostmask_negative 11.18
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Sorry, user testuser1 may not run sudo on client0. transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_hostmask_negative_teardown 1.53
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', '-n', 'sudorule-remove-host', 'testrule', '--hostmask', '192.168.121.162/32'] transport.py 513 DEBUG RUN ['ipa', '-n', 'sudorule-remove-host', 'testrule', '--hostmask', '192.168.121.162/32'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Host Masks: transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 284 DEBUG READ /etc/sssd/sssd.conf transport.py 293 INFO WRITE /etc/sssd/sssd.conf
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_command_setup 6.81
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-del', 'testrule'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-del', 'testrule'] transport.py 558 DEBUG ---------------------------- transport.py 558 DEBUG Deleted Sudo Rule "testrule" transport.py 558 DEBUG ---------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add', 'testrule'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add', 'testrule'] transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Added Sudo Rule "testrule" transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Added option "!authenticate" to Sudo Rule "testrule" transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Modified Sudo Rule "testrule" transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--cmdcat='] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--cmdcat='] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Modified Sudo Rule "testrule" transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-allow-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-allow-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Allow Commands: /usr/bin/yum transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_one_command 11.18
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG (ALL : ALL) NOPASSWD: /usr/bin/yum transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_command_and_command_group_setup 1.15
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-allow-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-allow-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Allow Commands: /usr/bin/yum transport.py 558 DEBUG Sudo Allow Command Groups: readers transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_command_and_command_group 11.21
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -l -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -l -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG (ALL : ALL) NOPASSWD: /usr/bin/tail, /usr/bin/cat, /usr/bin/yum transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_command 1.11
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: command category cannot be set to 'all' while there are allowed commands transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_command_and_command_group_teardown 2.77
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-allow-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-allow-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Allow Command Groups: readers transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-remove-allow-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-allow-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_user_setup 7.02
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-del', 'testrule'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-del', 'testrule'] transport.py 558 DEBUG ---------------------------- transport.py 558 DEBUG Deleted Sudo Rule "testrule" transport.py 558 DEBUG ---------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add', 'testrule'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add', 'testrule'] transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Added Sudo Rule "testrule" transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Added option "!authenticate" to Sudo Rule "testrule" transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Modified Sudo Rule "testrule" transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--runasusercat='] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--runasusercat='] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Modified Sudo Rule "testrule" transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--runasgroupcat='] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--runasgroupcat='] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Modified Sudo Rule "testrule" transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--users', 'testuser2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--users', 'testuser2'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs Users: testuser2 transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_user 11.22
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -ll -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -ll -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG transport.py 558 DEBUG LDAP Role: testrule transport.py 558 DEBUG RunAsUsers: testuser2 transport.py 558 DEBUG Options: !authenticate transport.py 558 DEBUG Commands: transport.py 558 DEBUG ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_runasuser 1.12
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: runAs user category cannot be set to 'all' while there are allowed runAs users transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_user_teardown 1.43
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-runasuser', 'testrule', '--users', 'testuser2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-runasuser', 'testrule', '--users', 'testuser2'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_local_user_setup 1.14
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--users', 'localuser'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--users', 'localuser'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs External User: localuser transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_local_user 11.18
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -ll -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -ll -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG transport.py 558 DEBUG LDAP Role: testrule transport.py 558 DEBUG RunAsUsers: localuser transport.py 558 DEBUG Options: !authenticate transport.py 558 DEBUG Commands: transport.py 558 DEBUG ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_runasuser_local 1.14
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: runAs user category cannot be set to 'all' while there are allowed runAs users transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_user_local_tear 1.48
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-runasuser', 'testrule', '--users', 'localuser'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-runasuser', 'testrule', '--users', 'localuser'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs External User: transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_users_from_group_setup 1.14
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--groups', 'testgroup2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--groups', 'testgroup2'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG Groups of RunAs Users: testgroup2 transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_users_from_group 11.16
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -ll -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -ll -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG transport.py 558 DEBUG LDAP Role: testrule transport.py 558 DEBUG RunAsUsers: %testgroup2 transport.py 558 DEBUG Options: !authenticate transport.py 558 DEBUG Commands: transport.py 558 DEBUG ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_runasuser_group 1.23
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: runAs user category cannot be set to 'all' while there are allowed runAs users transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_users_from_group_teardown 1.41
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-runasuser', 'testrule', '--groups', 'testgroup2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-runasuser', 'testrule', '--groups', 'testgroup2'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_run_as_users_from_local_group_setup 1.12
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--groups', 'localgroup'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--groups', 'localgroup'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG External Groups of RunAs Users: localgroup transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_run_as_users_from_local_group 11.20
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -ll -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -ll -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG transport.py 558 DEBUG LDAP Role: testrule transport.py 558 DEBUG RunAsUsers: %localgroup transport.py 558 DEBUG Options: !authenticate transport.py 558 DEBUG Commands: transport.py 558 DEBUG ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_set_category_to_all_with_valid_entries_runasuser_group_local 1.01
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: runAs user category cannot be set to 'all' while there are allowed runAs users transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_run_as_users_from_local_group_tear 1.38
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-runasuser', 'testrule', '--groups', 'localgroup'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-runasuser', 'testrule', '--groups', 'localgroup'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG External Groups of RunAs Users: transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_group_setup 1.11
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-runasgroup', 'testrule', '--groups', 'testgroup2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-runasgroup', 'testrule', '--groups', 'testgroup2'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs Groups: testgroup2 transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_group 11.28
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -ll -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -ll -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG transport.py 558 DEBUG LDAP Role: testrule transport.py 558 DEBUG RunAsUsers: testuser1 transport.py 558 DEBUG RunAsGroups: testgroup2 transport.py 558 DEBUG Options: !authenticate transport.py 558 DEBUG Commands: transport.py 558 DEBUG ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_runasgroup 1.15
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: group runAs category cannot be set to 'all' while there are allowed runAs groups transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_group_teardown 1.45
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-runasgroup', 'testrule', '--groups', 'testgroup2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-runasgroup', 'testrule', '--groups', 'testgroup2'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_local_group_setup 1.21
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-runasgroup', 'testrule', '--groups', 'localgroup'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-runasgroup', 'testrule', '--groups', 'localgroup'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs External Group: localgroup transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_local_group 11.20
------------------------------ Captured log call -------------------------------
transport.py 301 DEBUG STAT /bin/systemctl transport.py 318 INFO RUN ['systemctl', 'stop', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'stop', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 513 DEBUG RUN find /var/lib/sss/db -name '*.ldb' | xargs rm -fv transport.py 558 DEBUG removed '/var/lib/sss/db/config.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/sssd.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_implicit_files.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/timestamps_ipa.test.ldb' transport.py 558 DEBUG removed '/var/lib/sss/db/cache_ipa.test.ldb' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/group'] transport.py 558 DEBUG removed '/var/lib/sss/mc/group' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 513 DEBUG RUN ['rm', '-fv', '/var/lib/sss/mc/passwd'] transport.py 558 DEBUG removed '/var/lib/sss/mc/passwd' transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['systemctl', 'start', 'sssd'] transport.py 513 DEBUG RUN ['systemctl', 'start', 'sssd'] transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN su -c "sudo -ll -n" testuser1 transport.py 513 DEBUG RUN su -c "sudo -ll -n" testuser1 transport.py 558 DEBUG Matching Defaults entries for testuser1 on client0: transport.py 558 DEBUG !visiblepw, env_reset, env_keep="COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS", env_keep+="MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE", env_keep+="LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES", env_keep+="LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE", env_keep+="LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY", secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin, !authenticate transport.py 558 DEBUG transport.py 558 DEBUG User testuser1 may run the following commands on client0: transport.py 558 DEBUG transport.py 558 DEBUG LDAP Role: testrule transport.py 558 DEBUG RunAsUsers: testuser1 transport.py 558 DEBUG RunAsGroups: localgroup transport.py 558 DEBUG Options: !authenticate transport.py 558 DEBUG Commands: transport.py 558 DEBUG ALL transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_setting_category_to_all_with_valid_entries_runasgroup_local 1.11
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ipa: ERROR: group runAs category cannot be set to 'all' while there are allowed runAs groups transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_sudo_rule_restricted_to_running_as_single_local_group_tear 1.55
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-remove-runasgroup', 'testrule', '--groups', 'localgroup'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-runasgroup', 'testrule', '--groups', 'localgroup'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs External Group: transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_category_all_validation_setup 4.50
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-del', 'testrule'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-del', 'testrule'] transport.py 558 DEBUG ---------------------------- transport.py 558 DEBUG Deleted Sudo Rule "testrule" transport.py 558 DEBUG ---------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add', 'testrule'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add', 'testrule'] transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Added Sudo Rule "testrule" transport.py 558 DEBUG -------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-option', 'testrule', '--sudooption', '!authenticate'] transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Added option "!authenticate" to Sudo Rule "testrule" transport.py 558 DEBUG ---------------------------------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-mod', 'testrule', '--usercat=all', '--hostcat=all', '--cmdcat=all', '--runasusercat=all', '--runasgroupcat=all'] transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Modified Sudo Rule "testrule" transport.py 558 DEBUG ----------------------------- transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_category_all_validation_user 1.16
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-user', 'testrule', '--users', 'testuser1'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-user', 'testrule', '--users', 'testuser1'] transport.py 558 DEBUG ipa: ERROR: users cannot be added when user category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_user_group 1.07
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-user', 'testrule', '--groups', 'testgroup2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-user', 'testrule', '--groups', 'testgroup2'] transport.py 558 DEBUG ipa: ERROR: users cannot be added when user category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_user_local 1.09
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-user', 'testrule', '--users', 'localuser'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-user', 'testrule', '--users', 'localuser'] transport.py 558 DEBUG ipa: ERROR: users cannot be added when user category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_host 1.10
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-host', 'testrule', '--hosts', 'master.ipa.test'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-host', 'testrule', '--hosts', 'master.ipa.test'] transport.py 558 DEBUG ipa: ERROR: hosts cannot be added when host category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_host_group 1.04
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-host', 'testrule', '--hostgroups', 'testhostgroup'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-host', 'testrule', '--hostgroups', 'testhostgroup'] transport.py 558 DEBUG ipa: ERROR: hosts cannot be added when host category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_host_mask 1.01
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', '-n', 'sudorule-add-host', 'testrule', '--hostmask', '192.168.121.165/24'] transport.py 513 DEBUG RUN ['ipa', '-n', 'sudorule-add-host', 'testrule', '--hostmask', '192.168.121.165/24'] transport.py 558 DEBUG ipa: ERROR: hosts cannot be added when host category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_command_allow 1.11
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-allow-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-allow-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 558 DEBUG ipa: ERROR: commands cannot be added when command category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_command_allow_group 1.15
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-allow-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-allow-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 558 DEBUG ipa: ERROR: commands cannot be added when command category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_command_deny 2.54
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-deny-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-deny-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Deny Commands: /usr/bin/yum transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-remove-deny-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-deny-command', 'testrule', '--sudocmds', '/usr/bin/yum'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_category_all_validation_command_deny_group 2.51
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-deny-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-deny-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Deny Command Groups: readers transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG ------------------------- transport.py 558 DEBUG Number of members added 1 transport.py 558 DEBUG ------------------------- transport.py 217 DEBUG Exit code: 0 transport.py 318 INFO RUN ['ipa', 'sudorule-remove-deny-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-remove-deny-command', 'testrule', '--sudocmdgroups', 'readers'] transport.py 558 DEBUG Rule name: testrule transport.py 558 DEBUG Enabled: TRUE transport.py 558 DEBUG User category: all transport.py 558 DEBUG Host category: all transport.py 558 DEBUG Command category: all transport.py 558 DEBUG RunAs User category: all transport.py 558 DEBUG RunAs Group category: all transport.py 558 DEBUG Sudo Option: !authenticate transport.py 558 DEBUG --------------------------- transport.py 558 DEBUG Number of members removed 1 transport.py 558 DEBUG --------------------------- transport.py 217 DEBUG Exit code: 0
Passed test_sudo.py::TestSudo::()::test_category_all_validation_runasuser 1.13
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--users', 'testuser2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--users', 'testuser2'] transport.py 558 DEBUG ipa: ERROR: users cannot be added when runAs user or runAs group category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_runasuser_group 1.16
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--groups', 'testgroup2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-runasuser', 'testrule', '--groups', 'testgroup2'] transport.py 558 DEBUG ipa: ERROR: users cannot be added when runAs user or runAs group category='all' transport.py 217 DEBUG Exit code: 1
Passed test_sudo.py::TestSudo::()::test_category_all_validation_runasgroup 1.10
------------------------------ Captured log call -------------------------------
transport.py 318 INFO RUN ['ipa', 'sudorule-add-runasgroup', 'testrule', '--groups', 'testgroup2'] transport.py 513 DEBUG RUN ['ipa', 'sudorule-add-runasgroup', 'testrule', '--groups', 'testgroup2'] transport.py 558 DEBUG ipa: ERROR: users cannot be added when runAs user or runAs group category='all' transport.py 217 DEBUG Exit code: 1