Skip to content

Commit 364c924

Browse files
fix typo
1 parent 272cbe2 commit 364c924

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

testserver/ldapserver.rb

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -172,26 +172,28 @@ def load_test_data
172172

173173
require 'net/ldap'
174174

175-
LdapServerAsnSyntax = Net::BER.compile_syntax({
176-
:application => {
177-
:constructed => {
178-
0 => :array, # LDAP BindRequest
179-
3 => :array # LDAP SearchRequest
180-
},
181-
:primitive => {
182-
2 => :string, # ldapsearch sends this to unbind
183-
},
184-
},
185-
:context_specific => {
186-
:primitive => {
187-
0 => :string, # simple auth (password)
188-
7 => :string # present filter
189-
},
190-
:constructed => {
191-
3 => :array # equality filter
192-
},
193-
},
194-
})
175+
LdapServerAsnSyntax = Net::BER.compile_syntax(
176+
{
177+
:application => {
178+
:constructed => {
179+
0 => :array, # LDAP BindRequest
180+
3 => :array # LDAP SearchRequest
181+
},
182+
:primitive => {
183+
2 => :string, # ldapsearch sends this to unbind
184+
},
185+
},
186+
:context_specific => {
187+
:primitive => {
188+
0 => :string, # simple auth (password)
189+
7 => :string # present filter
190+
},
191+
:constructed => {
192+
3 => :array # equality filter
193+
},
194+
},
195+
}
196+
)
195197

196198
EventMachine.run do
197199
$logger.info "starting LDAP server on 127.0.0.1 port 3890"

0 commit comments

Comments
 (0)