bsb_active_directory 23.0 → 99.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c35fa4a08bd223f45f07b8dbcf00e2ac4bd4fd6af85be76088aff99fa915040
4
- data.tar.gz: b2eeda4d8c4748aeff2934dbd933bbf32a3fd3f326ea6e2c1ad348d249c7631b
3
+ metadata.gz: cfc7774788a713c1bf4098879ad3de9c3e9b3a917324d831579fa3a0d9517d30
4
+ data.tar.gz: c5eb6bf951f0c7e426d467b86ab840cce96fabc0602a55e58865f3686552c953
5
5
  SHA512:
6
- metadata.gz: 687800f1b88886e35678a4b15704edbef5927f318eeacc47acd13c1f8d72bbe9dd60c57fa3ef603710f75eac6c4f791ea0a1577271e88806d2161258009e1f60
7
- data.tar.gz: bf6f88acc69545506a7608707d2b86337d7cddfcf947f8743186df9feb998e6e5e64a6415808c75b47b33b43f90de34414f751fdf4fb5f86decb82815eac162e
6
+ metadata.gz: 1867c287a58341399018e88ad96ba171555ea0d9a77c98c8dea2b8c038502e1aa86f8d6c7ab0c984444bf15cdd6ce295b3c8b93a04e251074ae1ac8177fd8bc9
7
+ data.tar.gz: ffa500d05f3a9638d7758acf1fc94c7031ec4d19a6472cf2a9c23803fdc3bb18ca1747d940d898fc8b16db9577d25e66952ec49fad83d8ea62f63e40778aafd3
data/README.md CHANGED
@@ -1,43 +1,43 @@
1
- = Active Directory
2
-
3
- Ruby Integration with Microsoft's Active Directory system based on original code by Justin Mecham and James Hunt at http://rubyforge.org/projects/activedirectory
4
-
5
- See documentation on ActiveDirectory::Base for more information.
6
-
7
- Caching:
8
- Queries for membership and group membership are based on the distinguished name of objects. Doing a lot of queries, especially for a Rails app, is a sizable slowdown. To alleviate the problem, I've implemented a very basic cache for queries which search by :distinguishedname. This is disabled by default. All other queries are unaffected.
9
-
10
-
11
- A code example is worth a thousand words:
12
-
13
- <pre>
14
- require 'rubygems'
15
- require 'active_directory'
16
-
17
- # Uses the same settings as net/ldap
18
- settings = {
19
- :host => 'domain-controller.example.local',
20
- :base => 'dc=example,dc=local',
21
- :port => 636,
22
- :encryption => :simple_tls,
23
- :auth => {
24
- :method => :simple,
25
- :username => "username",
26
- :password => "password"
27
- }
28
- }
29
-
30
- # Basic usage
31
- ActiveDirectory::Base.setup(settings)
32
-
33
- ActiveDirectory::User.find(:all)
34
- ActiveDirectory::User.find(:first, :userprincipalname => "john.smith@domain.com")
35
-
36
- ActiveDirectory::Group.find(:all)
37
-
38
- #Caching is disabled by default, to enable:
39
- ActiveDirectory::Base.enable_cache
40
- ActiveDirectory::Base.disable_cache
41
- ActiveDirectory::Base.cache?
42
-
43
- </pre>
1
+ = Active Directory
2
+
3
+ Ruby Integration with Microsoft's Active Directory system based on original code by Justin Mecham and James Hunt at http://rubyforge.org/projects/activedirectory
4
+
5
+ See documentation on ActiveDirectory::Base for more information.
6
+
7
+ Caching:
8
+ Queries for membership and group membership are based on the distinguished name of objects. Doing a lot of queries, especially for a Rails app, is a sizable slowdown. To alleviate the problem, I've implemented a very basic cache for queries which search by :distinguishedname. This is disabled by default. All other queries are unaffected.
9
+
10
+
11
+ A code example is worth a thousand words:
12
+
13
+ <pre>
14
+ require 'rubygems'
15
+ require 'bsb_active_directory'
16
+
17
+ # Uses the same settings as net/ldap
18
+ settings = {
19
+ :host => 'domain-controller.example.local',
20
+ :base => 'dc=example,dc=local',
21
+ :port => 636,
22
+ :encryption => :simple_tls,
23
+ :auth => {
24
+ :method => :simple,
25
+ :username => "username",
26
+ :password => "password"
27
+ }
28
+ }
29
+
30
+ # Basic usage
31
+ ActiveDirectory::Base.setup(settings)
32
+
33
+ ActiveDirectory::User.find(:all)
34
+ ActiveDirectory::User.find(:first, :userprincipalname => "john.smith@domain.com")
35
+
36
+ ActiveDirectory::Group.find(:all)
37
+
38
+ #Caching is disabled by default, to enable:
39
+ ActiveDirectory::Base.enable_cache
40
+ ActiveDirectory::Base.disable_cache
41
+ ActiveDirectory::Base.cache?
42
+
43
+ </pre>
@@ -65,8 +65,8 @@ module ActiveDirectory
65
65
  dn = 'CN=' + name + ',' + ou
66
66
  attributes = {
67
67
  objectClass: %w[top group],
68
+ cn: name,
68
69
  sAMAccountName: name,
69
- objectCategory: 'CN=Group,CN=Schema,CN=Configuration,DC=afssa,DC=fr',
70
70
  groupType: type_mask.to_s
71
71
  }
72
72
  @@ldap.add(dn: dn, attributes: attributes)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsb_active_directory
3
3
  version: !ruby/object:Gem::Version
4
- version: '23.0'
4
+ version: '99.0'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Arnaud