[Freeipa-devel] [PATCH] admiyo-freeipa-0023-user-whoami.patch

Adam Young ayoung at redhat.com
Sat Sep 11 01:29:17 UTC 2010


   user whoami
     Added a whoami option to the user, allows the user to query their 
own information based on their Kerberos principal


https://fedorahosted.org/freeipa/attachment/ticket/47/admiyo-freeipa-0023-user-whoami.patch

This will be used to return the users principal and rolegroups.


Test with :

curl   -H "Content-Type:application/json"          -H 
"Accept:applicaton/json" -H "Accept-Language:es"        --negotiate -u 
:          --cacert /etc/ipa/ca.crt           -d  
'{"method:"user_find","params":[[],{ "all":true,"whoami":"True" } 
],"id":0}'          -X POST       http://127.0.0.1:8888/ipa/json



as well as

ipa user-find --whoami --all
-------------- next part --------------
A non-text attachment was scrubbed...
Name: admiyo-freeipa-0023-user-whoami.patch
Type: text/x-patch
Size: 1356 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100910/828196e0/attachment.bin>


More information about the Freeipa-devel mailing list