History log of /sssd/src/lib/sifp/sss_sifp_attrs.c
Revision Date Author Comments Expand
973be642f3d33ba21ea9c06791295f09efcdba46 16-Jul-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: set output parameters if attribute is NULL There are two cases that may happen when a user calls Get or GetAll: 1) the attribute is missing 2) the attribute is empty sss_sifp has two error code to distinguish between those two cases: 1) SSS_SIFP_ATTR_MISSING 2) SSS_SIFP_ATTR_NULL Usually the caller is not interested on situations when the attribute is empty and it can be considered as error. Having it as a separate error code instead of setting the output value to NULL is necesarry since attribute does not have to be a pointer. This patch however sets pointer type attributes to NULL since it may simplify the code path when the caller is actually interested in this information (e. g. empty server list on domain objects). It is not possible to send a NULL string over a D-Bus nor it is possible to have hash table NULL with current code so these two scenarios are not tested. However, it is handled in sss_sifp_attr code for completeness. Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

efa6c1f75c4c18bcc148d6e7efd429c2d56499ad 29-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: add support for string dictionary https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>

91cf6f4c6069d6aff01aab171825e83a1a669e2f 29-May-2014 Pavel Březina <pbrezina@redhat.com>

sss_sifp: implement API https://fedorahosted.org/sssd/ticket/2254 Reviewed-by: Sumit Bose <sbose@redhat.com>