puavo_authentication 0.2.3 → 0.2.4

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.
@@ -67,7 +67,7 @@ module PuavoAuthentication
67
67
  end
68
68
 
69
69
  # Authenticate with server's distinguished name and password
70
- if (server_dn = ActiveLdap::DistinguishedName.parse(username) rescue nil)
70
+ if !username.to_s.empty? && (server_dn = ActiveLdap::DistinguishedName.parse(username) rescue nil)
71
71
  if server_dn.parent.rdns.first["ou"] == "Servers"
72
72
  return {
73
73
  :dn => server_dn,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puavo_authentication
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jouni Korhonen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-10-18 00:00:00 +02:00
18
+ date: 2012-10-19 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21