summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-02-23 17:59:55 +0100
committerAndrew Bartlett <abartlet@samba.org>2010-02-25 08:16:46 +1100
commit0efa8f4fbb3206512c69d74024c7a937ee035285 (patch)
tree7440b95825cf8cb2d6e3fbac3557e9861daa13dd /source4/dsdb
parentf09802cfc8fae8ce06cf65372e2d4b29e962b95b (diff)
downloadsamba-0efa8f4fbb3206512c69d74024c7a937ee035285.tar.gz
samba-0efa8f4fbb3206512c69d74024c7a937ee035285.tar.bz2
samba-0efa8f4fbb3206512c69d74024c7a937ee035285.zip
s4:SAMLDB module - ignore referrals
They don't cause any harm to our functionality - so ignore them were not needed. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/samldb.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/samldb.c b/source4/dsdb/samdb/ldb_modules/samldb.c
index 6420e05ba8..24d1450d9c 100644
--- a/source4/dsdb/samdb/ldb_modules/samldb.c
+++ b/source4/dsdb/samdb/ldb_modules/samldb.c
@@ -210,9 +210,10 @@ static int samldb_check_samAccountName_callback(struct ldb_request *req,
LDB_ERR_ENTRY_ALREADY_EXISTS);
case LDB_REPLY_REFERRAL:
- /* this should not happen */
- return ldb_module_done(ac->req, NULL, NULL,
- LDB_ERR_OPERATIONS_ERROR);
+ /* ignore */
+ talloc_free(ares);
+ ret = LDB_SUCCESS;
+ break;
case LDB_REPLY_DONE:
/* not found, go on */
@@ -610,9 +611,9 @@ static int samldb_find_for_defaultObjectCategory_callback(struct ldb_request *re
break;
case LDB_REPLY_REFERRAL:
- /* this should not happen */
+ /* ignore */
talloc_free(ares);
- ret = LDB_ERR_OPERATIONS_ERROR;
+ ret = LDB_SUCCESS;
break;
case LDB_REPLY_DONE: