finding server info

Gerald (Jerry) Carter jerry at samba.org
Tue Jul 26 17:40:32 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Chris Nicholls wrote:
> Hi,
> 
> I'm wondering if there is a good way to determine what level 
> of pipe operations can be run on a server (for exampele
> lsa_open_policy vs. lsa_open_policy2).  I've been looking through
> the code, but i havent found anything. Am I looking in the wrong
> place? or is it not possible? I'd like to be able to call the
> appropriate function transparently to a developer using libmsrpc.
> And I think the only other option is to call lsa_open_policy2, and
> if it fails call lsa_open_policy and keep track of  which
> one worked.  Any thoughts?

That's pretty much what Windows does.  However, there are other
ways to detect OS the server you are talking to.  Just knowing
what servers support which capabilities in the SMB flags2 field
or possibly looking at the SMBsesssetup&X reply contains
information.

That's how we fill in the %a variable in smbd.  Look for calls
to set_remote_arch().




cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC5nWQIR7qMdg1EfYRAn52AKDO5vV6n3X7RjCinSNkMXST+p7xLACcCLlU
+MW+kwOE2nyIQyvzDvEF3W8=
=zvPx
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list