[Freeipa-devel] [PATCH] JSON client: Log pretty-printed request and response with -vvv or above
Petr Viktorin
pviktori at redhat.com
Tue Sep 23 13:13:28 UTC 2014
https://fedorahosted.org/freeipa/ticket/4233
$ ipa -vvv user-show admin
ipa: INFO: trying https://vm-073.idm.lab.eng.brq.redhat.com/ipa/json
ipa: INFO: Forwarding 'user_show' to json server
'https://vm-073.idm.lab.eng.brq.redhat.com/ipa/json'
ipa: INFO: Request: {
"id": 0,
"method": "user_show",
"params": [
[
"admin"
],
{
"all": false,
"no_members": false,
"raw": false,
"rights": false,
"version": "2.102"
}
]
}
[...bunch of output omitted...]
ipa: INFO: Response: {
"error": null,
"id": 0,
"principal": "admin at IDM.LAB.ENG.BRQ.REDHAT.COM",
"result": {
"result": {
"dn":
"uid=admin,cn=users,cn=accounts,dc=idm,dc=lab,dc=eng,dc=brq,dc=redhat,dc=com",
"gidnumber": [
"364800000"
],
"has_keytab": true,
"has_password": true,
"homedirectory": [
"/home/admin"
],
"loginshell": [
"/bin/bash"
],
"memberof_group": [
"admins",
"trust admins"
],
"nsaccountlock": false,
"sn": [
"Administrator"
],
"uid": [
"admin"
],
"uidnumber": [
"364800000"
]
},
"summary": null,
"value": "admin"
},
"version": "4.0.0GIT88bea65"
}
User login: admin
Last name: Administrator
Home directory: /home/admin
Login shell: /bin/bash
UID: 364800000
GID: 364800000
Account disabled: False
Password: True
Member of groups: admins, trust admins
Kerberos keys available: True
--
Petr³
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-pviktori-0648-JSON-client-Log-pretty-printed-request-and-response-.patch
Type: text/x-patch
Size: 2718 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20140923/8eec6728/attachment.bin>
More information about the Freeipa-devel
mailing list