Perhaps you should pass the -h and provide a host for ldapmodify to connect to.
Instead of running ps in a while loop, you're better off running slapd in debug mode (because, then, you can actually see if something is happening) Here's a man page on slapd... http://linux.die.net/man/8/slapd That being said, I find that it's nice to know all your ldap commands but I find it much easier to use phpldapadmin. (http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page) Works great and never has any issues. From: [email protected] To: [email protected] Date: Fri, 24 Jan 2014 11:19:27 -0500 Subject: [Ltb-users] ldapmodify fails with Can't contact LDAP server (-1) --- Low Sensitivity/Aerospace Internal Use Only Low Sensitivity/Aerospace Internal Use Only Working on a CentOS-6.5 server, running LTB Project's slapd-2.4.38. Someone suggested I implement a cn=admin,cn=config for a cn=config setup. (I don't know how to technically word that). Anyway, I need to make TLS-related changes and was told to do the following command: ldapmodify -x -D "cn=admin,cn=config" -W -d 256 ...then at the blank line type the following, each on a single line: Dn: cn=config Changetype: modify Add: olcTLSCipherSuite OlcTLSCipherSuite: HIGH:MEDIUM+TLSv1+SSLv3 <CTRL-D> I have been getting an error reponse of: ldap_result: Can't contact LDAP server (-1) This __ONLY__ occurs after I hit <CTRL-D>, not before. Yes, the daemon, slapd, is actually running, but after this failure it abruptly stops. I know this because in a separate terminal on the same system, I am running a while-loop with a ps -e | grep slapd in it. Please note the "-x" option according to the man page for ldapmodify is supposed to Use simple authentication instead of SASL. Thank you all for your help, hopefully you can: 1) tell me what this error means, and 2) how to fix my problem so that I can complete the olcTLSxxxx changes I need to implement. Low Sensitivity/Aerospace Internal Use Only _______________________________________________ ltb-users mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-users
_______________________________________________ ltb-users mailing list [email protected] http://lists.ltb-project.org/listinfo/ltb-users
