Procedure for Finding Master Browser And Workgroup List
Richard Sharpe
sharpe at ns.aus.com
Wed Mar 28 02:57:05 GMT 2001
At 09:26 PM 3/27/01 -0500, Allen, Michael B (RSCH) wrote:
>How exactly should one go about extracting the list of workgroups for
>the 'smb://' URL? For example right now I do:
>
>1) Broadcast for MSBROWSE name
>2) Reverse Lookup on IP Address of response to extact called name
>3) Connect to IPC$ through CalledName<20> but if that fails connect
>to *SMBSERVER<20>
>4) Issue NetServerEnum2 with serverTypes = 0x80000000
I do it slightly differenly ... Check out smbc_opendir in libsmbclient.c in
the Samba head branch. I might need to tweak my approach a bit, though.
>Is this correct? On my network I see three responses to the initial
>MSBROWSE lookup and Win2K doesn't seem to respond to
>querying 0x80000000 for SRV_TYPE_DOMAIN_ENUM.
>
>Thanks,
>Mike
>
>
Regards
-------
Richard Sharpe, sharpe at ns.aus.com
Samba (Team member, www.samba.org), Ethereal (Team member, www.ethereal.com)
Contributing author, SAMS Teach Yourself Samba in 24 Hours
Author, Special Edition, Using Samba
More information about the samba-technical
mailing list