Sha256: d15848001e4bc54b98afcc53a681023e59964d9b96f40c2e645a78e75e96ce0c
Contents?: true
Size: 494 Bytes
Versions: 1
Compression:
Stored size: 494 Bytes
Contents
module Utils # piggy back on cratus for ldap work module Cratususer def user_query(username) options = { host: config.host, port: config.port, base: config.basedn, auth: { method: :simple, username: config.username, password: config.password } } Cratus.config.merge(options) Cratus::LDAP.connect user = Cratus::User.new(username.to_s) user ? user.locked? : user end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-activedirectory-0.0.4 | lib/utils/cratususer.rb |