[Samba] make install warnings

Skip Dobrin sdobrin at thenighthawkgroup.com
Tue Dec 17 19:59:01 GMT 2002

Can someone give me an explanation of the following warnings that I
encountered during the make install of 2.2.7a?

passdb/secrets.c: In function `secrets_named_mutex':
passdb/secrets.c:287: warning: passing arg 2 of `tdb_lock_bystring' discards
qualifiers from pointer target type

tdb/tdbutil.c: In function `tdb_chainlock_with_timeout':
tdb/tdbutil.c:46: warning: passing arg 1 of `tdb_set_lock_alarm' discards
qualifiers from pointer target type

smbd/quotas.c:382: warning: static declaration for `xdr_getquota_args'
follows non-static
smbd/quotas.c:391: warning: static declaration for `xdr_getquota_rslt'
follows non-static

Skip :-)

-----Original Message-----
From: samba-admin at lists.samba.org [mailto:samba-admin at lists.samba.org]On
Behalf Of Drew Boyles
Sent: Tuesday, December 17, 2002 2:29 PM
To: samba at lists.samba.org
Subject: [Samba] samba domain controller + Windows 2000

I have a Linux machine running Samba 2.2.1a (dated, I know) as a domain
controller for Windows clients (NT and 2000).  I can add NT machines to the
domain just fine; I use useradd and smbpasswd to generate the appropriate
entries, and it works fine.  I tried doing the same thing with a couple of
2000 (SP3) machines, and although I'm allowed to join the domain, after
rebooting and trying to log in to the domain, I get this error:

"the system cannot log you on to the domain because the system's computer
account in its primary domain is missing or the password on that account is

The entries in the passwd files look like this (me4151 is the computer's

/etc/passwd:me4151$:x:5013:501:Machine Account:/dev/null:/bin/false
C87A37D5458069DDA4E126E:[W          ]:LCT-3DFF6C01:

I've also added this line to my smb.conf to allow the creation of the
machine account when adding the computer to the domain on the Windows side:

add user script = /usr/sbin/useradd -d /dev/null -g 501 -c 'Machine Acco
unt' -s /bin/false -M %u

It seems to work (the passwd and smbpasswd entries are generated), but the
result (error message when I try to log on) is the same.

I do find entries such as the one below in the me4151.log file:

[2002/12/17 12:10:03, 0] smbd/reply.c:reply_sesssetup_and_X(898)
  restrict anonymous is True and anonymous connection attempted. Denying

After seeing that, I changed "restrict anonymous" to no, restarted the smb
service, and it allowed me to log in.  Of course, I'd much prefer to leave
that option on "yes".

That's all the relevent information I can think of.  Any help in solving
this problem is appreciated.

Drew Boyles
drew at engr.msstate.edu
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list