netsoul 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +38 -31
- data/bin/netsoul-ruby +1 -1
- data/lib/netsoul/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6496d73b31b3f059aeabe8bbf5b98ce5f9924a10
|
4
|
+
data.tar.gz: 7540b86bda32a45a04bbc8c141d3a0dc3c23d156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c13b35d41d89022f1dc91d2f162adecee6443ebf2076e26f89071f1ba22bc47ce543bd226ab47276a3bebf9ec32bc3fff14ce1cb1d05cec89f1ba4d567d4020
|
7
|
+
data.tar.gz: 6585b13351b90d9c0357bf30cc58ed0b5b36c53e805080ff46b3f123eb7c42dcdd61b4bb370981e418447434bb53a91c7f33b2208572c9bda61d24965bf62fbc
|
data/README.md
CHANGED
@@ -19,61 +19,68 @@ You can use it as a Ruby gem in order to implement your own Netsoul client in Ru
|
|
19
19
|
|
20
20
|
### On your desktop
|
21
21
|
|
22
|
-
|
22
|
+
```ruby
|
23
|
+
gem install netsoul
|
24
|
+
```
|
23
25
|
|
24
26
|
### In your project
|
25
27
|
|
26
28
|
#### Gemfile
|
27
29
|
|
28
|
-
|
30
|
+
```ruby
|
31
|
+
gem 'netsoul', '~> 1.2'
|
32
|
+
```
|
29
33
|
|
30
34
|
#### project.rb
|
31
35
|
|
32
|
-
|
36
|
+
```ruby
|
37
|
+
require 'netsoul'
|
38
|
+
```
|
33
39
|
|
34
40
|
## Use the client
|
35
41
|
|
36
42
|
After installing the gem **netsoul**, call the client as described bellow.
|
37
43
|
|
38
|
-
|
39
|
-
|
40
|
-
|
44
|
+
```bash
|
45
|
+
netsoul-ruby -config netsoul-config.yml
|
46
|
+
```
|
41
47
|
|
42
48
|
### Example of _netsoul-config.yml_ file
|
43
49
|
|
44
50
|
#### Standard (MD5) authentication
|
45
51
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
52
|
+
```yaml
|
53
|
+
---|
|
54
|
+
:login: 'kakesa_c'
|
55
|
+
:socks_password: 'my socks password'
|
56
|
+
# :unix_password: 'unix password needed for kerberos authentication' # :auth_method must be set to :krb5
|
57
|
+
# :auth_method: :std # :std, :krb5
|
58
|
+
# :server_host: 'ns-server.epita.fr'
|
59
|
+
# :server_port: 4242
|
60
|
+
# :state: :none # :actif, :away, :connection, :idle, :lock, :server, :none
|
61
|
+
# :location: 'Home'
|
62
|
+
# :user_group: 'ETNA_2008'
|
63
|
+
```
|
58
64
|
|
59
65
|
#### Kerberos authentication
|
60
66
|
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
67
|
+
```yaml
|
68
|
+
---|
|
69
|
+
:login: 'kakesa_c'
|
70
|
+
:unix_password: 'unix password'
|
71
|
+
:auth_method: :krb5 # :std, :krb5
|
72
|
+
# :socks_password: 'my socks password'
|
73
|
+
# :server_host: 'ns-server.epita.fr'
|
74
|
+
# :server_port: 4242
|
75
|
+
# :state: :none # :actif, :away, :connection, :idle, :lock, :server, :none
|
76
|
+
# :location: 'Home'
|
77
|
+
# :user_group: 'ETNA_2008'
|
78
|
+
```
|
73
79
|
|
74
80
|
## Use the library in custom Netsoul Ruby client
|
75
81
|
|
76
|
-
|
82
|
+
Look at the client implementation in this gem: [https://github.com/fenicks/netsoul-ruby/blob/master/bin/netsoul-ruby]().
|
83
|
+
This client is implemented in less than 150 lines of code.
|
77
84
|
|
78
85
|
## Contributing
|
79
86
|
|
data/bin/netsoul-ruby
CHANGED
@@ -114,7 +114,7 @@ end
|
|
114
114
|
|
115
115
|
retry_count = 10
|
116
116
|
retry_wait_time = 1.0
|
117
|
-
RETRY_WAIT_FACTOR = 1.25 # Each time retry is called 'retry_wait_time' is increased with this factor
|
117
|
+
RETRY_WAIT_FACTOR = 1.25 # Each time retry is called in Exception, current 'retry_wait_time' is increased with this factor
|
118
118
|
begin
|
119
119
|
c = Netsoul::Client.new options[:user_opts]
|
120
120
|
c.connect
|
data/lib/netsoul/version.rb
CHANGED