[Samba] Re: Cannot add machine account
novosirj at umdnj.edu
Sun Feb 3 18:16:43 GMT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Marco De Vitis wrote:
> Il 2-02-2008 0:06, Ryan Novosielski ha scritto:
>> Is that workstation name too long? On some of my machines, it would be.
> Well, the WinXP OS accepted it so I suppose it's not too long.
> Anyway I now tried adding another machine named "MDVMBXP" which surely
> is a good enough name, but the result is the same.
To clarify that, Windows XP is perfectly happy to have names of whatever
length is the limit (I suspect it's some power of 2... 32, 64, etc.),
but remember you are creating a user on the *nix system. Many UNIX OS
are unwilling to deal with usernames longer than 8 chars. Linux seems
fine with this, and HP-UX will do it (but its useradd will not so it has
to be done by hand), and so on...
> The client is not involved at all in the error, because it just happens
> as soon as I do the following on the Samba PDC, well before trying to
> join the client to the domain:
> #>useradd -g smb_pc -d /dev/null -s /bin/false MDVMBXP$
> #>passwd -l MDVMBXP$
> Password changed.
> #>pdbedit -a -m MDVMBXP
> tdb_update_sam: struct samu (mdvmbxp$) with no RID!
> Unable to add machine! (does it already exist?)
> PS: uhm, I just tried using smbpasswd instead of pdbedit and it appears
> to work, but I cannot try joining the domain now because I'm physically
> far from the LAN. I'll check when possible.
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II
|$&| |__| | | |__/ | \| _| |novosirj at umdnj.edu - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba