app/models/user/devise_dependency.rb
# Allow empty password, when use LDAP or encrypted_password was empty
Allow empty password, when use LDAP or encrypted_password was empty
Allow empty password when use LDAP or encrypted_password was empty
def password_required?
    return false if omniauth_provider == "ldap"
    !persisted? || !password.nil? || !password_confirmation.nil?
  end
def password_required? return false if omniauth_provider == "ldap" ! persisted? || ! password . nil? || ! password_confirmation . nil? end
Allow empty password, when use LDAP or encrypted_password was empty
Allow empty password when use LDAP or encrypted_password was empty