Problems LDAP Agent-Sync - disabled users

I’m sorry, you’re right.
For the full debugging experience, put the following into e.g. ldap_debug.rb into /opt/zammad :

# redirect app logging
Rails.logger = Logger.new('debug.log').tap do |logger|
  logger.level = :debug
end
ActiveRecord::Base.logger = Rails.logger.clone


ImportJob.create(name: 'Import::Ldap', payload: {}).start


require 'mixin/rails_logger'

module Mixin
  module RailsLogger
    def self.logger
      @logger ||= Logger.new(log_to).tap do |logger|
        logger.level = :debug
      end
    end

    def self.log_to
      'debug_issue.log'
    end
  end
end

import_job = ImportJob.create(name: 'Import::Ldap')

result = Sequencer.process('Import::Ldap::Users',
                           parameters: {
                             import_job: import_job
                           })

import_job.save!

Rails.logger.info JSON.pretty_generate(import_job.reload.attributes)

After saving, run zammad run rails r /opt/zammad/ldap_debug.rb and wait for the prompt to return.
Zammad will write an big logfile which contains all details the ldap sync is stumbling on.