History log of /sssd/src/tests/intg/sssd_id.py
Revision Date Author Comments Expand
de19c0af27f1576c13bef183600136851baf767d 18-Aug-2016 Lukas Slebodnik <lslebodn@redhat.com>

sssd_id.py: Primary group should be returned for initgroups Side effect of this change was that some primary groups could not be resolved and therefore get_user_groups failed in override tests. We should do the same as "id user". return decimal representation GID if it cannot be mapped to name. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

70d47ad4c89152f1e2ac4599f75f9374b631b953 10-Aug-2016 Lukas Slebodnik <lslebodn@redhat.com>

intg: Make location of sssd nss module configurable The path to sssd nss module (libsss_nss.so) was relative to prefix and expected subdirectory "lib". 32bit and 64bit platforms and different distributions use different paths. This patch allows to use python module sssd_id even with real module and not just integration tests. It is just required to prepare "config.py" with right path. e.g. cd ~/sssd/src/tests/intg [~/sssd/src/tests/intg]$ echo "NSS_MODULE_DIR = '/usr/lib64'" > config.py [~/sssd/src/tests/intg]$ python Python 2.7.12 (default, Jul 18 2016, 09:57:01) [GCC 6.1.1 20160621 (Red Hat 6.1.1-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sssd_id >>> sssd_id.get_user_gids('user') (1, 0, [5977, 1070, 5845, 1076, 1074, 10327, 5975, 5766]) Reviewed-by: Petr Čech <pcech@redhat.com>

f106125bbd8f038a93d3fabe36899391c215f937 08-Oct-2015 Pavel Březina <pbrezina@redhat.com>

intg: fix typos Reviewed-by: Pavel Reichl <preichl@redhat.com>

38b07019861240cf5107f5d51fc0027519e21619 05-Aug-2015 Lukas Slebodnik <lslebodn@redhat.com>

intg_test: Add module for simulation of utility id Reviewed-by: Michal Židek <mzidek@redhat.com>