[ngw] Export list of Users' Advanced Auth status
Georg Fritsch FCP
gf at fcp.at
Tue Jan 24 07:57:03 UTC 2023
Hi James,
I am glad it worked.
Going forward, this skeleton code can be easily expanded to do other tasks as well.
Just add additional REST calls to gw\components\client.py
However, the "get_request_paged" function might need some tweaking to work for all calls and not only "/list/user".
Georg
>>> "James Taylor" <James.Taylor at eastcobbgroup.com> 23.01.2023 22:29 >>>
Hi Georg -
Worked great.
Just had to make sure I ran python3 and isntalled the necessary modules.
Thanks,
-jt
James Taylor
678-697-9420
james.taylor at eastcobbgroup.com
>>> "Georg Fritsch FCP" <gf at fcp.at> 1/23/2023 5:41 AM >>>
Hi James,
Here is download link for a quite minimal python code that outputs the
AAstatus for all users in a GW system.
https://filr.fcp.at/filr/public-link/file-download/2c9086be8554ad4d0185de2db14d1e51/16822/8092565826409912614/AA.ZIP
(~4KB)
You need to have python with all required dependencies installed (take
a look at the imports for the required modules)
You need to set the admin username and admin password in rest.py and
the serverip and port in gw/client.py.
Start with "python rest.py aa"
This should print
"Domain,PostOffice,Username,AAStatus"
for all users in the system.
Please note that i have only done minimal testing and error handling.
It works on my system, your milage may vary.
Best regards,
Georg
>>> "James Taylor" <James.Taylor at eastcobbgroup.com> 20.01.2023 20:22
>>>
Hi Georg -
It's helpful see that I'm looking for aastatus.
I was getting some really strange output in my browser, until I
realized I had it set to respond as chrome instead of firefox. Much
better now.
If you decide to write a python script, I'd appreciate a copy.
Thanks,
-jt
James Taylor
678-697-9420
james.taylor at eastcobbgroup.com
>>> "Georg Fritsch FCP" <gf at fcp.at> 1/19/2023 11:48 AM >>>
Hi James,
This is available over the REST API Endpoint (you can test in a
browser)
:/gwadmin-service/domains//postoffices//users/https://<IP-or-DNS>:<Port>/gwadmin-service/domains/<domname>/postoffices/<poname>/users/<username>/clientoptions
the result contains something like:
(Maybe i can hack something together in Python (shouldn't be to hard,
we need this as well) to get the info for all users.)
...
<AAStatus>
"<lock>
<itemLocked>false</itemLocked>
<lockAvailable>false</lockAvailable>
<lockLevel>NONE</lockLevel>
<lockRights>LOCK_USER</lockRights>
<modifiable>true</modifiable>
</lock>
<value>REQUIRED</value>
</AAStatus>
...
--
Georg Fritsch
IT-Leiter
FCP - Fritsch, Chiari & Partner ZT GmbH
Marxergasse 1 b
A-1030 Wien
Tel: +43 (1) 90 292 - 1260
Fax: +43 (1) 90 292 - 2260
gfritsch at fcp.at
http://www.fcp.at
FN 134301b
Handelsgericht Wien
>>> "James Taylor" <James.Taylor at eastcobbgroup.com> 19.01.2023 16:52
>>>
Greetings -
I need to export a list of users with their Advanced Auth status,
primarily for an FDIC audit, but not a bad thing to have generally.
I have been playing around with the REST options in gwadmin-services
section, but I haven't been able to generate any results that include
any Advanced Auth info.
Does anyone have any suggestions or references?
-jt
James Taylor
678-697-9420
james.taylor at eastcobbgroup.com
_______________________________________________
ngw mailing list
ngw at ngwlist.com
http://ngwlist.com/mailman/listinfo/ngw
_______________________________________________
ngw mailing list
ngw at ngwlist.com
http://ngwlist.com/mailman/listinfo/ngw
_______________________________________________
ngw mailing list
ngw at ngwlist.com
http://ngwlist.com/mailman/listinfo/ngw
More information about the ngw
mailing list