SUNRPC: Fix machine creds in generic_create_cred and generic_match
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 23 Jan 2012 17:49:36 +0000 (12:49 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 23 Jan 2012 22:03:46 +0000 (14:03 -0800)
- generic_create_cred needs to copy the '.principal' field.
- generic_match needs to ignore the groups and match on the '.principal'
  field.

This fixes an Oops that was introduced by commit 68c9715 (SUNRPC:
Clean up the RPCSEC_GSS service ticket requests)

Reported-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: J. Bruce Fields <bfields@redhat.com>

No differences found