From 1df3221e98e513b61574d6df882e1f7d10ad946e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Fri, 21 Jul 2023 16:30:21 +0200 Subject: [PATCH] Don't show disabled (locked) users MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: #1210 Signed-off-by: Aurélien Bompard --- news/1210.bug | 1 + noggin/controller/root.py | 4 +- noggin/utility/controllers.py | 5 +- .../test_root/test_search_json_locked.yaml | 1476 ++++++++++++++++ .../cassettes/test_user/test_user_locked.yaml | 1484 +++++++++++++++++ tests/unit/controller/test_root.py | 10 + tests/unit/controller/test_user.py | 9 + 7 files changed, 2987 insertions(+), 2 deletions(-) create mode 100644 news/1210.bug create mode 100644 tests/unit/controller/cassettes/test_root/test_search_json_locked.yaml create mode 100644 tests/unit/controller/cassettes/test_user/test_user_locked.yaml diff --git a/news/1210.bug b/news/1210.bug new file mode 100644 index 000000000..cbcc97263 --- /dev/null +++ b/news/1210.bug @@ -0,0 +1 @@ +Don't show disabled (locked) users in Noggin diff --git a/noggin/controller/root.py b/noggin/controller/root.py index 66b050ad6..779f9a144 100644 --- a/noggin/controller/root.py +++ b/noggin/controller/root.py @@ -86,7 +86,9 @@ def search_json(ipa): if username: users_ = [ User(u) - for u in ipa.user_find(username, fasuser=True, sizelimit=10)['result'] + for u in ipa.user_find( + username, fasuser=True, o_nsaccountlock=False, sizelimit=10 + )['result'] ] for user_ in users_: diff --git a/noggin/utility/controllers.py b/noggin/utility/controllers.py index 5428b1413..91abe753c 100644 --- a/noggin/utility/controllers.py +++ b/noggin/utility/controllers.py @@ -60,6 +60,9 @@ def group_or_404(ipa, groupname): def user_or_404(ipa, username): try: - return ipa.user_show(a_uid=username)['result'] + user = ipa.user_show(a_uid=username)['result'] except python_freeipa.exceptions.NotFound: abort(404) + if User(user).locked: + abort(404) + return user diff --git a/tests/unit/controller/cassettes/test_root/test_search_json_locked.yaml b/tests/unit/controller/cassettes/test_root/test_search_json_locked.yaml new file mode 100644 index 000000000..1ee4f8e3a --- /dev/null +++ b/tests/unit/controller/cassettes/test_root/test_search_json_locked.yaml @@ -0,0 +1,1476 @@ +interactions: +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:13:10 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=Q4mzKnKI6tjO2TGfY%2fUweZA3sENKhDVheJapzuaa5vV7ACp1IsBJehBximrcw1qR6Yz%2bCmivxeB1myV0oVNOFx7LBGioW1RdhS3To37Y%2bD27CrFhPTLQcaxfGkLS2HqKU0%2bcGoDUVcr2WvEOqHPdWzyMJnZhUrrk54vL60I2j6A0BOnL2nXcMFSgYKjoNrMQ;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=Q4mzKnKI6tjO2TGfY%2fUweZA3sENKhDVheJapzuaa5vV7ACp1IsBJehBximrcw1qR6Yz%2bCmivxeB1myV0oVNOFx7LBGioW1RdhS3To37Y%2bD27CrFhPTLQcaxfGkLS2HqKU0%2bcGoDUVcr2WvEOqHPdWzyMJnZhUrrk54vL60I2j6A0BOnL2nXcMFSgYKjoNrMQ + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:10 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_add", "params": [["dummy"], {"givenname": "Dummy", "sn": + "User", "cn": "Dummy User", "loginshell": "/bin/bash", "mail": "dummy@unit.tests", + "userpassword": "dummy_password", "random": false, "noprivate": false, "all": + true, "raw": false, "no_members": false, "fascreationtime": "2023-07-21T14:13:10Z", + "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '340' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=Q4mzKnKI6tjO2TGfY%2fUweZA3sENKhDVheJapzuaa5vV7ACp1IsBJehBximrcw1qR6Yz%2bCmivxeB1myV0oVNOFx7LBGioW1RdhS3To37Y%2bD27CrFhPTLQcaxfGkLS2HqKU0%2bcGoDUVcr2WvEOqHPdWzyMJnZhUrrk54vL60I2j6A0BOnL2nXcMFSgYKjoNrMQ + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA5RUW2/aMBT+KyjPBeIARUyqNLZV7CKVSdA+dJ2QYx8Sj8T2fKGwiv8+HyeUIlWr + 9pTj71z9fcd5SgxYX7nkXefppclk+PxIPvm63nduLZjk50Un4cLqiu4lreE1t5DCCVrZxncbsQKY + sq8Fq/wXMMcqahu3UzoJsAZjlURLmYJK8Yc6oSStTriQ4ILvHPBYFtOVFTvKmPLS4Xljcm2EZELT + ivpdCznBNuC0qgTbt2gIaCZqD9aWx5prao9mcCxsOTPK6/n6u8+/wd4iXoOeG1EIeS2d2beRMk5F + nTO2oUdTL8VvD4LHG+eTwXo9yqCbjXnaJQSgO8nG4+4oGw3TdDwa84zERLxEGOhRGQ47LUykBEs8 + JasVpw6cqGG1CkiSpdkgHWeEDMkgndwnhzY/0Oz0I2cllQX8XyrsnKEhlB7TcmrhctgkTadfycbo + DasnW/5xUt7PiM43H+bLlH9e3A793fXd8m46vWqqBZpqKmkBHCJPyAKTVxw34yIYBRJr0WoltBec + XUlVBGbRcmBdZMS3FMbMiNhmYZ/XK0RIX+fhhDBJL9NhSgZkEJ1BUWYg0oj3f5sPkrZ8FGIL8nz/ + Y8Waiuo00fugs+vhtI3yxb+Gebmiz5WbMjfz2ezLTW95vVjG0FLVwIUJW6pa9voI9U80VCpQZUuo + mmn6uZD9oFd57MSoVFKwNzvp8C8AswWkeR2eNGB3alfHPQywM/6IbmDvaH7CasDLqvUqChrb4PKH + ig0fHMVCiU7SR+cbyh9C6pZWHgdvpUflg0EjHcmUc+AdLNV5aAIekpgFxigkX/qqwpfIT/Yz91iA + 8lrIMzKwZZiseXDJsDfpEZIc/gIAAP//AwDG6wsENwUAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:10 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=Q4mzKnKI6tjO2TGfY%2fUweZA3sENKhDVheJapzuaa5vV7ACp1IsBJehBximrcw1qR6Yz%2bCmivxeB1myV0oVNOFx7LBGioW1RdhS3To37Y%2bD27CrFhPTLQcaxfGkLS2HqKU0%2bcGoDUVcr2WvEOqHPdWzyMJnZhUrrk54vL60I2j6A0BOnL2nXcMFSgYKjoNrMQ + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:11 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=dummy&new_password=dummy_password&old_password=dummy_password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/change_password + response: + body: + string: !!binary | + H4sIAAAAAAAAA0TOUQqAIAwG4PdO4Qma9Tw8Q9AJTC0D02hGdPtmCT2MwfbtZ+jzFlSD3mnLLa85 + ONVLKcbTGEeE8I0ahEqmZO9y0KlBE13psMJ4HRcn6DuZz8C4Y7NzUT5SXH57aaretgh1y+nFQs2G + 96kHAAD//wMAiLUc4ZsAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/html; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:11 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + X-IPA-Pwchange-Result: + - ok + status: + code: 200 + message: Success +- request: + body: user=dummy&password=dummy_password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '34' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwAAAP//AwAAAAAAAAAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:13:11 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=urOfs41JtyuY1qByIH0aU0pxsmYKm7vvm3PVGsko4cFNmptCuWUpidHkT4QFxYZW9uqgu2eLex7Ii%2bqT2DVqYToEzBsIQGqSpZfnzPeG3pjj6X8T%2baHWWhe7%2b36f%2f0yrzKmbiUFpQ12LDiCxNMCq3T7I1KUQ2oJnyFSGiwYdD9gftxF1bwCWXZpKrHgpYOyw;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:13:12 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=2RdrlHpPkJiHMY89p2IofBdBDcsivvorriAAgkpJWb3IqcD8%2fj65trIRcvs305aiGjT1XC%2fdNi8YXDPr071v7mt%2f5OfxbQGlqfI9%2b10sKEvp8Wki9bahZAi%2bDf7l3VBlG0mWsP6J12DySTtP%2fNqIDZ2qWWtGVY59w1oyF6njbmq7F3oCK2uzY7GwM6QIUN9n;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=2RdrlHpPkJiHMY89p2IofBdBDcsivvorriAAgkpJWb3IqcD8%2fj65trIRcvs305aiGjT1XC%2fdNi8YXDPr071v7mt%2f5OfxbQGlqfI9%2b10sKEvp8Wki9bahZAi%2bDf7l3VBlG0mWsP6J12DySTtP%2fNqIDZ2qWWtGVY59w1oyF6njbmq7F3oCK2uzY7GwM6QIUN9n + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:12 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_add", "params": [["dummy-locked"], {"givenname": "Dummy-Locked", + "sn": "User", "cn": "Dummy-Locked User", "loginshell": "/bin/bash", "mail": + "dummy-locked@unit.tests", "userpassword": "dummy-locked_password", "random": + false, "noprivate": false, "all": true, "raw": false, "no_members": false, "fascreationtime": + "2023-07-21T14:13:11Z", "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '375' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=2RdrlHpPkJiHMY89p2IofBdBDcsivvorriAAgkpJWb3IqcD8%2fj65trIRcvs305aiGjT1XC%2fdNi8YXDPr071v7mt%2f5OfxbQGlqfI9%2b10sKEvp8Wki9bahZAi%2bDf7l3VBlG0mWsP6J12DySTtP%2fNqIDZ2qWWtGVY59w1oyF6njbmq7F3oCK2uzY7GwM6QIUN9n + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA5RUW2/aMBT+KyjPBRIaiphUaWyr2E1lErQPXSd0Yh+Ch2N7vlBY1f8+20loUadu + fcrx53P9/J3cJxqN4zZ507l/ahLhP9+TD66q9t2vkmyQdq4M6uTHSSehzCgOewEVvuDFBLMMuKld + riJWIpHmhRhZ/ERiCQdTe1mpEg8r1EaKYEldgmC/wTIpgD/iTKD1d8eAC2lDuDRsB4RIJ2w4b3Sh + NBOEKeDgdg1kme/FKskZ2Teod6g7ag7GrNucKzCt6S/mZj3V0qnZ6psrvuDeBLxCNdOsZOJCWL1v + PEXsCqzVpmZJgRPsl0NG48QF5OPhCqA7GNG0m2WI3fFoSLrDwTBP09FwRAdZDAxD+IbupKa4U0xH + SkKK+2S5pGDRsgqXS48kg3Rwmo4GWZZnp1l2kzw08Z5mq+4oWYMo8XWhuLMavCu0YQUYPMvroMnk + 8+lGqw2pxlv6fry+mWaq2LybLVL6cX6Vu+uL68X1ZHJeZ/M0VSCgRIqRp8ACEec0CoRHgZz4cxn4 + NcFqXtKcUHIuZOkJDpZFYyMxjlHhqsK/TciUpWdpnvrm85Y1AkIKRoAf9Pu01NvL2XT66bK3uJgv + YgSXvoBZI+fRt18w0ffDrms9v1SrZFsUf12SeO0VRDTGZwt8v4L/tayQMu11KRu++gHqP53joJFW + 6P83ran3/rCQFTD+PMor1vYC4aZl/JlPvFD+j4J6i+F65X8FGJoHs2yF62GrXYtucG+heMQqDMzK + 1TI+fawQtsVnrMvS0Gso/kwr0ecfUnnwGbbAXSDluPNAgz9D5DaZUOr/UCFj5/bI7zaJOVBrGZ5f + OM7DPtNH+8B9yAO0YuKI79CA77Ne2yTvjXtZljz8AQAA//8DAKX5SbeSBQAA + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:12 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=2RdrlHpPkJiHMY89p2IofBdBDcsivvorriAAgkpJWb3IqcD8%2fj65trIRcvs305aiGjT1XC%2fdNi8YXDPr071v7mt%2f5OfxbQGlqfI9%2b10sKEvp8Wki9bahZAi%2bDf7l3VBlG0mWsP6J12DySTtP%2fNqIDZ2qWWtGVY59w1oyF6njbmq7F3oCK2uzY7GwM6QIUN9n + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:12 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=dummy-locked&new_password=dummy-locked_password&old_password=dummy-locked_password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/change_password + response: + body: + string: !!binary | + H4sIAAAAAAAAA0TOUQqAIAwG4PdO4Qma9Tw8Q9AJTC0D02hGdPtmCT2MwfbtZ+jzFlSD3mnLLa85 + ONVLKcbTGEeE8I0ahEqmZO9y0KlBE13psMJ4HRcn6DuZz8C4Y7NzUT5SXH57aaretgh1y+nFQs2G + 96kHAAD//wMAiLUc4ZsAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/html; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:12 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + X-IPA-Pwchange-Result: + - ok + status: + code: 200 + message: Success +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:13:13 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=z%2bIcoE7XC%2fc%2bP1kUGmRMfc%2ffSG2K6BB%2f61CUQq8tQZOoTF%2byktD5ASTro3nhH19%2bltf89LW3NcuxzIxPx2%2fSNBPW1TbkjCNzFEWw0cYSpxWmFJnpbdjrOj3vozUHLGw%2fVb9vGrbuYuSJMl%2bFJ9I%2bGgELCPlzH%2bBRAklPRovmBW6yo%2fowXVPcPJGka%2fkSXbcG;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=z%2bIcoE7XC%2fc%2bP1kUGmRMfc%2ffSG2K6BB%2f61CUQq8tQZOoTF%2byktD5ASTro3nhH19%2bltf89LW3NcuxzIxPx2%2fSNBPW1TbkjCNzFEWw0cYSpxWmFJnpbdjrOj3vozUHLGw%2fVb9vGrbuYuSJMl%2bFJ9I%2bGgELCPlzH%2bBRAklPRovmBW6yo%2fowXVPcPJGka%2fkSXbcG + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:13 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_mod", "params": [["dummy-locked"], {"random": false, "nsaccountlock": + true, "rights": false, "all": true, "raw": false, "no_members": false, "version": + "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '179' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=z%2bIcoE7XC%2fc%2bP1kUGmRMfc%2ffSG2K6BB%2f61CUQq8tQZOoTF%2byktD5ASTro3nhH19%2bltf89LW3NcuxzIxPx2%2fSNBPW1TbkjCNzFEWw0cYSpxWmFJnpbdjrOj3vozUHLGw%2fVb9vGrbuYuSJMl%2bFJ9I%2bGgELCPlzH%2bBRAklPRovmBW6yo%2fowXVPcPJGka%2fkSXbcG + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA4xUbU/bMBD+K1U+kzZOE7JMqrRKQ93YBgwomhhT5djX1tSxM9uBdoj/PttJWjo2 + xqec7+XJ3ePn/BAo0DU3wdvew1OTCPv5Hryvy3ITfpZkBbQ31aCCHwe9gDJdcbwRuIQXsphghmGu + m5Sp9y2ASP1CjSxugRjCsW6yjKwC665AaSmcJdUCC/YLGyYF5js/E2BsbN9RO1hXLjVbY0JkLYw7 + r1RRKSYIqzDH9bp1GWZ7MZXkjGxar01oOmoPWi87zDnWnWkDF3o5UbKuTudndfEJNtr5S6hOFVsw + cSSM2rSZwneFjVG6YanCtWA/a2DUT1zgJE/nGIdxRqMQIYAwz1ISpnGaRFGWZjRGvtANYRu6l4rC + umLKU+IgHoLZjGIDhpUwm1lPEEfxEEUoRwkaovg6eGzrLc2muqdkicUC/l0aZTH6sxTWRmGbiruy + Ams4TJqi8fg4Walqdf3hyhTfVqaY5Lc4vlp9PUrPziN6fMnS6fnVyXQ8Ho0aREtViQVeAAXPlWOC + iBH1IuFeJAf2vHAca2e1t6kPKBkJubAkO8uANh2rNgikVsxsmANlc2Zvy+FehChMwxiFcRolw2EW + 53mIsjxJ32RDx3iaH0bDLH8TWtISj1YzKuqyaOtRdBglEeqCXNqf6yVw7qODgomBJWPZVXrv00F8 + wMqHKPB35sh+BfloRz7BQgpGMN9u4FP8dyenk8nHk/7l0cVls3TsDsRfl9WHhW7JdOU2xagafNUL + Q5eY8ec/tkI2fXcHeqvQbs1e16luXp3tc7CUJVCm7ALKVhQD5xo8o3OJ9azbht0IzruCjcHFzlfZ + Rw7UHbi0uX2dwKvPzSnnM68v/x+3ljavGYS6ttxdPhOkz/mPHh8twh3mtZt/XwhuYnvGfrbgi6RO + pLTnQHs3e6k3gYcBpaS7D1Fz7lROd/aWaQeFacnEHruuB9tq80QEST/vIxQ8/gYAAP//AwDQ6L+0 + /gUAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:13 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=z%2bIcoE7XC%2fc%2bP1kUGmRMfc%2ffSG2K6BB%2f61CUQq8tQZOoTF%2byktD5ASTro3nhH19%2bltf89LW3NcuxzIxPx2%2fSNBPW1TbkjCNzFEWw0cYSpxWmFJnpbdjrOj3vozUHLGw%2fVb9vGrbuYuSJMl%2bFJ9I%2bGgELCPlzH%2bBRAklPRovmBW6yo%2fowXVPcPJGka%2fkSXbcG + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:13 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=urOfs41JtyuY1qByIH0aU0pxsmYKm7vvm3PVGsko4cFNmptCuWUpidHkT4QFxYZW9uqgu2eLex7Ii%2bqT2DVqYToEzBsIQGqSpZfnzPeG3pjj6X8T%2baHWWhe7%2b36f%2f0yrzKmbiUFpQ12LDiCxNMCq3T7I1KUQ2oJnyFSGiwYdD9gftxF1bwCWXZpKrHgpYOyw + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IINTgHZUOvj5u7t7+umF + uAaHKAFVQI0DyUNsUaoFAAAA//8DAOF2iraZAAAA + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:13 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_find", "params": [[null], {"whoami": true, "all": true, + "raw": false, "no_members": true, "pkey_only": false, "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '148' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=urOfs41JtyuY1qByIH0aU0pxsmYKm7vvm3PVGsko4cFNmptCuWUpidHkT4QFxYZW9uqgu2eLex7Ii%2bqT2DVqYToEzBsIQGqSpZfnzPeG3pjj6X8T%2baHWWhe7%2b36f%2f0yrzKmbiUFpQ12LDiCxNMCq3T7I1KUQ2oJnyFSGiwYdD9gftxF1bwCWXZpKrHgpYOyw + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA4xT207bQBD9lcjPOPHaMa6RkPpQhKpKUAl4aVVF691xssXedfcCpBH/3pm1k4AK + ap88PnM/c3aXWHCh88nZbHc0v+8SoembfAp9v53dObDJj5NZIpUbOr7VvIe33Eorr3jnRt9dxNYg + jHsruOVOWOBeGe3VWG+XrFaSe6D/1QqRJM/yIqtyxpasYNm35JkyTfMThBcdd2Nhb4YE4QGsM5os + Y9dcq9+xNu+OuNLg0fcaCDQQpRunnrgQJmhP//e2GazSQg284+FpgrwS9+AH0ymxnVAMGCeafpzb + 7GvijnsTHTduc2lNGK7br6H5AltHeA/DtVVrpS+0t9spUsepuPfWjcQOPGj1K4CSceOmLtq2zCHN + K5mljAGkdV5VaZmXyyyrykrmLCbSEjjQo7ESngZlIyXvU80yVkeq2UQ15iPNfniUYsP1+n+utE+N + azgQwSq/VRLwyq1CLmj+m5SlZZqzNC+zZVFUeV2nrKqX5YeqoH3K+jQrqvpDiiMVh0X21zjIT5Ki + Pl5dX15+vprfXtzcxtAwkRS9owaV1KFvpuYsO82WGdtXdqPSD7rcmB6ksnhPg/cg14KgxbFcz1X3 + oj9exs89OO/27d9vhmsIro1W4p9rdAZF4TbQjb0WjdKLhrvNtNED6NfPMOLaTQrujLhHX4uvEUjc + +LbBPoB8gfVAU5p2tSZRxkKkM4wbF5FEDK1zHgc8Efo8OsmYurgTKc61WeOkZBEJ4/HHV3Q2Y2h7 + G7RAvbzs7bAij/QmbEZVZz33YoMxz+gFaw3Rp0PXkZLk0T6IgFL/Jg4jHnDEUeTJcl7PGUue/wAA + AP//AwA4Lo4f5gQAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:13 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_find", "params": [["dummy-locked"], {"nsaccountlock": + false, "whoami": false, "all": true, "raw": false, "no_members": true, "pkey_only": + false, "fasuser": true, "sizelimit": 10, "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '217' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=urOfs41JtyuY1qByIH0aU0pxsmYKm7vvm3PVGsko4cFNmptCuWUpidHkT4QFxYZW9uqgu2eLex7Ii%2bqT2DVqYToEzBsIQGqSpZfnzPeG3pjj6X8T%2baHWWhe7%2b36f%2f0yrzKmbiUFpQ12LDiCxNMCq3T7I1KUQ2oJnyFSGiwYdD9gftxF1bwCWXZpKrHgpYOyw + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA0SMsQrDMBBDf8XcXEwCXdqpSwld0iHZSgdju9Rgn8PZVwgh/97zlE3Sk7QB+cKx + wlVth3y9TwpsZmymE12J0ZrqnfiPicVLVjglQ6sk0CkunopKptqvlHbBniiTQOQYxQZ36IUC2rCY + 2LZObtbb+ByGx6jn+zSDNH7yFjI2ftYX3few/wEAAP//AwDK4+F7qgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:13 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=urOfs41JtyuY1qByIH0aU0pxsmYKm7vvm3PVGsko4cFNmptCuWUpidHkT4QFxYZW9uqgu2eLex7Ii%2bqT2DVqYToEzBsIQGqSpZfnzPeG3pjj6X8T%2baHWWhe7%2b36f%2f0yrzKmbiUFpQ12LDiCxNMCq3T7I1KUQ2oJnyFSGiwYdD9gftxF1bwCWXZpKrHgpYOyw + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCiml + lObmVjr4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwDBNbofbgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:13 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:13:13 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=UqiiyhG5Fi4UsmVaQ%2bcESZTwTzaZwCCQ8bGD%2bsUXc8HdHgqdIOs6%2fkV4YIQx4ZWCkon6wBlEPVcSF%2b6KxV23YxYaGTArkHLLMe3gp3exy5KTrYwn8hTeW2ML0KqXOIB27NTVE38IuXULDabgHR58xB%2bnI73AFoePL6gjEXO26SkMsIyTJv2k7rQep0ADzHUW;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=UqiiyhG5Fi4UsmVaQ%2bcESZTwTzaZwCCQ8bGD%2bsUXc8HdHgqdIOs6%2fkV4YIQx4ZWCkon6wBlEPVcSF%2b6KxV23YxYaGTArkHLLMe3gp3exy5KTrYwn8hTeW2ML0KqXOIB27NTVE38IuXULDabgHR58xB%2bnI73AFoePL6gjEXO26SkMsIyTJv2k7rQep0ADzHUW + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:14 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_del", "params": [["dummy"], {"continue": false, "version": + "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '86' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=UqiiyhG5Fi4UsmVaQ%2bcESZTwTzaZwCCQ8bGD%2bsUXc8HdHgqdIOs6%2fkV4YIQx4ZWCkon6wBlEPVcSF%2b6KxV23YxYaGTArkHLLMe3gp3exy5KTrYwn8hTeW2ML0KqXOIB27NTVE38IuXULDabgHR58xB%2bnI73AFoePL6gjEXO26SkMsIyTJv2k7rQep0ADzHUW + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA0yNsQrDMAxEf8VoLoZAl3bK0BK6pEOzNRlMrYJAdoIcF0LIv0emQ7u9O92dVhBM + mWc4m/Uf344YveJz2A4GPo4zFgU+h7DAoF5ScrKoCxdknNGbnFBM/830AKWJIqNoJmZmleR/PAnF + F02Oy4TzgWLd3pvm1tru+uigvEVJNMZyP9qTrSrYdgAAAP//AwDztXf4sQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:14 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=UqiiyhG5Fi4UsmVaQ%2bcESZTwTzaZwCCQ8bGD%2bsUXc8HdHgqdIOs6%2fkV4YIQx4ZWCkon6wBlEPVcSF%2b6KxV23YxYaGTArkHLLMe3gp3exy5KTrYwn8hTeW2ML0KqXOIB27NTVE38IuXULDabgHR58xB%2bnI73AFoePL6gjEXO26SkMsIyTJv2k7rQep0ADzHUW + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:14 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:13:14 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=Dqv0Dx8uxYpQMCw23RBJrbY5HkB6YcJTq3Vuj%2b1%2fm4NeRsuwaMY2zf9VjmBflHZN6ihJzCLxkmzPJnSpyd0p0lCpHaH3eI8SagF1xBIbd4OxQyqLXt0Ji5tACTkUelul6kE6T1wMVRjU9UruVx13fU42b5ooWCz7PBkpCIrx%2fvfP7NcGNuZ3q7nNysC7%2b6G1;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=Dqv0Dx8uxYpQMCw23RBJrbY5HkB6YcJTq3Vuj%2b1%2fm4NeRsuwaMY2zf9VjmBflHZN6ihJzCLxkmzPJnSpyd0p0lCpHaH3eI8SagF1xBIbd4OxQyqLXt0Ji5tACTkUelul6kE6T1wMVRjU9UruVx13fU42b5ooWCz7PBkpCIrx%2fvfP7NcGNuZ3q7nNysC7%2b6G1 + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:14 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_del", "params": [["dummy-locked"], {"continue": false, + "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=Dqv0Dx8uxYpQMCw23RBJrbY5HkB6YcJTq3Vuj%2b1%2fm4NeRsuwaMY2zf9VjmBflHZN6ihJzCLxkmzPJnSpyd0p0lCpHaH3eI8SagF1xBIbd4OxQyqLXt0Ji5tACTkUelul6kE6T1wMVRjU9UruVx13fU42b5ooWCz7PBkpCIrx%2fvfP7NcGNuZ3q7nNysC7%2b6G1 + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA1SOMQvCMBCF/0q4WQMFF50clOLSDnazHUJzQvCSlEsjlNL/7mVSt+/d93jcCowp + 0wwntf7i0zhCK/gYtp2Ct6GMJYHN3i97iuNL9CAqycHwIhIuSDijVTkhq/6v2gOUHWSOLNWQiSQ6 + ++WJXRjdZKgsGetdODdtXd8a3V3vHZQnkJOLofiDPuqqgu0DAAD//wMATItqyL8AAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:14 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=Dqv0Dx8uxYpQMCw23RBJrbY5HkB6YcJTq3Vuj%2b1%2fm4NeRsuwaMY2zf9VjmBflHZN6ihJzCLxkmzPJnSpyd0p0lCpHaH3eI8SagF1xBIbd4OxQyqLXt0Ji5tACTkUelul6kE6T1wMVRjU9UruVx13fU42b5ooWCz7PBkpCIrx%2fvfP7NcGNuZ3q7nNysC7%2b6G1 + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:13:14 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +version: 1 diff --git a/tests/unit/controller/cassettes/test_user/test_user_locked.yaml b/tests/unit/controller/cassettes/test_user/test_user_locked.yaml new file mode 100644 index 000000000..ed1b3898b --- /dev/null +++ b/tests/unit/controller/cassettes/test_user/test_user_locked.yaml @@ -0,0 +1,1484 @@ +interactions: +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:20:38 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=Z3W98XGnoi4nmA%2b9dx2l92lvEQIJYxeSlKDAlxLiV2lQbFS0Qf0kZdZhB6BPcISCMTO1QRmk29P3QhlwH3pxyUNfhviWHpdCOzejq4wYpi3wVpcUpSmrEnxYIibzRR4r%2bPuZortADJY5fVSeSVM6NlmdO1b5WzhwR%2fl%2fc025dyenM1QflAYycu7tVQBzvrrJ;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=Z3W98XGnoi4nmA%2b9dx2l92lvEQIJYxeSlKDAlxLiV2lQbFS0Qf0kZdZhB6BPcISCMTO1QRmk29P3QhlwH3pxyUNfhviWHpdCOzejq4wYpi3wVpcUpSmrEnxYIibzRR4r%2bPuZortADJY5fVSeSVM6NlmdO1b5WzhwR%2fl%2fc025dyenM1QflAYycu7tVQBzvrrJ + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:39 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_add", "params": [["dummy"], {"givenname": "Dummy", "sn": + "User", "cn": "Dummy User", "loginshell": "/bin/bash", "mail": "dummy@unit.tests", + "userpassword": "dummy_password", "random": false, "noprivate": false, "all": + true, "raw": false, "no_members": false, "fascreationtime": "2023-07-21T14:20:38Z", + "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '340' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=Z3W98XGnoi4nmA%2b9dx2l92lvEQIJYxeSlKDAlxLiV2lQbFS0Qf0kZdZhB6BPcISCMTO1QRmk29P3QhlwH3pxyUNfhviWHpdCOzejq4wYpi3wVpcUpSmrEnxYIibzRR4r%2bPuZortADJY5fVSeSVM6NlmdO1b5WzhwR%2fl%2fc025dyenM1QflAYycu7tVQBzvrrJ + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA5RUXU/bMBT9K1WeaZuElMIkpHUb6tAmOqmFB8ZU3di3iVfH9vxR2iH++2wnpSCh + IZ5yfe6nz7nOQ6LROG6TD72H5yYR/vMz+eKaZte7NqiTX0e9hDKjOOwENPiamwlmGXDT+q4jViGR + 5rVgWf5GYgkH07qtVImHFWojRbCkrkCwv2CZFMAPOBNove8l4ELZkC4N2wIh0gkbzmtdKs0EYQo4 + uG0HWUbWaJXkjOw61Ae0E3UHY+p9zRWYvekdc1NPtXRqtvrhym+4MwFvUM00q5i4EFbvukgRpwJr + tWnpUeAE++OQ0XhjUpysSkihn49p1s8yxP7pio76o3xUpOl4NKZ5FhPDJfxA91JT3CqmIyWhxEOy + XFKwaFmDy6VHkjzNj9NxnmVFnh6f3iaPXb6n2ap7SmoQFb4vFbdWgw+FfVoJBk+KNmkyucz5d7Um + zdmGfj6rb6eZKtefZouUfp1fF+7m4mZxM5mct9U8TQ0IqJBi5CmyIM5p2Iwjb1SBWBOsTkJzRMm5 + kJVnNlgWjY2MuI7CmBkR0y7s03r5COGa0p8CnKUnaZFmx9k4Or2iRGOkMdz/HXxUbIPi5f7Hig0w + fpjoo9fZDsK0rfLV/4Z5vqJPldsyV7Pp9PJqsLiYL2JoLRukTPstlR17wwANDzRw6akyNfJ2mmHJ + xNDrVe87ERBSMPJmJ+X/Bag3GGhe+SeNoTuY5X4PPWy126Nr3FkoD1iD4bJytYyCxjZh+X3Flg8a + xAoSHaSPzjeUf/SpG+AuDN5JH5T3BkQ6kgmlSHuhVO+uDbhLYhZqLQP5wnEeXiI92E/chwJAGyZe + kBFa+snaB5cUg7NBliWP/wAAAP//AwA73FdNNwUAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:39 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=Z3W98XGnoi4nmA%2b9dx2l92lvEQIJYxeSlKDAlxLiV2lQbFS0Qf0kZdZhB6BPcISCMTO1QRmk29P3QhlwH3pxyUNfhviWHpdCOzejq4wYpi3wVpcUpSmrEnxYIibzRR4r%2bPuZortADJY5fVSeSVM6NlmdO1b5WzhwR%2fl%2fc025dyenM1QflAYycu7tVQBzvrrJ + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:39 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=dummy&new_password=dummy_password&old_password=dummy_password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/change_password + response: + body: + string: !!binary | + H4sIAAAAAAAAA0TOUQqAIAwG4PdO4Qma9Tw8Q9AJTC0D02hGdPtmCT2MwfbtZ+jzFlSD3mnLLa85 + ONVLKcbTGEeE8I0ahEqmZO9y0KlBE13psMJ4HRcn6DuZz8C4Y7NzUT5SXH57aaretgh1y+nFQs2G + 96kHAAD//wMAiLUc4ZsAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/html; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:39 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + X-IPA-Pwchange-Result: + - ok + status: + code: 200 + message: Success +- request: + body: user=dummy&password=dummy_password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '34' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:20:39 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=EZWjBWIRxCkh8FarKdlCoQhh7My%2frN7BKzPhNNoVKKMGj5RclFTHjwpUyytBnoBxJFx9rqkzxh8xPEWxl65KCX7GT47V4VsP2suY1IjFGNbZFZMf7SJZJikzAbkHuwYTgwlpTrzzcPaqtkZm4oed9BolCqrWDVo0OYbWv0YM02rRcgEQySi5IXlBx3Q%2b1rJa;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:20:39 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=S0KzuxjsJmVRpO%2fpsvw5ZF%2bNBrKzrBqwynZ3qiekUrcUfCnhvXw34%2bkoSty294z1ItHODx7uuOianMoegKM8PmtQR4idby649WTpnSH0nXzPOThmAxitW2kx8zupTK83vCRpraO7gdODMqjpglQHYNJwGxrAp4tl6utxvyMKHInMgtCnoIGK1c230P81Of0P;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=S0KzuxjsJmVRpO%2fpsvw5ZF%2bNBrKzrBqwynZ3qiekUrcUfCnhvXw34%2bkoSty294z1ItHODx7uuOianMoegKM8PmtQR4idby649WTpnSH0nXzPOThmAxitW2kx8zupTK83vCRpraO7gdODMqjpglQHYNJwGxrAp4tl6utxvyMKHInMgtCnoIGK1c230P81Of0P + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:40 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_add", "params": [["dummy-locked"], {"givenname": "Dummy-Locked", + "sn": "User", "cn": "Dummy-Locked User", "loginshell": "/bin/bash", "mail": + "dummy-locked@unit.tests", "userpassword": "dummy-locked_password", "random": + false, "noprivate": false, "all": true, "raw": false, "no_members": false, "fascreationtime": + "2023-07-21T14:20:39Z", "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '375' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=S0KzuxjsJmVRpO%2fpsvw5ZF%2bNBrKzrBqwynZ3qiekUrcUfCnhvXw34%2bkoSty294z1ItHODx7uuOianMoegKM8PmtQR4idby649WTpnSH0nXzPOThmAxitW2kx8zupTK83vCRpraO7gdODMqjpglQHYNJwGxrAp4tl6utxvyMKHInMgtCnoIGK1c230P81Of0P + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA5RUXU/bMBT9K1WeaZukLaWTkNZtqENDFInCA2OqbuzbxKtjZ/4o7RD/fbaTFCom + Np5yfXw/j8/NY6RQW26iD53HlyYR7vM9+mLLcte9kGSNtHOjUUU/jjoRZbrisBNQ4hteTDDDgOva + 5SZgORKp34iR2U8khnDQtZeRVeTgCpWWwltS5SDYbzBMCuDPOBNo3N0hYH1aHy412wIh0grjz2uV + VYoJwirgYLcNZJjrxVSSM7JrUOdQd9QctC7anCvQrekurnUxU9JW89WVzb7hTnu8xGquWM7EmTBq + 13iK0BUYo3TNUgVWsF8WGQ0Tk1EyPiHHaTcd06SbJIjdLF2l3VE6GsbxeDSmaRIC/RCuoQepKG4r + pgIlPsVjtFxSMGhYiculQ6I0TgfxOE2SYRoPJnfRUxPvaDbVAyUFiBzfF4pbo8C5QhuWgcbjYR00 + nZ4P+EW1JuVkQz9PirtZUmXrT/NFTL9e3wzt7dnt4nY6Pa2zOZpKEJAjxcBTYEGc0iAQHgRy5M65 + 51d7q3lJfUTJqZC5I9hbBrUJxFhGhS0z9zY+UxIfx8M4GSQnLWsEhBSMAN/r92Wpj5fz2ez8src4 + u16ECC5dAV0g58G3nzHRd8MWtZ7fqpWzDYq/Lkm4dgoiCsOzeb7fwX8hS6RMOV3Khq++h/ov59hr + pBX6/02r673fL2QJjL+Ocoo1PU+4bhl/5RMuKvdHQbVBf71yvwL0zYNetsJ1sFG2Rde4M5A9YyV6 + ZuVqGZ4+VPDb4jLWZanv1Rd/pZXg8w+pPLkMG+DWk3LYuafBnSFwG00pdX8on7Fzf+B3H4UcqJT0 + zy8s536f6bO9597nAVoyccC3b8D1Wa9tNOxNekkSPf0BAAD//wMAgdvHR5IFAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:40 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=S0KzuxjsJmVRpO%2fpsvw5ZF%2bNBrKzrBqwynZ3qiekUrcUfCnhvXw34%2bkoSty294z1ItHODx7uuOianMoegKM8PmtQR4idby649WTpnSH0nXzPOThmAxitW2kx8zupTK83vCRpraO7gdODMqjpglQHYNJwGxrAp4tl6utxvyMKHInMgtCnoIGK1c230P81Of0P + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:40 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=dummy-locked&new_password=dummy-locked_password&old_password=dummy-locked_password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '87' + Content-Type: + - application/x-www-form-urlencoded + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/change_password + response: + body: + string: !!binary | + H4sIAAAAAAAAA0TOUQqAIAwG4PdO4Qma9Tw8Q9AJTC0D02hGdPtmCT2MwfbtZ+jzFlSD3mnLLa85 + ONVLKcbTGEeE8I0ahEqmZO9y0KlBE13psMJ4HRcn6DuZz8C4Y7NzUT5SXH57aaretgh1y+nFQs2G + 96kHAAD//wMAiLUc4ZsAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/html; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:40 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + X-IPA-Pwchange-Result: + - ok + status: + code: 200 + message: Success +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:20:40 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=r7nf9qk5qjg6CDvygcvDRiaOjDlnCTXILn4%2byWPZaAvpeAD2e4%2bzyU461c1TGV86TEXLrTqh8Sys9ZUgBnvxrp8dvbLN%2feZUzRAHO1ruFYROKZ2YoDa3hqh%2bhWYvXLYkA%2behq4ne1%2bsn7cAERqRlTcvt%2fID%2fpjOC0GhbG2SPXX7ssqAskwlpJz2GlNJyM6Eq;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=r7nf9qk5qjg6CDvygcvDRiaOjDlnCTXILn4%2byWPZaAvpeAD2e4%2bzyU461c1TGV86TEXLrTqh8Sys9ZUgBnvxrp8dvbLN%2feZUzRAHO1ruFYROKZ2YoDa3hqh%2bhWYvXLYkA%2behq4ne1%2bsn7cAERqRlTcvt%2fID%2fpjOC0GhbG2SPXX7ssqAskwlpJz2GlNJyM6Eq + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_mod", "params": [["dummy-locked"], {"random": false, "nsaccountlock": + true, "rights": false, "all": true, "raw": false, "no_members": false, "version": + "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '179' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=r7nf9qk5qjg6CDvygcvDRiaOjDlnCTXILn4%2byWPZaAvpeAD2e4%2bzyU461c1TGV86TEXLrTqh8Sys9ZUgBnvxrp8dvbLN%2feZUzRAHO1ruFYROKZ2YoDa3hqh%2bhWYvXLYkA%2behq4ne1%2bsn7cAERqRlTcvt%2fID%2fpjOC0GhbG2SPXX7ssqAskwlpJz2GlNJyM6Eq + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA4xUbU/bMBD+K1U+kzZOk4ZMqrRKQx0bAwYUTYypcuxra+rYme1AO8R/n+2kLR0b + 7FPO9/Lk7vFzfgwU6Jqb4F3n8blJhP18Dz7UZbkOTyRZAu1MNKjgx0EnoExXHK8FLuGVLCaYYZjr + JmXifXMgUr9SI4s7IIZwrJssI6vAuitQWgpnSTXHgv3ChkmB+c7PBBgb23fUDtaVS81WmBBZC+PO + S1VUignCKsxxvWpdhtleTCU5I+vWaxOajtqD1osN5gzrjWkDl3oxVrKuzmbndfEZ1tr5S6jOFJsz + cSSMWreZwneFjVG6YanCtWA/a2DUT0xSlB2SQRzGGUUhQgBhEc/iMI3TJIqyNKMx8oVuCNvQg1QU + VhVTnhIH8RhMpxQbMKyE6dR6gjiK+yhCOUriKIlugqe23tJsqgdKFljM4d+lURajP0thZRS2qXhT + VmANg6QpGo2OE35SLW8+Xpvi29IU4/wOx9fLr0fp+UVEP12xdHJxfToZjYbDBtFSVWKB50DBc+WZ + EEPqRcK9SA7see441s5qb1MfUDIUcm5JdpYBbTas2iCQWjGzZg6UzZi9LYd7GaIwDWMUxmmU9PtZ + nOchyvIkPcz6kWU8zQdRP8sPQ0vaoUerGRV1WbT1KBpYKtAmyKX9uV4A5z7aK5joWTIWm0rvfT6I + D1j5EAX+zhzZb5Pfz3fkEyykYATz7QY+x39/ejYeH592r44ur5qlY/cg/rqsPix0S6YrtylG1eCr + Xhm6xIy//LEVsum6O9BbhW7W7P861c2rs30OFrIEypRdQNmKoudcvRd0LrCebrZhN4LzLmFtcLHz + VfaRA3UPLm1mXyfw6nNzytnU68v/x62lzWsGoa4td5cvBOlz3tDjk0W4x7x28+8LwU1sz9jPFnyR + 1ImUdhxo53Yv9TbwMKCUdPchas6dyunO3jLtoDAtmdhj1/VgW22eiCDp5l2EgqffAAAA//8DAGcN + XWj+BQAA + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=r7nf9qk5qjg6CDvygcvDRiaOjDlnCTXILn4%2byWPZaAvpeAD2e4%2bzyU461c1TGV86TEXLrTqh8Sys9ZUgBnvxrp8dvbLN%2feZUzRAHO1ruFYROKZ2YoDa3hqh%2bhWYvXLYkA%2behq4ne1%2bsn7cAERqRlTcvt%2fID%2fpjOC0GhbG2SPXX7ssqAskwlpJz2GlNJyM6Eq + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=EZWjBWIRxCkh8FarKdlCoQhh7My%2frN7BKzPhNNoVKKMGj5RclFTHjwpUyytBnoBxJFx9rqkzxh8xPEWxl65KCX7GT47V4VsP2suY1IjFGNbZFZMf7SJZJikzAbkHuwYTgwlpTrzzcPaqtkZm4oed9BolCqrWDVo0OYbWv0YM02rRcgEQySi5IXlBx3Q%2b1rJa + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IINTgHZUOvj5u7t7+umF + uAaHKAFVQI0DyUNsUaoFAAAA//8DAOF2iraZAAAA + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_find", "params": [[null], {"whoami": true, "all": true, + "raw": false, "no_members": true, "pkey_only": false, "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '148' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=EZWjBWIRxCkh8FarKdlCoQhh7My%2frN7BKzPhNNoVKKMGj5RclFTHjwpUyytBnoBxJFx9rqkzxh8xPEWxl65KCX7GT47V4VsP2suY1IjFGNbZFZMf7SJZJikzAbkHuwYTgwlpTrzzcPaqtkZm4oed9BolCqrWDVo0OYbWv0YM02rRcgEQySi5IXlBx3Q%2b1rJa + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA4xTXU/bMBT9K5WfSRunCWmQkPYwhKZJMAl4GZoqx75pPBI78wfQVfz3XTtpCxpo + e8rNud/nHu+IAes7R85mu6N5vyNchS/57Pt+O7uzYMiPkxkR0g4d2yrWw3tuqaSTrLOj7y5iG+Da + vhfcMMsNMCe1cnKstyPrtWAOwv96jQjJ0myZlhmleZYuV9/JS8jU9U/gjnfMjoWdHgjCAxirVbC0 + 2TAlf8farDviUoFD31vAh4FCurbymXGuvXLh/8HUg5GKy4F1zD9PkJP8AdygO8m3E4oB40TTj7Xt + vibuuDfRcWPbS6P9cN188/VX2NqA9zBcG7mR6kI5s50iVZyKOWfsSOzAvJK/PEgRN+b5aVOzlCVZ + KWhCKUCyakSRFFmRp2lZlCKjMTEsgQM9aSPgeZAmUvIx1TSlVaS6mqjGfKTZDU+Ct0xt/udK+9S4 + hgXujXRbKQCv3EjkIsx/k9CkSDKaZEWaL5dlVlUJLau8WJXLFPcpqtN0WVarBEcqD4vsr3GQnwiK + +nR1fXn55Wp+e3FzG0P9RFL0jhqUQvm+nprT9DTNU7qvbEelH3TZ6h6ENHhPjfcIrkWAFsdyPZPd + q/54GTd3YJ3dt/+4Ga7BmdJK8n+u0WkUhW2hG3staqkWNbPttNEjqLfPMOLKTgruNH9AX4OvEYK4 + 8W2DeQTxCushTKmb9SaIMhYKOsO4cRERiAnrnMcBT7g6j85gTF3sieDnSm9w0mAFEsbjj6/obEbR + dsYrjnp53dtiRRbpJXQWqs565niLMS/oBWN0oE/5rgtKEkf7IIKQ+jdxGPGII44iJ/m8mlNKXv4A + AAD//wMAMYblkOYEAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_show", "params": [["dummy-locked"], {"rights": false, + "all": true, "raw": false, "no_members": false, "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '140' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=EZWjBWIRxCkh8FarKdlCoQhh7My%2frN7BKzPhNNoVKKMGj5RclFTHjwpUyytBnoBxJFx9rqkzxh8xPEWxl65KCX7GT47V4VsP2suY1IjFGNbZFZMf7SJZJikzAbkHuwYTgwlpTrzzcPaqtkZm4oed9BolCqrWDVo0OYbWv0YM02rRcgEQySi5IXlBx3Q%2b1rJa + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA4xU70/bMBD9V1A+kxK7DWkmIe3DEJo2wSTgy6apcuxrc8OxM/8AMsT/PttJWyo2 + tk89P9+d772861NmwHrpsndHTy9DrsLPt+yD77oh/6z5HYijWwsm+358lAm0vWSDYh28kYUKHTJp + x5TbhG2Aa/tGjW5+AHdcMjtmOd1nAe7BWK1ipM2GKfzFHGrF5B5HBS7cHQI+to3l2uIj41x75eL5 + zjS9QcWxZ5L5xwlyGGZxvZbIhwkNCeNE08Hadttzzew2DBfXtr0w2vdX6y+++QSDjXgH/ZXBDapz + 5cwwZao0FXPO2FGlnnmFPz2gSIx5SaolP6U5rQTJCQHIG7qmeUnLRVFUZSUoSYWRRBjoQRsBjz2a + JEls8ZStVoI5cNjBahWQjBZ0TgpSkwUtFsXX7HmqDzK7/kHwlqkN/L20qCg5KE00LHBv0A0oQDlc + Y9Aizn+dk7zMKclpWSzm84rWdU6qelEuq3kR+JT1aTGv6mUeRlomIh6F8l0z1ZPiNDxEtpdSB/1s + C1Km25MG1UnDbLutTKhIXpLJS+kifBxuICkSqfyb2rzeq8KZ0go5kzt/v+z//vLq4uLj5ezm/Ppm + tDTeg/rjKqRrZSfjxfKQ4oyHVPUG6Y6hfP1wsImbObDO7r7/1sT/N6kdd3q3bK3uQKAJ9tbBnkne + CJ28krNldrX12p5CRO9gcKzZY334CwFzDzFtHXYf0hpEnnq92sQNSe9E04e8kYiIY8Vvefby4WOu + zlJODCYJ7bHgZ0pvgiViFLXInkOHeyZ95H9ohMg4nFnipryUMRWM0WY6RyeLfbxTc9fpQMH4Thhn + XLJsMatnhGTPvwEAAP//AwBUgCNkQAUAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=EZWjBWIRxCkh8FarKdlCoQhh7My%2frN7BKzPhNNoVKKMGj5RclFTHjwpUyytBnoBxJFx9rqkzxh8xPEWxl65KCX7GT47V4VsP2suY1IjFGNbZFZMf7SJZJikzAbkHuwYTgwlpTrzzcPaqtkZm4oed9BolCqrWDVo0OYbWv0YM02rRcgEQySi5IXlBx3Q%2b1rJa + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCiml + lObmVjr4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwDBNbofbgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwAAAP//AwAAAAAAAAAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=XFJ7o0lbyUBy5FnZdC0mM5a5UiaCRANWTCXb0vzAfhZvUItHG4768Hh5FrjmXMrG2Io4wC0cbIicAGb%2bXRWf5lF0kpTBCZbKarxYOUdDUiXNrj8NiqMg1de%2bOb3qWvrIQ%2bEfmSA5q%2f4gflvmatVzUMP45mkXR50laH3mNwqXMzJUvkE9gqIYewzXH6uh7nMt;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=XFJ7o0lbyUBy5FnZdC0mM5a5UiaCRANWTCXb0vzAfhZvUItHG4768Hh5FrjmXMrG2Io4wC0cbIicAGb%2bXRWf5lF0kpTBCZbKarxYOUdDUiXNrj8NiqMg1de%2bOb3qWvrIQ%2bEfmSA5q%2f4gflvmatVzUMP45mkXR50laH3mNwqXMzJUvkE9gqIYewzXH6uh7nMt + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_del", "params": [["dummy"], {"continue": false, "version": + "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '86' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=XFJ7o0lbyUBy5FnZdC0mM5a5UiaCRANWTCXb0vzAfhZvUItHG4768Hh5FrjmXMrG2Io4wC0cbIicAGb%2bXRWf5lF0kpTBCZbKarxYOUdDUiXNrj8NiqMg1de%2bOb3qWvrIQ%2bEfmSA5q%2f4gflvmatVzUMP45mkXR50laH3mNwqXMzJUvkE9gqIYewzXH6uh7nMt + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA0yNsQrDMAxEf8VoLoZAl3bK0BK6pEOzNRlMrYJAdoIcF0LIv0emQ7u9O92dVhBM + mWc4m/Uf344YveJz2A4GPo4zFgU+h7DAoF5ScrKoCxdknNGbnFBM/830AKWJIqNoJmZmleR/PAnF + F02Oy4TzgWLd3pvm1tru+uigvEVJNMZyP9qTrSrYdgAAAP//AwDztXf4sQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=XFJ7o0lbyUBy5FnZdC0mM5a5UiaCRANWTCXb0vzAfhZvUItHG4768Hh5FrjmXMrG2Io4wC0cbIicAGb%2bXRWf5lF0kpTBCZbKarxYOUdDUiXNrj8NiqMg1de%2bOb3qWvrIQ%2bEfmSA5q%2f4gflvmatVzUMP45mkXR50laH3mNwqXMzJUvkE9gqIYewzXH6uh7nMt + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: user=admin&password=password + headers: + Accept: + - text/plain + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '28' + Content-Type: + - application/x-www-form-urlencoded + Referer: + - https://ipa.noggin.test/ipa/session/login_password + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/login_password + response: + body: + string: !!binary | + H4sIAAAAAAAAAwMAAAAAAAAAAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Length: + - '20' + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - text/plain; charset=UTF-8 + Date: + - Fri, 21 Jul 2023 14:20:41 GMT + Keep-Alive: + - timeout=30, max=100 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=MagBearerToken=iLicNigwYCCy6s77%2bBJGmACnZeTi1lYD3oGqWi0czP5ca9TpMTxIlXwb4SdQbPOLBf5qdjzmr0TMF9EHCZAa6t%2fjZsn4NnESS4ge1%2fOHRAnShua5nfpLh0XE3WHCIMCFcKc1LWnvtNBp1NrAqI5YEtnJvO%2b%2fhq2b%2fdpLS3nrUiiSCHPKic1BqPqEgdQVJ6ET;path=/ipa;httponly;secure; + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "ping", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '56' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=iLicNigwYCCy6s77%2bBJGmACnZeTi1lYD3oGqWi0czP5ca9TpMTxIlXwb4SdQbPOLBf5qdjzmr0TMF9EHCZAa6t%2fjZsn4NnESS4ge1%2fOHRAnShua5nfpLh0XE3WHCIMCFcKc1LWnvtNBp1NrAqI5YEtnJvO%2b%2fhq2b%2fdpLS3nrUiiSCHPKic1BqPqEgdQVJ6ET + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqFYqLs3NTSyqBLKVPAMcFYpTi8pSixSAuDgzP0/BRM9Sz9BQ + T8ExwBMuZqRnZGqoVKujoJRaVJRfBNSZV5qTA+RmpiDYBUWZecmZBYk5IIMTU3Iz8xz8/N3dPf30 + QlyDQ5SAKqDGgeQhtijVAgAAAP//AwBMFNJnmQAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:42 GMT + Keep-Alive: + - timeout=30, max=99 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "user_del", "params": [["dummy-locked"], {"continue": false, + "version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '93' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=iLicNigwYCCy6s77%2bBJGmACnZeTi1lYD3oGqWi0czP5ca9TpMTxIlXwb4SdQbPOLBf5qdjzmr0TMF9EHCZAa6t%2fjZsn4NnESS4ge1%2fOHRAnShua5nfpLh0XE3WHCIMCFcKc1LWnvtNBp1NrAqI5YEtnJvO%2b%2fhq2b%2fdpLS3nrUiiSCHPKic1BqPqEgdQVJ6ET + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA1SOMQvCMBCF/0q4WQMFF50clOLSDnazHUJzQvCSlEsjlNL/7mVSt+/d93jcCowp + 0wwntf7i0zhCK/gYtp2Ct6GMJYHN3i97iuNL9CAqycHwIhIuSDijVTkhq/6v2gOUHWSOLNWQiSQ6 + ++WJXRjdZKgsGetdODdtXd8a3V3vHZQnkJOLofiDPuqqgu0DAAD//wMATItqyL8AAAA= + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:42 GMT + Keep-Alive: + - timeout=30, max=98 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +- request: + body: '{"method": "session_logout", "params": [[], {"version": "2.235"}]}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '66' + Content-Type: + - application/json + Cookie: + - ipa_session=MagBearerToken=iLicNigwYCCy6s77%2bBJGmACnZeTi1lYD3oGqWi0czP5ca9TpMTxIlXwb4SdQbPOLBf5qdjzmr0TMF9EHCZAa6t%2fjZsn4NnESS4ge1%2fOHRAnShua5nfpLh0XE3WHCIMCFcKc1LWnvtNBp1NrAqI5YEtnJvO%2b%2fhq2b%2fdpLS3nrUiiSCHPKic1BqPqEgdQVJ6ET + Referer: + - https://ipa.noggin.test/ipa + User-Agent: + - python-requests/2.31.0 + method: POST + uri: https://ipa.noggin.test/ipa/session/json + response: + body: + string: !!binary | + H4sIAAAAAAAAA6pWKkotLs0pUbJSqEYw80pzcmp1FJRSi4ryi6B8IDczBcEuKMrMS84sSMwBCikl + puRm5jn4+bu7e/rphbgGhygBVZSlFhVn5ueB5E30LPUMDZVqAQAAAP//AwBsV+LObgAAAA== + headers: + Cache-Control: + - no-cache, private + Connection: + - Keep-Alive + Content-Encoding: + - gzip + Content-Security-Policy: + - frame-ancestors 'none' + Content-Type: + - application/json; charset=utf-8 + Date: + - Fri, 21 Jul 2023 14:20:42 GMT + Keep-Alive: + - timeout=30, max=97 + Server: + - Apache/2.4.54 (Fedora Linux) OpenSSL/1.1.1l mod_wsgi/4.9.0 Python/3.10 mod_auth_gssapi/1.6.3 + Set-Cookie: + - ipa_session=;Max-Age=0;path=/ipa;httponly;secure; + Transfer-Encoding: + - chunked + Vary: + - Accept-Encoding + X-Frame-Options: + - DENY + status: + code: 200 + message: Success +version: 1 diff --git a/tests/unit/controller/test_root.py b/tests/unit/controller/test_root.py index 8c9e9f5a3..cf1689f31 100644 --- a/tests/unit/controller/test_root.py +++ b/tests/unit/controller/test_root.py @@ -111,6 +111,16 @@ def test_search_json_group_nonfas(client, logged_in_dummy_user, nonfas_group): assert result.json == [] +@pytest.mark.vcr() +def test_search_json_locked(client, logged_in_dummy_user, make_user): + """Test that the /search/json endpoint does not return locked accounts""" + make_user("dummy-locked") + ipa_admin.user_mod("dummy-locked", o_nsaccountlock=True) + result = client.get('/search/json?username=dummy-locked') + assert result.status_code == 200 + assert result.json == [] + + @pytest.mark.vcr() def test_healthz_liveness(client): """Test the /healthz/live check endpoint""" diff --git a/tests/unit/controller/test_user.py b/tests/unit/controller/test_user.py index 4740b50d1..d3d8473fe 100644 --- a/tests/unit/controller/test_user.py +++ b/tests/unit/controller/test_user.py @@ -69,6 +69,15 @@ def test_user_unauthed(client): ) +@pytest.mark.vcr() +def test_user_locked(client, logged_in_dummy_user, make_user): + """Test the user detail page on a locked account""" + make_user("dummy-locked") + ipa_admin.user_mod("dummy-locked", o_nsaccountlock=True) + result = client.get('/user/dummy-locked/') + assert result.status_code == 404 + + @pytest.mark.vcr() def test_user_edit(client, logged_in_dummy_user): """Test getting the user edit page: /user//settings/profile/"""