/*
SSSD
Authors:
Fabiano FidĂȘncio <fidencio@redhat.com>
Copyright (C) 2017 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "providers/ipa/ipa_common.h"
#include "providers/ipa/ipa_deskprofile_private.h"
#include "providers/ipa/ipa_deskprofile_config.h"
#include "providers/ldap/sdap_async.h"
struct ipa_deskprofile_config_state {
};
static void
struct tevent_req *
struct tevent_context *ev,
struct sdap_handle *sh,
struct sdap_options *opts,
{
char *rule_filter;
struct ipa_deskprofile_config_state);
return NULL;
}
if (rule_filter == NULL) {
goto done;
}
false);
goto done;
}
done:
}
return req;
}
static void
{
"Could not retrieve Desktop Profile config\n");
goto done;
}
if (reply_count == 0) {
/*
* When connecting to an old server that doesn't support Desktop
* Profile, the reply_count will be zero.
* In order to not throw a unnecessary error and fail let's just
* return ENOENT and print a debug message about it.
*/
"Server doesn't support Desktop Profile.\n");
goto done;
} else if (reply_count != 1) {
"Unexpected number of results, expected 1, got %zu.\n",
goto done;
}
done:
return;
}
}
struct sysdb_attrs **config)
{
return EOK;
}