Module LDAP En: Difference between revisions

m
Tag: 2017 source edit
Tag: 2017 source edit
Line 45: Line 45:
[ldap]
[ldap]
client = yes
client = yes
accept = 127.0.0.1:1636
accept = ip.of.stunnel:1636
connect = ldap.google.com:636
connect = ldap.google.com:636
cert = ldap-client.crt
cert = ldap-client.crt
Line 59: Line 59:
</syntaxHighlight>
</syntaxHighlight>


* ''Configure your application to point to ldap://127.0.0.1:1636.You can replace “1636” with any unused port if you also change the accept line in the configuration file above. You'll need to use plaintext LDAP without StartTLS/SSL/TLS enabled between the client and stunnel, since they are communicating locally.''
* ''Configure your application to point to ldap://ip.of.stunnel:1636. You can replace “1636” with any unused port if you also change the accept line in the configuration file above.  
On Dolibarr LDAP Setup (see later), you will need to use "plaintext LDAP without StartTLS/SSL/TLS enabled" between the Dolibarr and Stunnel.''


''Note: If you choose to run stunnel on a separate server, you must configure your firewalls so that only the necessary applications can access your stunnel server. You can also configure stunnel to listen with TLS so that data between your application and stunnel servers is encrypted. The details of both of these configurations depend on your environment.''
''Note: If you choose to run stunnel on a separate server, you must configure your firewalls so that only the necessary applications can access your stunnel server. You can also configure stunnel to listen with TLS so that data between your application and stunnel servers is encrypted. The details of both of these configurations depend on your environment.''