diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-05-23 12:59:58 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2011-05-25 08:57:46 +0200 |
commit | 779d882aca4fb0486bea0109c3630e1d7abef840 (patch) | |
tree | 401955f70463ecda8bd7a78081526bd44eb39b7d /source4/dsdb | |
parent | 11937ce5e1b02af2eed2bc4d61c71875838c23a8 (diff) | |
download | samba-779d882aca4fb0486bea0109c3630e1d7abef840.tar.gz samba-779d882aca4fb0486bea0109c3630e1d7abef840.tar.bz2 samba-779d882aca4fb0486bea0109c3630e1d7abef840.zip |
s4:samldb LDB module - convert a "dsdb_module_search" into "dsdb_module_search_dn"
It saves us from checking the number of returned entries.
Reviewed-by: abartlet
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/samldb.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c index fa0c4f6317..467558d32d 100644 --- a/source4/dsdb/samdb/ldb_modules/samldb.c +++ b/source4/dsdb/samdb/ldb_modules/samldb.c @@ -1095,14 +1095,11 @@ static int samldb_prim_group_change(struct samldb_ctx *ac) /* Fetch information from the existing object */ - ret = dsdb_module_search(ac->module, ac, &res, ac->msg->dn, LDB_SCOPE_BASE, attrs, - DSDB_FLAG_NEXT_MODULE, ac->req, NULL); + ret = dsdb_module_search_dn(ac->module, ac, &res, ac->msg->dn, attrs, + DSDB_FLAG_NEXT_MODULE, ac->req); if (ret != LDB_SUCCESS) { return ret; } - if (res->count != 1) { - return ldb_operr(ldb); - } /* Finds out the DN of the old primary group */ |