Differences

This shows you the differences between two versions of the page.

Link to this comparison view

help:technical:ldap_tutorial:openldap [2009/06/26 16:29]
rubin created
help:technical:ldap_tutorial:openldap [2009/06/26 16:47] (current)
rubin
Line 150: Line 150:
  
 sizelimit unlimited sizelimit unlimited
 +</code>
  
  
 +In /etc/default/slapd, varibles are defined for ubuntu's init scripts to run slapd with arguments. Mainly you need to tell it to listen on all interfaces for ldaps. We use something like this to make ldap available to localhost, and ldaps available everywhere. We then use IPTABLES to restrict the ldaps port to our trusted other hosts:
 +<code>
 +# slapd normally serves ldap only on all TCP-ports 389. slapd can also
 +# service requests on TCP-port 636 (ldaps) and requests via unix
 +# sockets.
 +# Example usage:
 +SLAPD_SERVICES="ldap://127.0.0.1:389/ ldaps:/// ldapi:///"
 </code> </code>