From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078728412041.tru64-unix-managers.marc@archive.invalid> From: "C.Ruhnke" Date: Thu, 19 Nov 1998 14:12:46 +0000 To: tru64-unix-managers Subject: SUMMARY: yppasswd slow response -- sometimes X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078728412041 Thanks to Spider Boardman who responded: > It's a problem in the yppasswd command for Digital UNIX. It > happens because of a getpwent() loop in that command, which does > the equivalent of `ypcat passwd.byname', except that it does it > with yp_first() and yp_next() calls, rather than with ypall() as > ypcat does it. No, similar user names will not necessarily hash > similarly, so it's all explained by (1) RPC timeouts and UDP > retransmissions, and (2) how far down the list user A happens to > be. I see no excuse for that getpwent() loop, either. Even if > it wants to have some assurance that there is such a user before > sending the password change request, it should just use > getpwnam(). If you have a support contract, you should report > this as a bug, presumably with this analysis as part of the > complaint. I will add this to my trouble call that is still being worked...! Original Post: >>> Here's a challenge for you NIS gurus: We have our NIS >>> database on HP-UX servers (1 master, 4 slaves). Users on >>> HP systems have no problems with yppasswd. >>> My DUNIX V4.0D systems -- 2 AS8200 TruCluster, 1 >>> AlphaStaion 250) -- which are configured to use the NIS >>> database for passwd service exhibit a strange performance >>> problem. Some users who try to change their passwords via >>> yppasswd have to wait up to 5 minutes before the "Old >>> password:" prompt appears. Other users will get the >>> prompt almost immediately. The problem is specific to >>> users and not to system/network load -- i.e. User A always >>> has to wait, User B always gets good response... >>> Other "yp" commands seem to function fine. In fact >>> "ypmatch passwd" always returns the passwd info >>> almost immediately for any userid. >>> Any ideas why this would happen??? Any suggestions for >>> correcting??? --CHRis - ============================================================================= Chris H. Ruhnke Phone: (314)233-7314 IBM Global Services M/S S306-6340 FAX : (314)234-2262 325 J.S. McDonnell Blvd Email: i769646@smrs013.stl.mo.boeing.com Hazelwood, MO 63042