chpwd.c

A command line NDS password changing utility

Purpose:

  • In our environnment, Linux accounts are authenticated using the PAM_NCP authentification module and have their Unix home on a Linux NFS server. Users should be able to change their commun Linux/Netware password from Linux without using a Windows workstation.

  • This application what meant to be called by a graphical front end in TCL/Tk that takes care of the quite complex command line. It is a revised version of Petr's contrib/testing/chgpwd.c (that is still there).

  • Another graphical application, using Kylix and native calls to ncpfs shared library is available here

    Requirements:

    Usage:

    usage: chgpwd [options]
    
    -h Print this help text
    -v value Context DCK_FLAGS value (default 0)
    -o object_name Name of object (default [Root]) <-- should be me (?)
    -c context_name Name of current context (default [Root]) <- wrong ,fetch environnement values?
    -C confidence DCK_CONFIDENCE value (default 0)
    -S server Server to start with (no default) <- wrong ,fetch environnement values ?
    -T tree NDS tree (no default)
    -P password Old password (default TEST)
    -n newpassword New password (default T2)
    -r Raw, do not uppercase passwords

    Download:

    History:

     Revision history:
    
            1.00  2000, April 25            Petr Vandrovec 
                    Initial revision.
    
            1.01  2001, February 23         Petr Vandrovec 
                    Added '-r' option. Feature request from Patrick Pollet.
    
            1.02  2001, March 14            Patrick Pollet
                    Added -T' option.
                    Added errors code specific to password changing
    
            1.03  2001, December 16         Petr Vandrovec 
                    const <-> non-const pointers cleanup
                    Moved error codes to libncp.
    
            1.04 2002 March 14 , Patrick Pollet
                    try to fix absent context problem by retrieving Default context and default tree if they exists
    
    	1.05 2003 Feb 24  , Patrick Pollet
    		core dump when called with chgpwd -h ( I cannot believe it !)
    		initialized ctx to NULL in main .
    
    
    TODO:


    Vous êtes notre Counter (Security) eme visiteur