| | |
| | | } |
| | | } |
| | | |
| | | LDAPDelete ldapDelete = null; |
| | | try |
| | | { |
| | | if (initializeServer) |
| | |
| | | connectionOptions, out, err); |
| | | connection.connectToHost(bindDNValue, bindPasswordValue, nextMessageID); |
| | | |
| | | LDAPDelete ldapDelete = new LDAPDelete(nextMessageID, out, err); |
| | | ldapDelete = new LDAPDelete(nextMessageID, out, err); |
| | | if(fileNameValue == null && dnStrings.isEmpty()) |
| | | { |
| | | // Read from stdin. |
| | |
| | | { |
| | | if(connection != null) |
| | | { |
| | | connection.close(); |
| | | if (ldapDelete == null) |
| | | { |
| | | connection.close(null); |
| | | } |
| | | else |
| | | { |
| | | connection.close(ldapDelete.nextMessageID); |
| | | } |
| | | } |
| | | } |
| | | return 0; |