snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
11.1k stars 3.18k forks source link

ldaps cannot connect server #10185

Open conan522 opened 3 years ago

conan522 commented 3 years ago

Debug mode

Describe the bug

ldaps cannot connect server. but ldap works

Reproduction steps

1.ldap:\domain.com\ works 2.ldaps:\domain.com:636\ does not work 3. ...

Expected behavior

ldaps:\domain.com:636\ work

Screenshots

No response

Snipe-IT Version

v4.9.4

Operating System

Windwos Server 2016

Web Server

Apche

PHP Version

7.0

Operating System

Windows 10

Browser

Google Chrome

Version

93

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

Could not bind to LDAP: Can't contact LDAP server

Additional context

No response

conan522 commented 3 years ago

I change the LDAP server from ldap://domain.com/ to ldaps://domain.com:636/, and check the "Allow invalid SSL Certificate". Is it right? Also I do not know where I can import the pem CA or fill in CA's path. Anyone can guide me, thanks a lot.

conan522 commented 3 years ago

Anyone have a experience for ldaps configuration?