lib/account_manager/directory.rb
#
# Return true if the user can bind
#
Return true if the user can bind
Return true if the user can bind
def can_bind?(uid, password)
        bound = false
        open do |ldap|
          ldap.auth bind_dn(uid), password
          bound = ldap.bind
        end
        bound
      end
def can_bind? ( uid , password ) bound = false open do | ldap | ldap . auth bind_dn ( uid ) , password bound = ldap . bind end bound end
Return true if the user can bind
Return true if the user can bind
uid
<not_specific>
password
<not_specific>