To list no of establish connections
netstat -an | grep “:389.*EST” | wc -l
netstat -an | grep -c “:389”
To list all the connections with ip detaials
lsof -i tcp:389
To view the config.ldif file from the openldap command line prompt
vi /etc/openldap/slapd.d/cn=config.ldif
To edit the file from the particular path in openldap using command line to edit the olcIdletimeout setting
gedit /etc/openldap/slapd.d/cn=config.ldif
To Come out of the editor use : then type quit (:quit)
To edit no of concurrent connections in openldap
gedit etc/security/limits.d/90-nproc.conf
To see the version of openldap
slapd -VV
To list the directories
ls
Commands to start ,stop and restart
service slapd stop
service slapd start
service slapd restart
service slapd status
For changing concurrent connections go to the following file
Places –> Computer –> Filesystem ->etc ->Security -> limits.d -> 90-nproc.conf
For changing idletimeout
Filesystem ->etc ->openldap -> slapd.d -> config.ldif change olcIdleTimeOut value by default it is 0 which means dont clear the connections ,if you change this to 60 , the connections will get cleared in 1min
This file is use to set the size limit.
Filesystem -> etc -> openldap -> ldap.conf