Author: jsuchome Date: Fri Feb 4 15:18:59 2011 New Revision: 63349 URL: http://svn.opensuse.org/viewcvs/yast?rev=63349&view=rev Log: - added command to close the connection - 2.20.1 Modified: trunk/ldap/VERSION trunk/ldap/doc/ldap.html trunk/ldap/package/yast2-ldap.changes trunk/ldap/src/LdapAgent.cc Modified: trunk/ldap/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap/VERSION?rev=63349&r1=63348&r2=63349&view=diff ============================================================================== --- trunk/ldap/VERSION (original) +++ trunk/ldap/VERSION Fri Feb 4 15:18:59 2011 @@ -1 +1 @@ -2.20.0 +2.20.1 Modified: trunk/ldap/doc/ldap.html URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap/doc/ldap.html?rev=63349&r1=63348&r2=63349&view=diff ============================================================================== --- trunk/ldap/doc/ldap.html (original) +++ trunk/ldap/doc/ldap.html Fri Feb 4 15:18:59 2011 @@ -450,6 +450,15 @@ </td> </tr> + <tr><td><tt>.ldap.close</td> + <td align="left">none</td> + <td>Closes current connection: does UNBIND and destroys current object.<br> + <pre> + Execute (.ldap.close) + </pre> + + </td> + </tr> </table> Modified: trunk/ldap/package/yast2-ldap.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap/package/yast2-ldap.changes?rev=63349&r1=63348&r2=63349&view=diff ============================================================================== --- trunk/ldap/package/yast2-ldap.changes (original) +++ trunk/ldap/package/yast2-ldap.changes Fri Feb 4 15:18:59 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Feb 4 13:57:47 CET 2011 - jsuchome@suse.cz + +- added command to close the connection +- 2.20.1 + +------------------------------------------------------------------- Thu Jan 13 09:33:46 CET 2011 - jsuchome@suse.cz - added support for setting TLS options Modified: trunk/ldap/src/LdapAgent.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap/src/LdapAgent.cc?rev=63349&r1=63348&r2=63349&view=diff ============================================================================== --- trunk/ldap/src/LdapAgent.cc (original) +++ trunk/ldap/src/LdapAgent.cc Fri Feb 4 15:18:59 2011 @@ -1257,7 +1257,6 @@ } port = getIntValue (argmap, "port", DEFAULT_PORT); - // int version = getIntValue (argmap, "version", 3); TODO // TODO how/where to set this? cons = new LDAPConstraints; @@ -1430,6 +1429,16 @@ ldap->unbind(); return YCPBoolean(true); } + /** + * close the connection, delete object + */ + else if (PC(0) == "close") { + ldap->unbind(); + delete ldap; + ldap = NULL; + ldap_initialized = false; + return YCPBoolean(true); + } /** * Initialize schema: read and parse it */ -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org