From patchwork Mon Oct 29 17:35:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 195097 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org X-Greylist: delayed 1231 seconds by postgrey-1.34 at bilbo; Tue, 30 Oct 2012 04:56:11 EST Received: from userp1050.oracle.com (userp1050.oracle.com [156.151.31.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "userp1050.oracle.com", Issuer "VeriSign Class 3 International Server CA - G3" (not verified)) by ozlabs.org (Postfix) with ESMTPS id ED92D2C007D for ; Tue, 30 Oct 2012 04:56:11 +1100 (EST) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by userp1050.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q9THZfsj017094 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 29 Oct 2012 17:35:41 GMT Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q9THZaTN030718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 29 Oct 2012 17:35:37 GMT Received: from oss.oracle.com (oss-external.oracle.com [137.254.96.51]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q9THZa8J003127 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Oct 2012 17:35:36 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1TStFQ-00053J-8N; Mon, 29 Oct 2012 10:35:36 -0700 Received: from acsinet22.oracle.com ([141.146.126.238]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1TStFO-00053A-28 for fedfs-utils-devel@oss.oracle.com; Mon, 29 Oct 2012 10:35:34 -0700 Received: from rcsinet11.oracle.com (rcsinet11.oracle.com [148.87.113.123]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q9THZXgQ019133 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 29 Oct 2012 17:35:33 GMT Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by rcsinet11.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q9THZW4p004748 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Mon, 29 Oct 2012 17:35:32 GMT Received: by mail-ie0-f171.google.com with SMTP id s9so6643082iec.2 for ; Mon, 29 Oct 2012 10:35:32 -0700 (PDT) Received: by 10.42.101.11 with SMTP id c11mr26466953ico.52.1351532132056; Mon, 29 Oct 2012 10:35:32 -0700 (PDT) Received: from seurat.1015granger.net ([99.26.161.222]) by mx.google.com with ESMTPS id az4sm6502367igb.2.2012.10.29.10.35.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Oct 2012 10:35:29 -0700 (PDT) From: Chuck Lever To: fedfs-utils-devel@oss.oracle.com Date: Mon, 29 Oct 2012 13:35:28 -0400 Message-ID: <20121029173528.53098.78574.stgit@seurat.1015granger.net> In-Reply-To: <20121029173011.53098.41779.stgit@seurat.1015granger.net> References: <20121029173011.53098.41779.stgit@seurat.1015granger.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Flow-Control-Info: class=Default reputation=ipRepBelow100 ip=209.85.223.171 ct-class=R4 ct-vol1=-97 ct-vol2=9 ct-vol3=8 ct-risk=30 ct-spam1=37 ct-spam2=8 ct-bulk=6 rcpts=1 size=1693 X-MM-CT-Classification: not spam X-MM-CT-RefID: str=0001.0A090201.508EBE65.0032,ss=1,re=0.000,fgs=0 Subject: [fedfs-utils] [PATCH 7/9] nsdbc: Update nsdb-nces message X-BeenThere: fedfs-utils-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: fedfs-utils Developers List-Id: fedfs-utils Developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: fedfs-utils-devel-bounces@oss.oracle.com Errors-To: fedfs-utils-devel-bounces@oss.oracle.com X-Source-IP: userp1040.oracle.com [156.151.31.81] "naming context o=fedfs is not a FedFS NCE" is not accurate. A naming context can be an NCE, but usually the NCE is a descendent entry. Update this message to make better sense. Signed-off-by: Chuck Lever --- doc/man/nsdb-nces.8 | 6 +++--- src/nsdbc/nsdb-nces.c | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/doc/man/nsdb-nces.8 b/doc/man/nsdb-nces.8 index ddbf8e4..fbd18cc 100644 --- a/doc/man/nsdb-nces.8 +++ b/doc/man/nsdb-nces.8 @@ -218,11 +218,11 @@ $ nsdb-nces -l ldap.example.net .br Host: ldap.example.net:389 .br - namingContext 'dc=example,dc=net' is not a FedFS NCE. + namingContext 'dc=example,dc=net' does not host an NCE. .br - namingContext 'o=fedfs' is a FedFS NCE, DIT starts at 'o=fedfs'. + namingContext 'o=fedfs' hosts an NCE at 'o=fedfs'. .br - namingContext 'o=netscaperoot' is not a FedFS NCE. + namingContext 'o=netscaperoot' does not host an NCE. .sp .RE This shows there are three LDAP naming contexts on the target LDAP server. diff --git a/src/nsdbc/nsdb-nces.c b/src/nsdbc/nsdb-nces.c index edfdf67..ec7b9d9 100644 --- a/src/nsdbc/nsdb-nces.c +++ b/src/nsdbc/nsdb-nces.c @@ -216,11 +216,10 @@ main(int argc, char **argv) retval = nsdb_get_nceprefix_s(host, contexts[i], &dn, &ldap_err); printf(" namingContext '%s' ", contexts[i]); if (retval == FEDFS_OK) { - printf("is a FedFS NCE, DIT starts at '%s'.\n", dn); + printf("hosts an NCE at '%s'.\n", dn); free(dn); - retval = FEDFS_OK; } else - printf("is not a FedFS NCE.\n"); + printf("does not host an NCE.\n"); } nsdb_free_string_array(contexts);