diff options
| author | neilbrown <neilbrown> | 2004-09-15 01:58:37 +0000 |
|---|---|---|
| committer | neilbrown <neilbrown> | 2004-09-15 01:58:37 +0000 |
| commit | 553caba3865667724291106d919e7c3fdf9534aa (patch) | |
| tree | 3540d319d70f7fa3d5c6e05c1c2ce24e4bdc85ac /support/export | |
| parent | fcb905a5392c31a4c31e7d9e616e691d61358731 (diff) | |
| download | nfs-utils-553caba3865667724291106d919e7c3fdf9534aa.tar.gz nfs-utils-553caba3865667724291106d919e7c3fdf9534aa.tar.xz nfs-utils-553caba3865667724291106d919e7c3fdf9534aa.zip | |
Prepare to support gss authentication and idmap looks for nfsv4
Diffstat (limited to 'support/export')
| -rw-r--r-- | support/export/client.c | 4 | ||||
| -rw-r--r-- | support/export/nfsctl.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/support/export/client.c b/support/export/client.c index 3db21ae..3884795 100644 --- a/support/export/client.c +++ b/support/export/client.c @@ -392,6 +392,8 @@ client_check(nfs_client *clp, struct hostent *hp) #endif case MCL_ANONYMOUS: return 1; + case MCL_GSS: + return 0; default: xlog(L_FATAL, "internal: bad client type %d", clp->m_type); } @@ -425,6 +427,8 @@ client_gettype(char *ident) if (ident[0] == '\0' || strcmp(ident, "*")==0) return MCL_ANONYMOUS; + if (strncmp(ident, "gss/", 4) == 0) + return MCL_GSS; if (ident[0] == '@') { #ifndef HAVE_INNETGR xlog(L_WARNING, "netgroup support not compiled in"); diff --git a/support/export/nfsctl.c b/support/export/nfsctl.c index 5f5accc..e9ffeb5 100644 --- a/support/export/nfsctl.c +++ b/support/export/nfsctl.c @@ -27,7 +27,7 @@ export_export(nfs_export *exp) struct nfsctl_export exparg; struct nfsctl_client cltarg; - if (!clp->m_exported) { + if (!clp->m_exported && (clp->m_type != MCL_GSS)) { if (!cltsetup(&cltarg, clp)) return 0; if (nfsaddclient(&cltarg) < 0) |
