Open remyagrai opened 4 years ago
Please provide your configuration as well as the expected and the actual result.
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
i changed the config file to
alep_ldap: enabled: true base_dn: 'OU=AADDC Users,DC=example,DC=com'
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 [] []
this is my error log and i am using bitnami stack pimcore
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>'
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
actually my cerificate is in my local system
i just follow these steps, but i didnt got the results. can you please help me