[Samba] USRMGR.EXE doesn't work anymore.

Bruno Guerreiro bruno.guerreiro at ine.pt
Thu Sep 1 16:07:10 GMT 2005


Hi, 
I started by getting  to the point where users and local groups were listed.
Then a "Stub received bad data" message appeared.
Tried net rpc groupmap list and net rpc group
It worked.
Tried usermanager again, no errors
Tried using usermanager to modify user/groups. It worked.
Restarted samba and Ldap. Usermanager still works.
Restarted windows client. Usermanager still works.

So, i guessed you smashed the right bug. :-)

The weird thing is the REG_CREATE_KEY_EX still gives an error:

[2005/08/31 18:26:56, 7] rpc_server/srv_reg_nt.c:open_registry_key(133)
  open_registry_key: name = [HKLM][System\CurrentControlSet\Control\Terminal
Server\DefaultUserConfiguration]
[2005/08/31 18:26:56, 10] registry/reg_cachehook.c:reghook_cache_find(95)
  reghook_cache_find: Searching for keyname
[/HKLM/System/CurrentControlSet/Control/Terminal
Server/DefaultUserConfiguration]
[2005/08/31 18:26:56, 10] lib/adt_tree.c:pathtree_find(388)
  pathtree_find: Enter [/HKLM/System/CurrentControlSet/Control/Terminal
Server/DefaultUserConfiguration]
[2005/08/31 18:26:56, 10] lib/adt_tree.c:pathtree_find(460)
  pathtree_find: Exit
[2005/08/31 18:26:56, 5] registry/reg_db.c:regdb_fetch_keys(382)
  regdb_fetch_keys: tdb lookup failed to locate key
[HKLM\System\CurrentControlSet\Control\Terminal
Server\DefaultUserConfiguration]
[2005/08/31 18:26:56, 7] rpc_server/srv_reg_nt.c:open_registry_key(200)
  open_registry_key: exit

<snip>

[2005/08/31 18:26:56, 5] rpc_server/srv_pipe.c:api_pipe_request(1509)
  Requested \PIPE\winreg
[2005/08/31 18:26:56, 4] rpc_server/srv_pipe.c:api_rpcTNP(1543)
  api_rpcTNP: winreg op 0x6 - api_rpcTNP: rpc command: REG_CREATE_KEY_EX
[2005/08/31 18:26:56, 6] rpc_server/srv_pipe.c:api_rpcTNP(1569)
  api_rpc_cmds[15].fn == 0xb7df43e0
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_debug(82)
  000000 reg_io_q_create_key_ex
[2005/08/31 18:26:56, 6] rpc_parse/parse_prs.c:prs_debug(82)
      000000 smb_io_pol_hnd
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
          0000 data1: 00000000
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
          0004 data2: 00000047
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint16(640)
          0008 data3: 0000
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint16(640)
          000a data4: 0000
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint8s(756)
          000c data5: 60 e8 15 43 de 42 00 00
[2005/08/31 18:26:56, 6] rpc_parse/parse_prs.c:prs_debug(82)
      000014 prs_unistr4 name
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint16(640)
          0014 length: 0094
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint16(640)
          0016 size: 0094
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
          0018 ptr: 76bc3bc0
[2005/08/31 18:26:56, 7] rpc_parse/parse_prs.c:prs_debug(82)
          00001c smb_io_unistr2 name
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
              001c uni_max_len: 0000004a
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
              0020 offset     : 00000000
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
              0024 uni_str_len: 0000004a
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:dbg_rw_punival(841)
              0028 buffer     :
S.y.s.t.e.m.\.C.u.r.r.e.n.t.C.o.n.t.r.o.l.S.e.t.\.C.o.n.t.r.o.l.\.T.e.r.m.i.
n.a.l. .S.e.r.v.e.r.\.D.e.f.a.u.l.t.U.s.e.r.C.o.n.
f.i.g.u.r.a.t.i.o.n...
[2005/08/31 18:26:56, 6] rpc_parse/parse_prs.c:prs_debug(82)
      0000bc prs_unistr4 key_class
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint16(640)
          00bc length: 0000
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint16(640)
          00be size: 0000
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
          00c0 ptr: 00000000
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
      00c4 options: 00000000
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
      00c8 access: 000f003f
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
      00cc ptr: 00000000
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
      00d0 ptr: 0006e1fc
[2005/08/31 18:26:56, 5] rpc_parse/parse_prs.c:prs_uint32(669)
      00d4 disposition: 0006ee54
[2005/08/31 18:26:56, 4]
rpc_server/srv_lsa_hnd.c:find_policy_by_hnd_internal(162)
  Found policy hnd[0] [000] 00 00 00 00 47 00 00 00  00 00 00 00 60 E8 15 43
....G... ....`..C
  [010] DE 42 00 00                                       .B..
[2005/08/31 18:26:56, 7] rpc_server/srv_reg_nt.c:open_registry_key(133)
  open_registry_key: name = [HKLM][System\CurrentControlSet\Control\Terminal
Server]
[2005/08/31 18:26:56, 10] registry/reg_cachehook.c:reghook_cache_find(95)
  reghook_cache_find: Searching for keyname
[/HKLM/System/CurrentControlSet/Control/Terminal Server]
[2005/08/31 18:26:56, 10] lib/adt_tree.c:pathtree_find(388)
  pathtree_find: Enter [/HKLM/System/CurrentControlSet/Control/Terminal
Server]
[2005/08/31 18:26:56, 10] lib/adt_tree.c:pathtree_find(460)
  pathtree_find: Exit
[2005/08/31 18:26:56, 5] registry/reg_db.c:regdb_fetch_keys(382)
  regdb_fetch_keys: tdb lookup failed to locate key
[HKLM\System\CurrentControlSet\Control\Terminal Server]
[2005/08/31 18:26:56, 7] rpc_server/srv_reg_nt.c:open_registry_key(200)
  open_registry_key: exit


Best Regards,
Bruno Guerreiro

>-----Original Message-----
>From: Gerald (Jerry) Carter [mailto:jerry at samba.org]
>Sent: quinta-feira, 1 de Setembro de 2005 14:18
>To: Bruno Guerreiro; gasch at eva.mpg.de; uzanatta at gmail.com
>Cc: 'samba at lists.samba.org'
>Subject: Re: [Samba] USRMGR.EXE doesn't work anymore.
>
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Gerald (Jerry) Carter wrote:
>| ok Folks....
>|
>| I've tried but cannot reproduce this.  The REG_CREATE_EX
>| failure is during a domain logon from Windows XP.  The
>| client is trying to create
>|
>| [System\CurrentControlSet\Control\Terminal Server\
>| DefaultUserConfiguration]
>|
>| I can fix this, but it appears to have nothing to do
>| with user manager.  Until I get those logs or a faw
>| network sniff of the connection failure, I'm stuck.
>
>ok.  Can you folks try out the patch at
>
>http://samba.org/~jerry/patches/regcreatekey_v1.patch
>
>and let me know if that fixes the usrmgr.exe failures
>you are seeing?  It should at least fix the REG_CREATE_KEY_EX
>failures in the logs.
>
>
>
>
>
>
>cheer,s jerry
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.4.0 (GNU/Linux)
>Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
>iD8DBQFDFv99IR7qMdg1EfYRAjEQAKDSu2KW1wglAXbMkWePCXQNAc0RoQCfV1Hk
>hdNoTno8WFF8iFDRzdmGPSg=
>=+K+E
>-----END PGP SIGNATURE-----
>


More information about the samba mailing list