*BSD News Article 91226


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!msunews!news.mtu.edu!newsxfer.itd.umich.edu!newsxfer3.itd.umich.edu!howland.erols.net!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news.maxwell.syr.edu!newsfeed.nacamar.de!news-kar1.dfn.de!news-stu1.dfn.de!news-mue1.dfn.de!news-nue1.dfn.de!news-lei1.dfn.de!news-ber1.dfn.de!zrz.TU-Berlin.DE!loch.in-brb.de!bluesprings.in-brb.de!bluesprings.in-brb.de!not-for-mail
From: nuggets@bluesprings.in-brb.de (Lars Hentschke)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: NIS und 2.1.7 ?
Date: 16 Mar 1997 19:41:58 GMT
Organization: Brandenburg Individual Network e.V.
Lines: 36
Message-ID: <5ghie6$klt@bluesprings.in-brb.de>
NNTP-Posting-Host: bluesprings.in-brb.de
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37177


Since I upgraded my FreeBSD-2.1.0 to 2.1.7 - the tac_plus deamon
don't wanted to work correctly with an NIS-Server (SunOS or HPUX).

So i've wrote this little test-program which normally shows me all
lokal accounts and then the other NIS-accounts.
But only lokal accounts was displayed.
BUT login on NIS-Accounts are working!

i've compiled this with "gcc bla.c"
What do i have forgotten?

-------------
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>

main()
{

  struct passwd *pw;

  setpwent();

  while(pw=getpwent()) {
    printf("user='%s'\n", pw->pw_name);
    printf("pass='%s'\n", pw->pw_passwd);
  }

}                                                             

-- 
+-----------------------------------------------------------------------------+
| Lars Hentschke, Brandenburg Individual Network     Telefon:    033052-51982 |
| http://www.in-brb.de/~nuggets/                     EMail: nuggets@in-brb.de |
+-----------------------------------------------------------------------------+