github-ldap 1.0.8 → 1.0.9
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.
- data/README.md +1 -1
- data/github-ldap.gemspec +1 -1
- data/lib/github/ldap/server.rb +5 -7
- metadata +2 -2
data/README.md
CHANGED
@@ -30,7 +30,7 @@ There are a few configuration options required to use this adapter:
|
|
30
30
|
* port: is the port where the ldap server lives.
|
31
31
|
* admin_user: is the the ldap administrator user. Required to perform search operation.
|
32
32
|
* admin_password: is the password for the administrator user. Simple authentication is required on the server.
|
33
|
-
*
|
33
|
+
* encryption: is the encryption protocol, disabled by default. The valid options are `ssl` and `tls`.
|
34
34
|
* uid: is the field name in the ldap server used to authenticate your users, in ActiveDirectory this is `sAMAccountName`.
|
35
35
|
|
36
36
|
Initialize a new adapter using those required options:
|
data/github-ldap.gemspec
CHANGED
data/lib/github/ldap/server.rb
CHANGED
@@ -33,14 +33,12 @@ module GitHub
|
|
33
33
|
def self.start_server(options = {})
|
34
34
|
@server_options = DEFAULT_SERVER_OPTIONS.merge(options)
|
35
35
|
|
36
|
-
@
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
port: server_options[:port],
|
41
|
-
quiet: server_options[:quiet],
|
42
|
-
tmpdir: server_tmp)
|
36
|
+
@server_options[:allow_anonymous] = false
|
37
|
+
@server_options[:ldif] = @server_options[:user_fixtures]
|
38
|
+
@server_options[:domain] = @server_options[:user_domain]
|
39
|
+
@server_options[:tmpdir] ||= server_tmp
|
43
40
|
|
41
|
+
@ldap_server = Ladle::Server.new(@server_options)
|
44
42
|
@ldap_server.start
|
45
43
|
end
|
46
44
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-ldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: net-ldap
|