The Samba-Bugzilla – Bug 3973
Uppcase-problem with "add machine script"
Last modified: 2006-07-29 18:37:04 UTC
after an upgrade from 3.0.21b to 3.0.23a "add machine script" makes problems.
The script gets correctly executed, but the machine-account is uppercase now, useradd requires it to be lowercase.
To be more clear:
(i don't know if the machine-name was lowercase in 3.0.21b), because my add-machine-script lowercases it first, befor passing to useradd. - The problem is now, that the unix-account is lowercase and the entry in smbpasswd is added uppercase.
samba logs this:
Jul 28 12:15:06 fileserver smbd_vscan-clamav: [2006/07/28 12:15:06, 0] passdb/pdb_smbpasswd.c:build_sam_account(1202)
Jul 28 12:15:06 fileserver smbd_vscan-clamav: build_sam_account: smbpasswd database is corrupt! username PC40$ with uid 1040 is not in unix passwd database!
so the error is that the name isn't stored lowercase in smbasswd any more.
already fixed in SAMBA_3_0_23.