[Samba] Re: [CLUG-tech] odd samba error

Buchan Milne bgmilne at cae.co.za
Tue Jan 21 16:37:01 GMT 2003


Chris Nash wrote:
> So this is my problem:
> Samba works but not as a domain controller.Well here is the smb.conf file
> and the testparm dump. I think it ver 2.2.x?
> Any ideas?
> 
> extract from the var/log/messages, all from smbd daemon:
> api_samr_set_userinfo: unable to unmarshall SAMR_Q_SET_USERINFO
> passdb/pdb_smbpasswd.c: pdb_getsampwdrid (1416)
> unable to open passdb database
> 
> Does this make any sense?

Have you got any entries in your:
smb passwd file = /etc/samba/smbpasswd

If not, you need to add them (unix accounts must already exist) with
'smbpasswd -a'

If you are joining winnt/win2k/winxp machine to your domain, you must
uncomment this line:
#       add user script = /usr/sbin/useradd -g smbusers -d /dev/null -s
/bin/False %u
(yes, it gets used for machine accounts on a domain controller), and
have added an smbpasswd for the root account (by running 'smbpasswd -a'
as root).

Also, your:
        NET USE I: /home
doesn't belong in your smb.conf

Please check the smb.conf man page for this one also:
        map to guest = sambauser
(IIRC it should be on of 'bad user', 'bad password' or 'never'). You may
be looking for the 'guest account parameter instead ...

Also, it would help if you told us what steps you have followed prior to
this, as not everything can be determined from your configuration file.
How are you joining machines to the domain?

Buchan


-- 
|--------------Another happy Mandrake Club member--------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7




More information about the samba mailing list