BlackbitDigitalCommerce / pimcore-ldap-bundle

LDAP bundle for Pimcore
GNU General Public License v3.0
27 stars 9 forks source link

issue in logging #14

Open remyagrai opened 4 years ago

remyagrai commented 4 years ago

i just follow these steps, but i didnt got the results. can you please help me

BlackbitDevs commented 4 years ago

Please provide your configuration as well as the expected and the actual result.

remyahalza commented 4 years ago

i use alep/ldap in pimcore,

installed and activate bundle i add

Symfony\Component\Ldap\Ldap: arguments: ['@Symfony\Component\Ldap\Adapter\ExtLdap\Adapter'] Symfony\Component\Ldap\Adapter\ExtLdap\Adapter: arguments:

and alep_ldap: enabled: true base_dn: “dc=example,dc=com”

in config.yaml

In azure custom domain add example.com and enabled secure LDAP and open both port 636 and 389

pimcore is in localhost,

but i cant login pimcore with example.com credentials

Add this ldaps.example.com to hosts file also

remyahalza commented 4 years ago

i changed the config file to

alep_ldap: enabled: true base_dn: 'OU=AADDC Users,DC=example,DC=com'

remyahalza commented 4 years ago

alep.ldap.DEBUG: Searching for ldap user 'fff' with the base dn 'OU=AADDC Users,DC=example,DC=com' and the filter '(sAMAccountName=fff)'. [] [] [2020-09-06 18:21:35] php.DEBUG: Warning: ldap_bind(): Unable to bind to server: Can't contact LDAP server {"exception":"[object] (Symfony\Component\Debug\Exception\SilencedErrorContext: {\"severity\":2,\"file\":\"C:\\Bitnami\\pimcore-6.6.9-0\\apps\\pimcore\\htdocs\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\Connection.php\",\"line\":60,\"trace\":[{\"file\":\"C:\\Bitnami\\pimcore-6.6.9-0\\apps\\pimcore\\htdocs\\vendor\\symfony\\symfony\\src\\Symfony\\Component\\Ldap\\Ldap.php\",\"line\":40,\"function\":\"bind\",\"class\":\"Symfony\\Component\\Ldap\\Adapter\\ExtLdap\\Connection\",\"type\":\"->\"}],\"count\":1})"} [] [2020-09-06 18:21:35] app.WARNING: Can't contact LDAP server [] []

remyahalza commented 4 years ago

this is my error log and i am using bitnami stack pimcore

BlackbitDevs commented 4 years ago

Could you try to manually connect to your LDAP server from CLI? ldapsearch -V -H ldaps://ldaps.example.com -b"dc=example,dc=com" -D"uid=fff,dc=example,dc=com" -x -LLL "(uid=*)" dn -w'<User password>'

remyahalza commented 4 years ago

TLS certificate verification: depth: 1, err: 20, subject: /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certs.godaddy.com/repository//CN=Go Daddy Secure Certificate Authority - G2, issuer: /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./CN=Go Daddy Root Certificate Authority - G2 TLS certificate verification: Error, unable to get local issuer certificate TLS trace: SSL3 alert write:fatal:unknown CA

This is the actual error

remyahalza commented 4 years ago

actually my cerificate is in my local system