[Samba] Cannot log in to domain

Edward Luck ed.luck at gmail.com
Thu Jan 5 03:34:00 GMT 2006

Hi folks,

Just yesterday, my Samba installation on OpenSlug suddenly stopped
working, out of the blue.  Now, users on my WinXP SP2 systems cannot
under any circumstances log in to the domain.  Local Windows users
however can map shares with no problem.

When a domain user attempts to log on to a domain member PC (joining
the domain works fine, by the way), they are denied with the generic
Windows XP message of "The system could not log you on, make sure your
username and password are correct".

At the same time, the log.<computer name> file reports the following:

[2006/01/05 13:59:34, 1] auth/auth_util.c:make_server_info_sam(840)
  User blah in passdb, but getpwnam() fails!
[2006/01/05 13:59:34, 0] auth/auth_sam.c:check_sam_security(324)
  check_sam_security: make_server_info_sam() failed with

This is basically telling me that Samba can't see the user in the
passwd file.  But it works for Local windows users though, which is
just bizarre.

This is the C code in auth_util.c that is causing the problem:

if ( !(pwd = getpwnam_alloc(pdb_get_username(sampass))) )  {
		DEBUG(1, ("User %s in passdb, but getpwnam() fails!\n",

I can only assume that for some reason, this particular C function is
trying to run getpwnam() and an error is being returned.  But the same
process happens for Local windows users connecting to shares, so I'm
totally stumped.

What's also very odd is that this problem just
suddenly...well...happened.  And I don't recall making any changes to
my Linux server.  It's a Linksys NSLU2 running OpenSlug 2.7 beta, and
has been rock solid up until this point.

Keep flying, and stay shiny.

More information about the samba mailing list