[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba-cvs
Subject:    CVS update: samba/source/libsmb
From:       jerry () au2 ! samba ! org (Gerald Carter)
Date:       2000-12-21 21:12:32
[Download RAW message or body]

Date:	Friday December 22, 2000 @ 8:12
Author:	jerry

Update of /data/cvs/samba/source/libsmb
In directory samba:/tmp/cvs-serv1297

Modified Files:
      Tag: APPLIANCE_TNG
	pwd_cache.c 
Log Message:
copied from code

void pwd_read(struct pwd_info *pwd, char *passwd_report, BOOL do_encrypt)
{
        /* grab a password */
        char *user_pass;

        pwd_init(pwd);

        user_pass = (char *)getpass(passwd_report);

        /***********************************************
         This code was commented out for the following
         scenario--  When using the createuser subcommand
         under samedit, an administrative account with an
         empty password could not create an account because
         no usr_sess_key (nor password hashes) was being
         generated.

         In order to use the pwd->null_pwd branches in the code
         now, you should use a -N switch on the samedit command
         (in case for some reason you want the createuser
         command to fail?! :-)

         Otherwise, and empty password string will always
         be considered as an empty password and the standard
         password (or password hash) authentication rules will
         apply.    -- jerry [Thu Dec 21 14:12:15 CST 2000]
         ************************************************/
#if 0   /* --jerry */
        if (user_pass == NULL || user_pass[0] == 0)
        {
                pwd_set_nullpwd(pwd);
        }
        else if (do_encrypt)
#endif

        if (do_encrypt)
        {
                pwd_make_lm_nt_16(pwd, user_pass);
        }
        else
        {
                pwd_set_cleartext(pwd, user_pass);
        }
}




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic