ldap-autentificator – foglcz

Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
Namespace
Člen | 77
+
0
-

Dobrý den,
obracím se na vás s prosbou.

Pomocí Composeru jsem do projektu nainstaloval foglcz/ldap-autentificator. Nakonfiguroval jsem ho podle dokumentace, ale nějak se mi nedaří ho zprovoznit. Tracy mi vyhazuje tuto chybu:

Class foglcz\ldap\Authenticator used in service 'authenticator' has not been found or is not instantiable.

Pravděpodobně mám chybu někde v configu (kde jinde taky), ale bohužel se mi nedaří ji objevit

#
# SECURITY WARNING: it is CRITICAL that this file & directory are NOT accessible directly via a web browser!
#
# If you don't protect this directory from direct web access, anybody will be able to see your passwords.
# https://nette.org/en/security-warning
#
parameters:

    ldap:
        hostname: 'ldap.server'  # your LDAP server ip
        port: 363                   # your LDAP server port (if different than default)
        baseDn: 'DC=base,DC=cz' # your LDAP base DN search - usually change this to your domain.tld
        loadGroups: false             # set to false if you don't want the auto groups loading & roles loading

php:
        date.timezone: Europe/Prague


nette:
        security:
            users:
                admin: admin

        application:
                errorPresenter: Error
                mapping:
                        *: App\*Module\Presenters\*Presenter

        session:
                expiration: 14 days

services:
        - App\RouterFactory
        router: @App\RouterFactory::createRouter
        - App\Model\UserManager
        userManager: App\Model\UserManager
        authenticator:
                class: foglcz\ldap\Authenticator(%ldap%, "domain.com", "yourcomany.local") # Third parameter optional, used if you have different e-mail domains than the AD domain.
                setup:
                    - addSuccessHandler('id', [@userManager, 'getAuthId'])

Prozradí mi někdo, co jsem udělal špatně? :-)

Předem děkuji

norbe
Backer | 405
+
+1
-

Máš zaregistrovaný autoloading tříd pomocí composeru?

Namespace
Člen | 77
+
0
-

Už ano.

Mnohokrát děkuji! :-)

Meverik
Člen | 2
+
0
-

Ahojte, mám ten istý problém. Viem, že je to vyše roka staré ale snad sa niekto nájde:)

Class foglcz\ldap\Authenticator used in service 'authenticator' not found or is not instantiable.

services:
        userManager: App\Model\UserManager
        - App\Forms\SignFormFactory
        router: App\RouterFactory::createRouter
        authenticator:
            class: foglcz\ldap\Authenticator(%ldap%, "yourcompany.com")
            setup:
                - addSuccessHandler('id', [@userManager, 'getAuthId'])

Čo to znamená?
Máš zaregistrovaný autoloading tříd pomocí composeru?

Ako to otestujem/spravím?

Václav Kraus
Člen | 77
+
0
-

V bootstrap.php by jsi měl mít

require __DIR__ . '/../vendor/autoload.php';
Meverik
Člen | 2
+
0
-

Áno to tam mám.

Aj tak stále chyba zostala.