[Samba] Samba password change

Kestutis Saldziunas k.saldziunas at medbank.lt
Tue Feb 12 04:29:02 GMT 2002


Hello, 

For last couple days I try to implement voluntary password change for Samba 2.2.3a  PDC from Windows clients. As I wrote before error is :

On windows :
Unable to change pwd for Microsoft Windows because of following error: Incorrect password.

On server log of workstation:
[2002/02/05 11:58:28, 0] smbd/chgpasswd.c:check_oem_password(761)
  check_oem_password: getsmbpwnam returned NULL
[2002/02/05 11:58:28, 0] passdb/passdb.c:pdb_free_sam(210)
  pdb_free_sam: SAM_ACCOUNT was NULL


Please somebody guide me on this problem as I relly not expierenced in working with Linux.
So my question:

Do at all is it posible with smbpasswd voluntary change passwords ? 
Or do I have use PAM (but it do not support encrypted passwors and I use domain logons) or ldap ? Because in passdb.c I found structural info (listede below)for SAM acount and seems that smbpasswd does not contain such information.


I would very appreciate any comments on  this subject.

Kestutis



from passdb.c
static BOOL pdb_fill_default_sam(SAM_ACCOUNT *user)
{
        if (user == NULL) {
                DEBUG(0,("pdb_fill_default_sam: SAM_ACCOUNT was NULL\n"));
                return False;
        }

        ZERO_STRUCTP(user);

        user->init_flag                 = FLAG_SAM_UNINIT;
        user->uid = user->gid           = -1;
        user->logon_time            = (time_t)0;
        user->pass_last_set_time    = (time_t)0;
        user->pass_can_change_time  = (time_t)0;
        user->logoff_time           =
        user->kickoff_time          =

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list