summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1996-10-23 15:42:37 +0000
committerBill Paul <wpaul@FreeBSD.org>1996-10-23 15:42:37 +0000
commit511db384cf1acea810244d55b973bb3dbace7e2c (patch)
tree8d1d238b70e00623aaf55c55be7259f71e1db63b
parent967a5cb1816c79f270d86c9ad2152eefc68805c0 (diff)
Notes
-rw-r--r--usr.sbin/rpc.yppasswdd/yppasswdd_main.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
index 85214321a915..fd38a4cb1e64 100644
--- a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
+++ b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: yppasswdd_main.c,v 1.4 1996/06/23 22:44:04 wpaul Exp $
+ * $Id: yppasswdd_main.c,v 1.5 1996/10/22 14:58:10 wpaul Exp $
*/
#include "yppasswd.h"
@@ -72,7 +72,7 @@ struct dom_binding {};
#define _RPCSVC_CLOSEDOWN 120
#ifndef lint
-static const char rcsid[] = "$Id: yppasswdd_main.c,v 1.4 1996/06/23 22:44:04 wpaul Exp $";
+static const char rcsid[] = "$Id: yppasswdd_main.c,v 1.5 1996/10/22 14:58:10 wpaul Exp $";
#endif /* not lint */
int _rpcpmstart = 0; /* Started by a port monitor ? */
static int _rpcfdtype;
@@ -262,13 +262,15 @@ name isn't set -- aborting");
load_securenets();
if (getrpcport("localhost", YPPROG, YPVERS, IPPROTO_UDP) <= 0) {
+ yp_error("no ypserv processes registered with local portmap");
yp_error("this host is not an NIS server -- aborting");
exit(1);
}
if ((mastername = ypxfr_get_master(yppasswd_domain, "passwd.byname",
"localhost",0)) == NULL) {
- yp_error("can't get name of NIS master server");
+ yp_error("can't get name of NIS master server for domain %s",
+ yppasswd_domain);
exit(1);
}
@@ -278,7 +280,10 @@ name isn't set -- aborting");
}
if (strncmp(mastername, (char *)&myname, sizeof(myname))) {
- yp_error("this host is not an NIS master server -- aborting");
+ yp_error("master of %s is %s, but we are %s",
+ "passwd.byname", mastername, myname);
+ yp_error("this host is not the NIS master server for \
+the %s domain -- aborting", yppasswd_domain);
exit(1);
}