NetUserModalsGet call to samba 2.2.2 fails
Tyler, Ross E
retyler at raytheon.com
Thu Nov 15 07:49:05 GMT 2001
yes, i guess i understood that.
my implied questions were "why not", "when" and "how can i help".
this type of call is something that i commonly do in my windows networking
code for various reasons.
some of which are:
programmatically joining an NT domain
programmatically purging locally cached profiles from NT domain accounts
that have been removed.
thanks for you quick response and your support!
"Gerald (Jerry) Carter" wrote:
> On Thu, 15 Nov 2001, Tyler, Ross E wrote:
>
> > static wchar_t sambaMachine[] = L"\\\\147.19.126.131"; // IP
> > address of my samba machine
> > USER_MODALS_INFO_2 * domainIdInfo = 0;
> > long error = NetUserModalsGet(sambaMachine, 2, (BYTE **)
> > &domainIdInfo);
> >
> > the error is
> >
> > 0x57: The parameter is incorrect
> >
> > i have traced the problem on the smbd side using gdb and have found that
> >
> > rpc_server/srv_samr_nt.c : _samr_query_dom_info
> >
> > returns
> >
> > NT_STATUS_INVALID_INFO_CLASS
> >
> > when
> >
> > q_u->switch_value == 5
>
> 'cause we don't implement that level :-)
>
> From _samr_query_dom_info()...
>
> switch (q_u->switch_value) {
> case 0x01:
> init_unk_info1(&ctr->info.inf1);
> break;
> case 0x02:
> /* The time call below is to get a sequence number
> for the sam. FIXME !!! JRA. */
> init_unk_info2(&ctr->info.inf2, global_myworkgroup,
> global_myname, (uint32) time(NULL));
> break;
> case 0x03:
> init_unk_info3(&ctr->info.inf3);
> break;
> case 0x06:
> init_unk_info6(&ctr->info.inf6);
> break;
> case 0x07:
> init_unk_info7(&ctr->info.inf7);
> break;
> case 0x0c:
> init_unk_info12(&ctr->info.inf12);
> break;
> default:
> return NT_STATUS_INVALID_INFO_CLASS;
> }
>
> >
> > any ideas?
> >
>
> jerry
> --
> ---------------------------------------------------------------------
> www.samba.org SAMBA Team jerry_at_samba.org
> www.plainjoe.org jerry_at_plainjoe.org
> http://www.hp.com Hewlett-Packard
> --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
More information about the samba-ntdom
mailing list