@rest_initialiser(cluster_init_check=True, version_check=True, enterprise_check=True)
def execute(self, opts):
    if opts.get:
        (data, rv) = self.rest.get_ldap()
        _exit_if_errors(rv)
        print(json.dumps(data))
    else:
        self._set(opts)
@rest_initialiser(cluster_init_check=True, version_check=True, enterprise_check=True)
def execute(self, opts):
    if opts.get:
        (data, rv) = self.rest.get_ldap()
        _exit_if_errors(rv)
        print(json.dumps(data))
    else:
        self._set(opts)