From: Steve Dickson <SteveD@redhat.com>
To: Steve Dickson <steved@redhat.com>
Cc: Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] nfsidmap: Default domain not being set.
Date: Thu, 05 Jul 2012 15:38:44 -0400 [thread overview]
Message-ID: <4FF5ED44.2000702@RedHat.com> (raw)
In-Reply-To: <1341493903-20835-1-git-send-email-steved@redhat.com>
On 07/05/2012 09:11 AM, Steve Dickson wrote:
> nfsidmap is not calling the nfs4_init_name_mapping()
> function which initializes the default domain from
> either the DNS domain or the Domain variable in /etc/idmap.conf
>
> Signed-off-by: Steve Dickson <steved@redhat.com>
Committed...
steved.
> ---
> utils/nfsidmap/nfsidmap.c | 20 +++++++-------------
> 1 file changed, 7 insertions(+), 13 deletions(-)
>
> diff --git a/utils/nfsidmap/nfsidmap.c b/utils/nfsidmap/nfsidmap.c
> index b767395..e14543c 100644
> --- a/utils/nfsidmap/nfsidmap.c
> +++ b/utils/nfsidmap/nfsidmap.c
> @@ -37,17 +37,6 @@ static int keyring_clear(char *keyring);
> #define GIDKEYS 0x2
>
> /*
> - * Check to the config file for the verbosity level
> - */
> -int
> -get_config_verbose(char *path)
> -{
> - conf_path = path;
> - conf_init();
> - return conf_get_num("General", "Verbosity", 0);
> -}
> -
> -/*
> * Find either a user or group id based on the name@domain string
> */
> int id_lookup(char *name_at_domain, key_serial_t key, int type)
> @@ -282,9 +271,14 @@ int main(int argc, char **argv)
> break;
> }
> }
> - if (!verbose) {
> - verbose = get_config_verbose(PATH_IDMAPDCONF);
> +
> + if (nfs4_init_name_mapping(PATH_IDMAPDCONF)) {
> + xlog_err("Unable to create name to user id mappings.");
> + return 1;
> }
> + if (!verbose)
> + verbose = conf_get_num("General", "Verbosity", 0);
> +
> if (keystr) {
> rc = key_revoke(keystr, keymask);
> return rc;
prev parent reply other threads:[~2012-07-05 19:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-05 13:11 [PATCH] nfsidmap: Default domain not being set Steve Dickson
2012-07-05 19:38 ` Steve Dickson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FF5ED44.2000702@RedHat.com \
--to=steved@redhat.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.