arlut.csd.ganymede.client
Class rpcpass

java.lang.Object
  |
  +--arlut.csd.ganymede.client.rpcpass
All Implemented Interfaces:
ClientListener

public class rpcpass
extends java.lang.Object
implements ClientListener

Command line application to update user account password, shell, and/or gecos information based on interaction with the rpc.yppasswdd daemon from the Linux NIS kit, versions 1.3.6.92 and above, using the -x option.

This client uses the ClientBase client stub for communications with the server.

This code should be considered quasi-deprecatd, because the NIS passwd daemon can't pass plaintext to Ganymede, making it useless for updating Samba, md5 or NT password hashes.


Field Summary
static java.lang.String cryptedpass
           
static java.lang.String gecos
           
private static arlut.csd.ganymede.client.ClientBase my_client
          RMI object to handle getting us logged into the server, and to handle asynchronous callbacks from the server on our behalf.
static java.lang.String oldpass
           
static int registryPortProperty
           
static java.lang.String rootname
           
static java.lang.String serverHostProperty
           
static java.lang.String shell
           
static java.lang.String username
           
 
Constructor Summary
rpcpass()
           
 
Method Summary
 void disconnected(arlut.csd.ganymede.client.ClientEvent e)
          Called when the server forces a disconnect.
static boolean loadProperties(java.lang.String filename)
          This method loads properties from the ganymede.properties file.
static void main(java.lang.String[] argv)
           
 void messageReceived(arlut.csd.ganymede.client.ClientEvent e)
          Called when the ClientBase needs to report something to the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serverHostProperty

public static java.lang.String serverHostProperty

rootname

public static java.lang.String rootname

registryPortProperty

public static int registryPortProperty

username

public static java.lang.String username

oldpass

public static java.lang.String oldpass

cryptedpass

public static java.lang.String cryptedpass

shell

public static java.lang.String shell

gecos

public static java.lang.String gecos

my_client

private static arlut.csd.ganymede.client.ClientBase my_client
RMI object to handle getting us logged into the server, and to handle asynchronous callbacks from the server on our behalf.

Constructor Detail

rpcpass

public rpcpass()
Method Detail

main

public static void main(java.lang.String[] argv)

loadProperties

public static boolean loadProperties(java.lang.String filename)

This method loads properties from the ganymede.properties file.

This method is public so that loader code linked with the Ganymede server code can initialize the properties without going through Ganymede.main().


disconnected

public void disconnected(arlut.csd.ganymede.client.ClientEvent e)

Called when the server forces a disconnect.

Call getMessage() on the ClientEvent to get the reason for the disconnect.

Specified by:
disconnected in interface ClientListener

messageReceived

public void messageReceived(arlut.csd.ganymede.client.ClientEvent e)

Called when the ClientBase needs to report something to the client. The client is expected to then put up a dialog or do whatever else is appropriate.

Call getMessage() on the ClientEvent to get the reason for the disconnect.

Specified by:
messageReceived in interface ClientListener