diff options
author | Steve Dickson <steved@redhat.com> | 2011-01-14 10:12:28 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-01-14 10:12:28 -0500 |
commit | 544ed73d5ab27c1390833d5cf93b9585c151667d (patch) | |
tree | aa11fd72454bf2506cae67cc7c75d5ec6dc17473 /utils/gssd/svcgssd_proc.c | |
parent | 57be18b9ab08148a1cc9d5af588119885720be8b (diff) | |
download | nfs-utils-544ed73d5ab27c1390833d5cf93b9585c151667d.tar.gz nfs-utils-544ed73d5ab27c1390833d5cf93b9585c151667d.tar.xz nfs-utils-544ed73d5ab27c1390833d5cf93b9585c151667d.zip |
Improve debugging in svcgssd
Added in gss_display_error() which translates the GSS error into the
actual GSS macro name. Currently only the translation of these errors
are logged. Since those translations are buried deep in the kerberos
library code, having the actual GSS macro name makes it easier to
follow the code.
Moved the nfs4_init_name_mapping() call into main() so if debug is
enabled the DNS name and realms will be logged during start up.
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/svcgssd_proc.c')
-rw-r--r-- | utils/gssd/svcgssd_proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/gssd/svcgssd_proc.c b/utils/gssd/svcgssd_proc.c index 3894078..0ecbab6 100644 --- a/utils/gssd/svcgssd_proc.c +++ b/utils/gssd/svcgssd_proc.c @@ -241,7 +241,7 @@ get_ids(gss_name_t client_name, gss_OID mech, struct svc_cred *cred) "file for name '%s'\n", sname); goto out_free; } - nfs4_init_name_mapping(NULL); /* XXX: should only do this once */ + res = nfs4_gss_princ_to_ids(secname, sname, &uid, &gid); if (res < 0) { /* |