Lines Matching defs:lret
492 int lret;
508 lret = ldb_search(domain->sysdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE,
510 if (lret != LDB_SUCCESS) {
511 ret = sysdb_error_to_errno(lret);
523 lret = ldb_msg_add_string(msg, "cn", SUDORULE_SUBDIR);
524 if (lret != LDB_SUCCESS) {
525 ret = sysdb_error_to_errno(lret);
534 lret = ldb_msg_add_empty(msg, attr_name, LDB_FLAG_MOD_REPLACE, NULL);
535 if (lret != LDB_SUCCESS) {
536 ret = sysdb_error_to_errno(lret);
541 lret = ldb_msg_add_fmt(msg, attr_name, "%lld", (long long)value);
542 if (lret != LDB_SUCCESS) {
543 ret = sysdb_error_to_errno(lret);
548 lret = ldb_modify(domain->sysdb->ldb, msg);
550 lret = ldb_add(domain->sysdb->ldb, msg);
553 if (lret != LDB_SUCCESS) {
556 ldb_strerror(lret), lret, ldb_errstring(domain->sysdb->ldb));
558 ret = sysdb_error_to_errno(lret);
573 int lret;
588 lret = ldb_search(domain->sysdb->ldb, tmp_ctx, &res, dn, LDB_SCOPE_BASE,
590 if (lret != LDB_SUCCESS) {
591 ret = sysdb_error_to_errno(lret);