added the ASN.1 syntax definition for a "present" filter.
This commit is contained in:
parent
ff01c26401
commit
a25e74e1e3
|
@ -42,12 +42,13 @@ module LdapServer
|
||||||
3 => :array # LDAP SearchRequest
|
3 => :array # LDAP SearchRequest
|
||||||
},
|
},
|
||||||
:primitive => {
|
:primitive => {
|
||||||
2 => :string # ldapsearch sends this to unbind
|
2 => :string, # ldapsearch sends this to unbind
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
:context_specific => {
|
:context_specific => {
|
||||||
:primitive => {
|
:primitive => {
|
||||||
0 => :string # simple auth (password)
|
0 => :string, # simple auth (password)
|
||||||
|
7 => :string # present filter
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -114,6 +115,8 @@ module LdapServer
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# pdu[1][7] is the attributes. It's an empty array to signify ALL attributes.
|
||||||
|
puts "WARNING, not interpreting attributes specifier"
|
||||||
=begin
|
=begin
|
||||||
Search Response ::=
|
Search Response ::=
|
||||||
CHOICE {
|
CHOICE {
|
||||||
|
@ -187,10 +190,10 @@ if __FILE__ == $0
|
||||||
$logger.info "adding ../lib to loadpath, to pick up dev version of Net::LDAP."
|
$logger.info "adding ../lib to loadpath, to pick up dev version of Net::LDAP."
|
||||||
$:.unshift "../lib"
|
$:.unshift "../lib"
|
||||||
|
|
||||||
require 'netber'
|
require 'net/ber'
|
||||||
require 'ldappdu'
|
require 'net/ldappdu'
|
||||||
require 'netldap'
|
require 'net/ldap'
|
||||||
require 'netldapfilter'
|
require 'net/ldapfilter'
|
||||||
|
|
||||||
EventMachine.run {
|
EventMachine.run {
|
||||||
$logger.info "starting LDAP server on 127.0.0.1 port 3890"
|
$logger.info "starting LDAP server on 127.0.0.1 port 3890"
|
||||||
|
|
Loading…
Reference in a new issue