adap 0.0.15 → 0.0.16

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: 2d6b9c74a5d53a24227c3753f17a5ae0cd6013dd462384eeaa264a36026e4c2f
4
- data.tar.gz: 62080295b2ebfaac3831693a162300f9cea86066f614f6a5327b6f4149c6dfa5
3
+ metadata.gz: 907364c192378f50871a6c1e5248db8382a53c2b876d9f3ff6823c6b2dad2de6
4
+ data.tar.gz: ff142c11c0b48cb722614a0d850a2a7cd9570577b9f0322f7cd2a40d06e95f70
5
5
  SHA512:
6
- metadata.gz: 4dd9414e4ca4340024de4bcf337f495c706fe3c482ac2eafcca491ca6a1445a248c36256a506cc16b4487594e3ecba5f7465a1be0571a70a3ccef9d6bee95f4e
7
- data.tar.gz: e469a2cca56ea3c20eb4a25ff211d76d8a1f7daaed9f1b06e766fd840102e69125d92a667774fc6c0849d905179a62a89e6cac8769ed219a01a5cc208372a84d
6
+ metadata.gz: bacf1a764a793be1039e58344ede45baad6cd59539f0e9911158f2bfe76489096b134475c174c0e825f1c4645652602defd9ea68d8f4453f9e87d53ba246293e
7
+ data.tar.gz: e4fad9ea602012095e434959d852e8bd94e360f81cb678cec92b86326c617fdcd80abc0f282dbad3f068e2e4c64cb3b35fcb714b82b536732cb303ce1ccb3524
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- adap (0.0.7)
4
+ adap (0.0.15)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -36,6 +36,7 @@ class Adap
36
36
  @ldap_host = params[:ldap_host]
37
37
  @ldap_port = (params[:ldap_port] ? params[:ldap_port] : 389)
38
38
  @ldap_binddn = params[:ldap_binddn]
39
+ @ldap_suffix_ou = (params[:ldap_suffix_ou] ? params[:ldap_suffix_ou] : "ou=Users")
39
40
  @ldap_basedn = params[:ldap_basedn]
40
41
  @ldap_user_basedn = params[:ldap_user_basedn]
41
42
  @ldap_auth = (params.has_key?(:ldap_password) ? { :method => :simple, :username => @ldap_binddn, :password => params[:ldap_password] } : nil )
@@ -83,7 +84,7 @@ class Adap
83
84
  end
84
85
 
85
86
  def get_ldap_dn(username)
86
- "uid=#{username},ou=Users,#{@ldap_basedn}"
87
+ "uid=#{username},#{@ldap_suffix_ou},#{@ldap_basedn}"
87
88
  end
88
89
 
89
90
  def create_ldap_attributes(ad_entry)
@@ -1,3 +1,3 @@
1
1
  module ModAdap
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tsutomu Nakamura
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-15 00:00:00.000000000 Z
11
+ date: 2020-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler