Lines Matching refs:ret

37     int ret;
39 ret = confdb_get_param(cdb, cdb,
43 if (ret != EOK) {
44 return ret;
77 int ret;
89 ret = ldb_search(cdb->ldb, tmp_ctx, &res, dn,
91 if (ret != LDB_SUCCESS) {
92 ret = sysdb_error_to_errno(ret);
98 ret = ldb_delete(cdb->ldb, res->msgs[i]->dn);
99 if (ret != LDB_SUCCESS) {
100 ret = sysdb_error_to_errno(ret);
107 return ret;
112 int ret;
118 ret = ldb_add(cdb->ldb, ldif->msg);
119 if (ret != LDB_SUCCESS) {
122 ret, ldb_errstring(cdb->ldb));
135 int ret;
154 ret = ENOMEM;
159 ret = sss_ini_config_file_open(init_data, config_file);
160 if (ret != EOK) {
162 "sss_ini_config_file_open failed: %s [%d]\n", strerror(ret),
163 ret);
164 if (ret != ENOENT) {
171 ret = copy_file_secure(SSSD_DEFAULT_CONFIG_FILE,
177 if (ret != EOK) {
180 sss_strerror(ret));
182 ret = ERR_MISSING_CONF;
187 ret = sss_ini_config_file_open(init_data, config_file);
188 if (ret != EOK) {
191 strerror(ret), ret);
192 if (ret == ENOENT) {
194 ret = ERR_MISSING_CONF;
201 ret = sss_ini_config_access_check(init_data);
202 if (ret != EOK) {
205 ret = EPERM;
209 ret = sss_ini_get_stat(init_data);
210 if (ret != EOK) {
213 ret = errno;
219 ret = sss_ini_get_mtime(init_data, sizeof(timestr), timestr);
220 if (ret <= 0 || ret >= (int)sizeof(timestr)) {
223 ret = errno ? errno : EFAULT;
231 ret = sss_ini_get_config(init_data, config_file, config_dir);
232 if (ret != EOK) {
237 ret = sss_ini_call_validators(init_data,
239 if (ret != EOK) {
245 ret = sss_ini_get_cfgobj(init_data, "sssd", "config_file_version");
246 if (ret != EOK) {
252 ret = sss_ini_check_config_obj(init_data);
253 if (ret != EOK) {
261 -1, &ret);
262 if (ret != EOK) {
270 ret = EINVAL;
275 ret = EINVAL;
281 ret = ldb_transaction_start(cdb->ldb);
282 if (ret != LDB_SUCCESS) {
286 ret = sysdb_error_to_errno(ret);
292 ret = confdb_purge(cdb);
293 if (ret != EOK) {
299 ret = sss_confdb_create_ldif(tmp_ctx, init_data, &config_ldif);
300 if (ret != EOK) {
308 ret = ldb_add(cdb->ldb, ldif->msg);
309 if (ret != LDB_SUCCESS) {
312 ret, ldb_errstring(cdb->ldb));
313 ret = EIO;
322 ret = confdb_add_param(cdb, true, "config", "lastUpdate", vals);
323 if (ret != EOK) {
329 ret = ldb_transaction_commit(cdb->ldb);
330 if (ret != EOK) {
336 ret = EOK;
350 return ret;
361 errno_t ret;
369 ret = confdb_init(tmp_ctx, &cdb, cdb_file);
370 if (ret != EOK) {
372 "[%d]: %s\n", ret, sss_strerror(ret));
377 ret = confdb_test(cdb);
378 if (ret == ENOENT) {
385 ret = unlink(cdb_file);
386 if (ret != EOK && errno != ENOENT) {
387 ret = errno;
390 ret, sss_strerror(ret));
394 ret = confdb_init(tmp_ctx, &cdb, cdb_file);
395 if (ret != EOK) {
397 "[%d]: %s\n", ret, sss_strerror(ret));
401 ret = confdb_create_base(cdb);
402 if (ret != EOK) {
407 } else if (ret != EOK) {
412 ret = confdb_init_db(config_file, config_dir, cdb);
413 if (ret != EOK) {
415 "[%d]: %s\n", ret, sss_strerror(ret));
421 ret = EOK;
425 return ret;