Unable to access remote registry

Pavithra Hanchagaiah pavithra.hanchagaiah at thirdbrigade.com
Tue Jan 8 06:52:48 GMT 2008

One more observation in the registry component:
Tested on : samba-4.0.0alpha1

Registry component doesn't return the type value of Registry item
queried from remote registry

With Reference to the already logged in bug 4395
(https://bugzilla.samba.org/show_bug.cgi?id=4395) Bug Case2, I see that
no type value is returned when the value is queried from Registry.

Reference: rpc_get_value_by_index() in rpc.c  
 if(NT_STATUS_IS_OK(status) &&
       W_ERROR_IS_OK(r.out.result) && r.out.length) {
        *value_name = talloc_strdup(mem_ctx, r.out.name->name);
        *data = data_blob_talloc(mem_ctx, r.out.value, *r.out.length);
        return WERR_OK;

Where the '*data' is of type DATA_BLOB & the its structure is,
/* used to hold an arbitrary blob of data */
typedef struct datablob {
	uint8_t *data;
	size_t length;

I was trying to write an interface code to integrate Samba code to my
modules. So I came across the requirement to element to hold the
registry type of the queried value.

Thanks for your help!!


-----Original Message-----
From: Jelmer Vernooij [mailto:jelmer at samba.org] 
Sent: Monday, January 07, 2008 11:43 PM
To: Pavithra Hanchagaiah
Cc: samba-technical at lists.samba.org
Subject: Re: Unable to access remote registry

Hi Pavithra,

Am Mittwoch, den 19.12.2007, 12:49 -0500 schrieb Pavithra Hanchagaiah:
> I am not able to access remote registry using regshell tool of
> samba-4.0.0alpha1
> The command which I use is as given below,
> ./regshell -b rpc -R "ncacn_np:" -U "administrator"
> Password for [TESTLAB\administrator]:
> Unable to access any of the predefined keys
> Tested to access Windows 2000 Registry from RHEL5.
This was a bug in the RPC registry backend. It should now be fixed in


Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
Jabber: jelmer at jabber.fsfe.org

More information about the samba-technical mailing list