ADD TO DOC's
Edit /etc/default/slapd
systemctl restart slapd
I tried this repeatedly with various walkthroughs around the web without success. The docs are rather terse with a link to OpenLDAP, so I started with that.
OpenLDAP is running. command line connects fine.
ie: ldapsearch -h localhost -p 389 -D "cn=admin,dc=mydomain,dc=online" -w password -P 2 -u -Y
-h is the host, localhost can be replaced by 127.0.0.1, still works.
-p is the port, this is the default, but I specified it explicitly in the command line just to sure.
-D is the bind DN.
-w is the password, which is actually the password, HACK AWAY on localhost, I dare you! ;)
-P is the protocol version, 2 can be changed to P 3, still works..
-Z is tls. I did not try it.
-ZZ is ssl. did not try it.as I do not want to fool with certs for 1 account.
Many guides refer to phpLDAPadmin, so I installed that too. It connects to OpenLDAP without any problems. I can add a group (BBB Admin), and a user (me).
This with the exact same connection params as above. literally cut and paste into the login for phpldapadmin.
I set up logging on openldap at level 384. I truncate the log to size 0 and see nothing added to it after greenlight fails to connect. it is not even trying!
ie: truncate /var/log/slapd.log --size 0
tail /var/log/slapd.log -f
On to the greenlight part, here is my env file with the relevant ldap stuff.
from the docs
LDAP_SERVER=localhost
LDAP_PORT=389
LDAP_METHOD=plain
LDAP_UID=uid
LDAP_BASE='dc=myserver,dc=online'
LDAP_BIND_DN='cn=admin,dc=myserver,dc=online'
LDAP_PASSWORD=password
Anybody have this working?