Expanded the number or arguments that indicate that a remote operation is to be performed from just -h (host) to also include -p (port) and -D (bind DN)
| | |
| | | * false otherwise |
| | | */ |
| | | public boolean isLdapOperation() { |
| | | // This may not be ideal in all cases. We might want to assume no |
| | | // host means 'localhost'. However we would still need some way to |
| | | // tell whether the user intends this invocation to be remote. |
| | | return host.isPresent(); |
| | | return host.isPresent() || port.isPresent() || bindDN.isPresent(); |
| | | } |
| | | |
| | | /** |