• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI Programming for NIS  RSS feed

 
Mike Cutter
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone had experience programming interfaces with the JNDI for Network Information Service (NIS), formerly known as Yellow Pages (yp), in the UNIX operating environments?

Are there any sites with some Java coding examples for NIS user administration like changing passwords and adding and deleting users?

Thanks,

Mike Cutter
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mike,

I really don't expect anyone to answer to your question, since this is a J2EE/EJB forum. However just because I'm a curios person I spent several minutes on this IBM site:

http://publib.boulder.ibm.com/infocenter/pseries/index.jsp?topic=/com.ibm.aix.doc/aixbman/nisplus/nis_intro.htm

Is my belief that NIS provides a low level API implemented as C routines and this makes a lot of sense. It might be conceivable that because of its low-level nature, Java is not a suitable solution. Just for the argument sake, let's imagine that you need to implement a NIC driver that should process bite streams as they come from the network and translate them in a network specific protocol. Obviously Java would never fit since it depends upon the jvm and your network protocol will require first to have jvm installed and running. It doesn't make any sense. I guess that NIS might be the same.
However if you really need to use Java for this and no Java interfaces are provided, you still can write C libraries and use JNI to integrate with Java. However form a designing perspective it doesn't make any sense.
I would really appreciate if you'd satisfy my curiosity and explain me why do you need Java for and why C is not good enough.
Regards.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!