[Samba] PDC (can't fetch domain SID)
Leandro Tracchia
ltracchia at gmail.com
Mon Sep 10 15:31:50 GMT 2007
After running this command... I figured out what the problem was. The daemon
was not reading the correct smb.conf file. I thought the file was being read
form /usr/local/samba/lib/smb.conf, but apparently it was being read from
/etc/samba/smb.conf. Is this OK? Which is the correct location, if any?
Thanks for everyone's help.
# net getlocalsid LEANDRO -d 10
[2007/09/10 09:17:02, 5] lib/debug.c:debug_dump_status(391)
INFO: Current debug levels:
all: True/10
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
quota: False/0
acls: False/0
locking: False/0
msdfs: False/0
dmapi: False/0
[2007/09/10 09:17:02, 3] param/loadparm.c:lp_load(4953)
lp_load: refreshing parameters
[2007/09/10 09:17:02, 3] param/loadparm.c:init_globals(1418)
Initialising global parameters
[2007/09/10 09:17:02, 3] param/params.c:pm_process(572)
params.c:pm_process() - Processing configuration file
"/etc/samba/smb.conf"
[2007/09/10 09:17:02, 3] param/loadparm.c:do_section(3695)
Processing section "[global]"
doing parameter workgroup = AAC.local
doing parameter server string = %h server
doing parameter dns proxy = no
doing parameter log file = /var/log/samba/log.%m
doing parameter max log size = 1000
doing parameter syslog = 0
doing parameter panic action = /usr/share/samba/panic-action %d
doing parameter encrypt passwords = true
doing parameter passdb backend = tdbsam
doing parameter obey pam restrictions = yes
doing parameter invalid users = root
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *Enter\snew\sUNIX\spassword:* %n\n
*Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
doing parameter socket options = TCP_NODELAY
[2007/09/10 09:17:02, 4] param/loadparm.c:lp_load(4984)
pm_process() returned Yes
[2007/09/10 09:17:02, 7] param/loadparm.c:lp_servicenumber(5120)
lp_servicenumber: couldn't find homes
[2007/09/10 09:17:02, 10] param/loadparm.c:set_server_role(4229)
set_server_role: role = ROLE_STANDALONE
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset UCS-2LE
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset UCS-2LE
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset UTF-16LE
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset UTF-16LE
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset UCS-2BE
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset UCS-2BE
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset UTF-16BE
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset UTF-16BE
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset UTF8
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset UTF8
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset UTF-8
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset UTF-8
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset ASCII
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset ASCII
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset 646
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset 646
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset ISO-8859-1
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset ISO-8859-1
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(105)
Attempting to register new charset UCS2-HEX
[2007/09/10 09:17:02, 5] lib/iconv.c:smb_register_charset(113)
Registered charset UCS2-HEX
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/charcnv.c:charset_name(81)
Substituting charset 'UTF-8' for LOCALE
[2007/09/10 09:17:02, 5] lib/util.c:init_names(286)
Netbios name list:-
my_netbios_names[0]="AACLINUX"
[2007/09/10 09:17:02, 2] lib/interface.c:add_interface(81)
added interface ip=192.168.1.101 bcast=192.168.1.255 nmask=255.255.255.0
[2007/09/10 09:17:02, 2] lib/interface.c:add_interface(81)
added interface ip=192.168.10.1 bcast=192.168.10.255 nmask=255.255.255.0
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(105)
Attempting to register passdb backend ldapsam
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(118)
Successfully added passdb backend 'ldapsam'
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(105)
Attempting to register passdb backend ldapsam_compat
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(118)
Successfully added passdb backend 'ldapsam_compat'
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(105)
Attempting to register passdb backend NDS_ldapsam
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(118)
Successfully added passdb backend 'NDS_ldapsam'
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(105)
Attempting to register passdb backend NDS_ldapsam_compat
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(118)
Successfully added passdb backend 'NDS_ldapsam_compat'
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(105)
Attempting to register passdb backend smbpasswd
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(118)
Successfully added passdb backend 'smbpasswd'
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(105)
Attempting to register passdb backend tdbsam
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:smb_register_passdb(118)
Successfully added passdb backend 'tdbsam'
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:make_pdb_method_name(158)
Attempting to find an passdb backend to match tdbsam (tdbsam)
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:make_pdb_method_name(179)
Found pdb backend tdbsam
[2007/09/10 09:17:02, 5] passdb/pdb_interface.c:make_pdb_method_name(190)
pdb backend tdbsam has a valid init
[2007/09/10 09:17:02, 0] utils/net.c:net_getlocalsid(583)
Can't fetch domain SID for name: LEANDRO
[2007/09/10 09:17:02, 2] utils/net.c:main(988)
return code = 1
On 9/8/07, Gerald (Jerry) Carter <jerry at samba.org> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> (copied back on list)
>
> Leandro,
>
> > Gerald Jerry Carter wrote:
> >
> > "Have you actually started smbd at least once before running
> > this command?"
> >
> > Yes. I have started both smb and nmb with:
> >
> > #smbd -D
> > #nmbd -D
>
> Makes no sense then. Run 'net getlocalsid LEANDRO -d 10'
> and see if that gives a hint as to why the command fails.
> I just check the code in the SAMBA_3_0_25 svn tree and it
> hasn't changed.
>
> You're running the command as rot and are using an smbpasswd
> backend right? What Samba version is this?
>
>
>
>
>
> cheers, jerry
> =====================================================================
> Samba ------- http://www.samba.org
> Centeris ----------- http://www.centeris.com
> "What man is a man who does not make the world better?" --Balian
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG4vihIR7qMdg1EfYRAipdAKC6X1JBVjAyWvXxuU5xe//fBEQ/YgCfdgzW
> WvyP1zTmC1cMmj7f0lMQM9Q=
> =sWQw
> -----END PGP SIGNATURE-----
>
More information about the samba
mailing list