[Samba] Machine account keep expiring

Umberto Zanatta uzanatta at gmail.com
Thu Dec 14 21:11:19 GMT 2006


I've a problem with samba and ldap but it's the first time that samba
works so bad.

I made a network with samba and a few of windows client. Since four
months (the networks was made on january) and every 10/12 days the
workstations go out from the domain.

The user can't log, and when i try logging with administrator It ask me
to change him password.

So I must unjoin the workstation from the domain and join again.

on log files i found that:

  sam_account_ok: Account for user 'administrator' password expired!.
[2006/10/12 18:00:18, 1] auth/auth_sam.c:sam_account_ok(160)
  sam_account_ok: Password expired at 'Thu, 27 Apr 2006 13:55:38
GMT' (1146138938) unix time.
 account expires!

Pdbedit writes down:

Unix username:        administrator
NT username:          administrator
Account Flags:        [UX         ]
User SID:             S-1-5-21-1994751369-3554935017-608830866-500
Primary Group SID:    S-1-5-21-1994751369-3554935017-608830866-512
Full Name:            administrator
Home Directory:       
HomeDir Drive:        H:
Logon Script:         studio.bat
Profile Path:         
Domain:               STUDIO
Account desc:         
Munged dial:          
Logon time:           0
Logoff time:          Fri, 13 Dec 1901 21:45:51 GMT
Kickoff time:         Fri, 13 Dec 1901 21:45:51 GMT
Password last set:    Tue, 24 Oct 2006 14:09:22 GMT
Password can change:  0
Password must change: Sun, 22 Apr 2007 14:09:22 GMT
Last bad password   : 0
Bad password count  : 0

dn: uid=administrator,ou=Users,dc=studiopietrobon,dc=it
objectClass: inetOrgPerson
objectClass: sambaSamAccount
objectClass: posixAccount
objectClass: shadowAccount
gidNumber: 0
uidNumber: 0
homeDirectory: /dev/null
sambaLogonTime: 0
sambaLogoffTime: 2147483647
sambaKickoffTime: 2147483647
sambaPwdCanChange: 0
sambaHomeDrive: H:
sambaPrimaryGroupSID: S-1-5-21-1994751369-3554935017-608830866-512
sambaSID: S-1-5-21-1994751369-3554935017-608830866-500
loginShell: /bin/false
gecos: Netbios Domain Administrator
uid: administrator
sn: administrator
cn: administrator
sambaLMPassword: DA799E7A1B55D618AAD3B435B51404EE
sambaNTPassword: A28857A34205EF945BD07DD17568DF5C
sambaPwdLastSet: 1161691762
sambaPwdMustChange: 1177243762
userPassword:: e1NTSEF9RWV1dyt4a1hTVzRrUDdud3BjQXZMR0JjaDlZeFNtZGw=
sambaAcctFlags: [UX         ]

I had change Account flags but it still doesn't work.

samba runs on ubuntu 5.10.

Thank you in advance for your assistance.

Umberto Zanatta

More information about the samba mailing list