socialcast_ldap_integration 1.1.12 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
@@ -155,7 +155,15 @@ module Socialcast
|
|
155
155
|
# Returns true if LDAP will manage the user field with the given name
|
156
156
|
def self.mirroring_field?(field)
|
157
157
|
string_field = field.to_s
|
158
|
-
self.available? && (["password", "email"].include?(string_field))
|
158
|
+
if self.available? && (["password", "email"].include?(string_field))
|
159
|
+
return true
|
160
|
+
else
|
161
|
+
ldap_connections = self.config["connections"]
|
162
|
+
ldap_connections.each do |connection|
|
163
|
+
return true if connection["map"].keys.include?(string_field)
|
164
|
+
end
|
165
|
+
end
|
166
|
+
false
|
159
167
|
end
|
160
168
|
|
161
169
|
def self.fetch_account_info(identifier, options = {})
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast_ldap_integration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.13
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-09-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: socialcast-net-ldap
|