public function build(ContainerBuilder $container)
    {
        parent::build($container);
        $extension = $container->getExtension('security');
        $extension->addSecurityListenerFactory(new LdapFormLoginFactory());
        $container->addCompilerPass(new EventRegisterPass());
        $container->addCompilerPass(new LdifUrlLoaderPass());
    }