Giter Site home page Giter Site logo

martencassel / radcli Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 6.0 647 KB

The radcli library provides a Ruby interface for performing actions on a Active Directory domain using the realmd/adcli tool library (https://www.freedesktop.org/software/realmd/adcli/).

License: Artistic License 2.0

Ruby 24.79% C 71.96% Shell 1.09% Dockerfile 2.16%

radcli's People

Contributors

ananace avatar ekohl avatar fossabot avatar helge000 avatar martencassel avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

radcli's Issues

Gem installation fails: /usr/bin/ld: cannot find -ladcli

Running gem install ./radcli-0.0.1.gem fails.

There seems to be an issue in line of extconf.rb; the end should read ext/lib
Changing it did not change anything though.

$ gem install ./radcli-0.0.1.gem                                                                                                                                                                                    
Building native extensions.  This could take a while...
ERROR:  Error installing ./radcli-0.0.1.gem:
	ERROR: Failed to build gem native extension.

    /home/daniel/.rvm/rubies/ruby-2.0.0-p643/bin/ruby -r ./siteconf20161220-21737-10kk6x6.rb extconf.rb
creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling radcli.c
compiling radconn.c
compiling radenroll.c
radenroll.c: In function ‘radenroll_initialize’:
radenroll.c:32:5: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
     adcli_enroll *enroll = adcli_enroll_new (ptr_conn->conn);
     ^~~~~~~~~~~~
radenroll.c: In function ‘radenroll_set_computer_name’:
radenroll.c:62:18: warning: unused variable ‘res’ [-Wunused-variable]
     adcli_result res;
                  ^~~
radenroll.c: In function ‘radenroll_set_computer_password’:
radenroll.c:95:18: warning: unused variable ‘res’ [-Wunused-variable]
     adcli_result res;
                  ^~~
At top level:
radenroll.c:146:14: warning: ‘radenroll_password’ defined but not used [-Wunused-function]
 static VALUE radenroll_password (VALUE self) {
              ^~~~~~~~~~~~~~~~~~
radenroll.c:122:14: warning: ‘radenroll_update’ defined but not used [-Wunused-function]
 static VALUE radenroll_update (VALUE self) {
              ^~~~~~~~~~~~~~~~
linking shared-object radcli.so
/usr/bin/ld: cannot find -ladcli
collect2: error: ld returned 1 exit status
Makefile:231: recipe for target 'radcli.so' failed
make: *** [radcli.so] Error 1

make failed, exit code 2

I did build libadcli.a using rake and the gem; my current tree looks like this:

.
├── CHANGES
├── ext
│   ├── lib
│   │   └── libadcli.a
│   └── radcli
│       ├── adconn.h
│       ├── adenroll.h
│       ├── adutil.h
│       ├── extconf.rb
│       ├── radcli.c
│       ├── radcli.h
│       ├── radconn.c
│       └── radenroll.c
├── LICENSE
├── MANIFEST
├── radcli-0.0.1.gem
├── radcli.gemspec
├── Rakefile
├── README.md
└── test
    └── test_radconn.rb

Building gem fails: undefined local variable or method ` '

$ gem build --debug radcli.gemspec                                                                                                                                                                                
NOTE:  Debugging mode prints all exceptions even when rescued
Exception `OptionParser::InvalidOption' at /home/daniel/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/optparse.rb:1548 - invalid option: no-ri
Exception `OptionParser::InvalidOption' at /home/daniel/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/optparse.rb:1360 - invalid option: --no-ri
Exception `OptionParser::InvalidOption' at /home/daniel/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/optparse.rb:1548 - invalid option: no-rdoc
Exception `OptionParser::InvalidOption' at /home/daniel/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/optparse.rb:1360 - invalid option: --no-rdoc
Exception `NameError' at radcli.gemspec:13 - undefined local variable or method ` ' for Gem::Specification:Class
Exception `NameError' at /home/daniel/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb:1043 - undefined local variable or method ` ' for Gem::Specification:Class
Invalid gemspec in [radcli.gemspec]: undefined local variable or method ` ' for Gem::Specification:Class
ERROR:  Error loading gemspec. Aborting.

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.