Hi I decided after some testing and experimenting, to move the
production servers from 2.2.x to 3.0. so I've installed samba3.0 in
paralel with the old binaries. To start the migration I wanted to save
the old domain SID, to can make the migration as transparent as
possible, so I did:
net3 -d 10 -I 127.0.0.1 getlocalsid
while the old binaries are still runing all that I've got (remember at
debuging level 10!):
[2003/10/10 23:44:07, 5] lib/debug.c:debug_dump_status(359)
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
[2003/10/10 23:44:07, 3] param/loadparm.c:lp_load(3917)
lp_load: refreshing parameters
[2003/10/10 23:44:07, 3] param/loadparm.c:init_globals(1303)
Initialising global parameters
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset UCS-2LE
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95)
Registered charset UCS-2LE
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset UTF8
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95)
Registered charset UTF8
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset ASCII
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95)
Registered charset ASCII
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset 646
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95)
Registered charset 646
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87)
Attempting to register new charset UCS2-HEX
[2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95)
Registered charset UCS2-HEX
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 3] param/params.c:pm_process(566)
params.c:pm_process() - Processing configuration file
"/etc/samba3/smb.conf"
[2003/10/10 23:44:07, 3] param/loadparm.c:do_section(3420)
Processing section "[global]"
doing parameter workgroup = KZSDABAS
doing parameter netbios name = PDC
[2003/10/10 23:44:07, 4] param/loadparm.c:handle_netbios_name(2712)
handle_netbios_name: set global_myname to: PDC
doing parameter server string = Samba Server %v
doing parameter printcap name = cups
doing parameter load printers = yes
doing parameter printing = cups
doing parameter printer admin = @adm
doing parameter log file = /var/log/samba3/log.%m
doing parameter max log size = 50
doing parameter map to guest = bad user
doing parameter security = user
doing parameter encrypt passwords = yes
doing parameter smb passwd file = /etc/samba3/smbpasswd
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192
SO_SNDBUF=8192
doing parameter dns proxy = no
[2003/10/10 23:44:07, 4] param/loadparm.c:lp_load(3949)
pm_process() returned Yes
[2003/10/10 23:44:07, 7] param/loadparm.c:lp_servicenumber(4059)
lp_servicenumber: couldn't find homes
[2003/10/10 23:44:07, 10] param/loadparm.c:set_server_role(3867)
set_server_role: role = ROLE_STANDALONE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74)
Substituting charset 'ISO-8859-2' for LOCALE
[2003/10/10 23:44:07, 5] lib/util.c:init_names(270)
Netbios name list:-
my_netbios_names[0]="PDC"
[2003/10/10 23:44:07, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0
[2003/10/10 23:44:07, 2] lib/interface.c:add_interface(79)
added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0
[2003/10/10 23:44:07, 0] utils/net.c:net_getlocalsid(414)
Can't fetch domain SID for name: PDC
[2003/10/10 23:44:07, 2] utils/net.c:main(758)
return code = 1
Thanks for any suggestion!
Geza Gemes
Gémes Géza
2003-Oct-11 10:20 UTC
[Samba] net getlocalsid problem solved in an ugly fashion
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 G?mes G?za ?rta: | Hi I decided after some testing and experimenting, to move the | production servers from 2.2.x to 3.0. so I've installed samba3.0 in | paralel with the old binaries. To start the migration I wanted to save | the old domain SID, to can make the migration as transparent as | possible, so I did: | net3 -d 10 -I 127.0.0.1 getlocalsid | while the old binaries are still runing all that I've got (remember at | debuging level 10!): | | [2003/10/10 23:44:07, 5] lib/debug.c:debug_dump_status(359) | 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 | [2003/10/10 23:44:07, 3] param/loadparm.c:lp_load(3917) | lp_load: refreshing parameters | [2003/10/10 23:44:07, 3] param/loadparm.c:init_globals(1303) | Initialising global parameters | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87) | Attempting to register new charset UCS-2LE | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95) | Registered charset UCS-2LE | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87) | Attempting to register new charset UTF8 | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95) | Registered charset UTF8 | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87) | Attempting to register new charset ASCII | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95) | Registered charset ASCII | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87) | Attempting to register new charset 646 | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95) | Registered charset 646 | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(87) | Attempting to register new charset UCS2-HEX | [2003/10/10 23:44:07, 5] lib/iconv.c:smb_register_charset(95) | Registered charset UCS2-HEX | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 3] param/params.c:pm_process(566) | params.c:pm_process() - Processing configuration file | "/etc/samba3/smb.conf" | [2003/10/10 23:44:07, 3] param/loadparm.c:do_section(3420) | Processing section "[global]" | doing parameter workgroup = KZSDABAS | doing parameter netbios name = PDC | [2003/10/10 23:44:07, 4] param/loadparm.c:handle_netbios_name(2712) | handle_netbios_name: set global_myname to: PDC | doing parameter server string = Samba Server %v | doing parameter printcap name = cups | doing parameter load printers = yes | doing parameter printing = cups | doing parameter printer admin = @adm | doing parameter log file = /var/log/samba3/log.%m | doing parameter max log size = 50 | doing parameter map to guest = bad user | doing parameter security = user | doing parameter encrypt passwords = yes | doing parameter smb passwd file = /etc/samba3/smbpasswd | doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 | SO_SNDBUF=8192 | doing parameter dns proxy = no | [2003/10/10 23:44:07, 4] param/loadparm.c:lp_load(3949) | pm_process() returned Yes | [2003/10/10 23:44:07, 7] param/loadparm.c:lp_servicenumber(4059) | lp_servicenumber: couldn't find homes | [2003/10/10 23:44:07, 10] param/loadparm.c:set_server_role(3867) | set_server_role: role = ROLE_STANDALONE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/charcnv.c:charset_name(74) | Substituting charset 'ISO-8859-2' for LOCALE | [2003/10/10 23:44:07, 5] lib/util.c:init_names(270) | Netbios name list:- | my_netbios_names[0]="PDC" | [2003/10/10 23:44:07, 2] lib/interface.c:add_interface(79) | added interface ip=192.168.0.2 bcast=192.168.0.255 nmask=255.255.255.0 | [2003/10/10 23:44:07, 2] lib/interface.c:add_interface(79) | added interface ip=192.168.1.2 bcast=192.168.1.255 nmask=255.255.255.0 | [2003/10/10 23:44:07, 0] utils/net.c:net_getlocalsid(414) | Can't fetch domain SID for name: PDC | [2003/10/10 23:44:07, 2] utils/net.c:main(758) | return code = 1 | | Thanks for any suggestion! | | Geza Gemes | I've solved the problem by copying the samba 2.2.7-s secrets.tdb to samba 3-s private dir and stoped samba 2.2.7 and started samba 3 got the domain sid from it, then stoped it, and started samba 2.2.7 to continue serving the existing clients, until samba 3 is completly configured I wasn't thinking, that I'll be unable to get the domain SID from a samba 2.2.7 using net getlocalsid :-( Best Regards, Geza Gemes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/h9lr/PxuIn+i1pIRAsbHAJ0UQsZUjxSySBOsA2HF/MCR4ETD8gCgqB2/ xxrhiAbtBeR8Gc8omltRZVk=A7mG -----END PGP SIGNATURE-----