Maks3w / FR3DLdapBundle

This bundle integrates LDAP Authentication with any user manager (Ex: FOSUserBundle)
119 stars 77 forks source link

invalide Credential ? ldap_driver.DEBUG: {exception} {"exception": #131

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hello, well i m looking how connect to my ldap, but i found only this erro :

[2016-06-20 18:41:31] ldap_driver.DEBUG: {exception} {"exception":"[object] (Zend\\Ldap\\Exception\\LdapException(code: 49): 0x31 (Invalid credentials; 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1): user001 at /var/www/user33/Symfony/vendor/zendframework/zend-ldap/src/Ldap.php:842)"} []

how fix this error please ?

Maks3w commented 8 years ago

Please do your "how to" questions on a Q&A site like stackoverflow.

ghost commented 8 years ago

Hello i m sill looking a solution but nothing works !

i m sure about my login and password i used.

is about the login and passord on the config.yml.

i thing th way tha'ts FR3DLdapBundle send the password is not correct but i don''t know where looking.

well i m stil searching

web : Ldap error signification : http://ldapwiki.willeke.com/wiki/Common%20Active%20Directory%20Bind%20Errors exemple configuration : http://prob6.com/fr/symfony2-fr3dldapbundle-et-fosuserbundle/

ghost commented 8 years ago

OK i found the problem :+1:
i have to add in my config.yml files :

missing :

        usernameAttribute: sAMAccountName
...
fr3d_ldap:
    driver:
       host:     XX.XX.XX.XX
       username: user@domaine.com
       password: password3
       accountDomainName: domaine.com
       accountDomainNameShort: DOMA
    user:
        baseDn: Ou=ListingUsers,DC=domaine,DC=com
        usernameAttribute: sAMAccountName
        filter: (&(ObjectClass=Person))
        attributes:
            - { ldap_attr: samaccountname,  user_method: setUsername }    

this information is not on the cookbook

so now i have a new mysql problem

thanks

ghost commented 8 years ago

ok evrythink works, now i have to map all information to ldap on my database to have my user information

thanks