status32 support in libsmb client library

Tim Potter tpot at
Fri Aug 10 06:57:46 GMT 2001

Hi everyone.  I've added support for NT error codes
(CAP_STATUS32) to the libsmb client library.  This means that
programs such as smbclient now return NT error messages on error
rather than embarassing DOS ones:

shareholdervalue:~/work/foo$ bin/smbclient //ntsrv-1/asdf -U%
Got a positive name query response from ( )
Domain=[VNET] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

etc etc

I've also broken apart the old routines in libsmb/clierror.c to
separate out the detecting errors from fetching error numbers,
and converting error codes to UNIX errno values.


More information about the samba-technical mailing list