On Tue, Jul 15, 2014 at 06:15:43PM +0200, Jakub Hrozek wrote:btw this worked with a setup where "sss" was not present in the
> > How to test:
> > libnfsidmap.git comes with a small C code named "libtest.c" which allows
> > you to directly test the various function from 'struct trans_func'.
> > I modified this code a bit to match our needs (and attached to this email).
> > compile/link with:
> > gcc -o libtest libtest.c -lnfsidmap
> > run like this:
> > $ ./libtest noam@localdomain 0 users@localdomain 101
> > expected output:
> > input: user=noam@localdomain uid=0 group=users@localdomain gid=101
> > nfs4_name_to_uid: username noam@localdomain has uid 1000
> > nfs4_name_to_gid: username users@localdomain has gid 100
> > nfs4_uid_to_name: uid 0 has name root@localdomain
> > nfs4_gid_to_name: gid 101 has name libuuid@localdomain
> Thank you, I will test using the program so far.
> > Unfortunately, I don't have an LDAP environment at the moment to test it
> > myself. So what you see here is the result of the default idmapd.conf
> > running with the "nss" plugin (going to /etc/passwd ...)
> np, I can test with your program. Thanks again.
nsswitch.conf file at all, just sssd was running:
$ ./libtest email@example.com 1832200001 firstname.lastname@example.org 1832200002
input: email@example.com uid=1832200001 firstname.lastname@example.org gid=1832200002
nfs4_name_to_uid: username email@example.com has uid 1832200000
nfs4_name_to_gid: username firstname.lastname@example.org has gid 1832200000
nfs4_uid_to_name: uid 1832200001 has name tuser
nfs4_gid_to_name: gid 1832200002 has name editors
$ getent passwd email@example.com
$ echo $?
I also checked with strace that the NSS responder socket was being
contacted. So now I know that the plugin does work, great!