libdsm with meson support

Julien 'Lta' BALLET d7e2f683d2 Enable ntlm test util back преди 11 години
bin d7e2f683d2 Enable ntlm test util back преди 11 години
contrib 172dfe5721 Adds the ASN.1 format description of SPNEGO, also including a minimalist GSSAPI desc преди 11 години
doc 3846ae0847 Replace usage of BDSM_DEBUG macro by BDSM_dbg преди 11 години
include 955690d383 Add smb_buffer structure with related management functions преди 11 години
m4 50be948b78 build: remove iconv brain-damage преди 11 години
src 955690d383 Add smb_buffer structure with related management functions преди 11 години
.gitignore 7c0309eca0 Adds SPNEGO ASN.1 config file contrib/spnego/spnego_asn1.c to gitignore преди 11 години
COPYING 85e1f29b76 Adds COPYING file преди 11 години
Makefile.am d7e2f683d2 Enable ntlm test util back преди 11 години
NOTES.md ab4a6299da Adds a NOTES file with some details/discoveries during the implementation преди 11 години
README.md 5dd4ad8895 Minor update преди 11 години
TODO.md 6222e61e0d Implements Open/Close of file преди 11 години
abi_version.sh 69bdc304e1 build: Initial autotools преди 11 години
bootstrap 42cc790f32 Adds a stylish bootstrap script преди 11 години
configure.ac b3384674f1 Non working GSS-API implementation преди 11 години
libdsm.pc.in f038a27c73 Adds content to pkg-config file преди 11 години
package_version.sh 69bdc304e1 build: Initial autotools преди 11 години

README.md

liBDSM

A small project of SMB protocol client implementation in C, with a lot less features than Samba but also a more permissive license (WTFL/MIT). The initial goal of this project is to have a lib with an iOS compatible license to be intgrated into VLC for iOS.

The lib is provided as a static library or as a dynamically linked library. A few useless (yet) utils are also provided.

Building

Requirements

  • A Unix system with a bash-shell (i guess)
  • C99 C compiler
  • (GNU) Make
  • Autotools
  • libc with iconv
  • getopt_long

Most of it can be installed on Debian(-based) systems using

sudo apt-get install build-essential

HowTo

$> ./bootstrap
$> ./configure --prefix=/your/ass
$> make
$> make install # maybe

Goals

Here's a list of features i intend to support in this project :

  • NETBIOS
    • Basic bi-directionnal NETBIOS name resolution [Done]
    • Hacky LAN SMB servers discovery (Listing all the smb servers on the LAN, no WINS, etc.) [Done]
    • Basic NETBIOS Session transport layer [Done]
  • SMB
    • Support only required parts of 'NT LM 0.12' (aka CIFS?) dialect.
    • User based authentication [Done]
    • List Shares [Partial/Ugly]
    • Browse folders [Done/Ugly]
    • Read file [Done, can be improved :)]
    • No write, lock, RPCs, etc. [Hum]

Support

liBDSM has been tested/reported to work witht the following devices/OSes:

  • Windows 7
  • Windows 8
  • A cheap NAS whose name i can't remember :)
  • Guest Login on French Orange 'Livebox' (more testing is welcome as i don't have the box password)

OSX is not supported yet, since it doesn't seem to support Netbios transport. DirectTCP SMB is on the way, to fix this issue.

Feel free to contribute items to this list (or network trace of not working devices)

TODO

  • HEAVILY refactor. Any help is welcome.

Contributing

  • Fork elthariel/libdsm
  • Make a feature branch
  • Commits your work there
  • Make a pull request
  • ...
  • Profit !