Giter Site home page Giter Site logo

ruby-net-smb's Introduction

Ruby Net::SMB - SMB/CIFS client class for Ruby

Synopsis

This is a Samba libsmbclient binding, i.e., SMB/CIFS client class for Ruby.

Requirement

For runtime environment:

  • Ruby 1.9.3+
  • Samba 3.6+ (libsmbclient)

For build and development environment:

  • C compiler
  • Ruby bundler
  • Ruby rake-compiler

Development Resources

Copyright

Copyright (C) 2012-2013 SATOH Fumiyasu @ OSS Technology Corp., Japan

Licensed under the GNU General Public License version 3

ruby-net-smb's People

Contributors

ceyonur avatar fumiyas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ruby-net-smb's Issues

Documentation

I'm having a bit of trouble getting the library to connect to a share that requires authentication. I documented example would help tremendously.

Thanks.

Segmentation fault on Mac OS X 10.8.4 with homebrew Samba

I have successfully used net-smb on my raspberry pi, but on my mac I get a segfault when I run the exact same script. It happens with the opendir function.

I have tried with latest ruby 1.9.3.

On the raspberry I have compiled samba 4 (latest from git) while on the Mac I am using the homebrew version (3.6.8)

using smbclient to connect to the smb share and opening the directory with "cd" works on both systems though.

ruby spits out this after crashing:

./server-list2.rb:36: [BUG] Segmentation fault
ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]

-- Control frame information -----------------------------------------------
c:0005 p:---- s:0015 b:0015 l:000014 d:000014 CFUNC :initialize
c:0004 p:---- s:0013 b:0013 l:000012 d:000012 CFUNC :opendir
c:0003 p:0211 s:0009 b:0009 l:000db8 d:002140 EVAL ./server-list2.rb:36
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000db8 d:000db8 TOP

-- Ruby level backtrace information ----------------------------------------
./server-list2.rb:36:in <main>' ./server-list2.rb:36:inopendir'
./server-list2.rb:36:in `initialize'

-- C level backtrace information -------------------------------------------

See Crash Report log file under ~/Library/Logs/CrashReporter or
/Library/Logs/CrashReporter, for the more detail of.

Gist of crashreport is here:
https://gist.github.com/tkrajacic/6026664

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.