summaryrefslogtreecommitdiff
path: root/src/python/pysss_nss_idmap.c
AgeCommit message (Collapse)AuthorFilesLines
2013-05-23pysss_nss_idmap: do not treat strings as sequencesSumit Bose1-1/+1
The current PySequence_Check() also catches single strings with the effect that the string is split into characters which are send as arguments to SSSD individually. With this patch only tuples and lists are treated as sequences.
2013-05-13Add support for tuples and unicode pysss_nss_idmap.soSumit Bose1-20/+39
https://fedorahosted.org/sssd/ticket/1905 https://fedorahosted.org/sssd/ticket/1914 This patch allows tuples as well as lists as input and adds support for Unicode objects as input and always returns the results as Unicode objects.
2013-05-10Fix missing initialization in Python bindings for libsss_nss_idmapSumit Bose1-1/+1
If sss_nss_getsidbyid() fails free() will try to work on an uninitialized value.
2013-05-03Add python interface to libsss_nss_idmapSumit Bose1-0/+351
To allow to use libsss_nss_idmap from python applications, e.g. the FreeIPA server, the patch adds pythin bindings to libsss_nss_idmap. The contributed spec file will place the python bindings in a new package called libsss_nss_idmap-python. Alexander Bokovoy <abokovoy@redhat.com> kindly provided the code to check the type of the python objects and loop over the list entries.