[SSSD] [PATCH v3 0/4] NFSv4 rpc.idmapd plugin

Jakub Hrozek jhrozek at redhat.com
Tue Jul 15 17:21:00 UTC 2014


On Tue, Jul 15, 2014 at 06:15:43PM +0200, Jakub Hrozek wrote:
> > 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 at localdomain 0 users at localdomain 101
> > 
> > expected output:
> > input: user=noam at localdomain uid=0 group=users at localdomain gid=101
> > nfs4_name_to_uid: username noam at localdomain has uid 1000
> > nfs4_name_to_gid: username users at localdomain has gid 100
> > nfs4_uid_to_name: uid 0 has name root at localdomain
> > nfs4_gid_to_name: gid 101 has name libuuid at 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.

btw this worked with a setup where "sss" was not present in the
nsswitch.conf file at all, just sssd was running:

$ ./libtest admin at ipa.example.com 1832200001 admins at ipa.example.com 1832200002
input: user=admin at ipa.example.com uid=1832200001 group=admins at ipa.example.com gid=1832200002
nfs4_name_to_uid: username admin at ipa.example.com has uid 1832200000
nfs4_name_to_gid: username admins at ipa.example.com has gid 1832200000
nfs4_uid_to_name: uid 1832200001 has name tuser
nfs4_gid_to_name: gid 1832200002 has name editors
$ getent passwd admin at ipa.example.com
$ echo $?
2

I also checked with strace that the NSS responder socket was being
contacted. So now I know that the plugin does work, great!



More information about the sssd-devel mailing list