mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
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>
This commit is contained in:
parent
f09802cfc8
commit
0efa8f4fbb
@ -210,9 +210,10 @@ static int samldb_check_samAccountName_callback(struct ldb_request *req,
|
|||||||
LDB_ERR_ENTRY_ALREADY_EXISTS);
|
LDB_ERR_ENTRY_ALREADY_EXISTS);
|
||||||
|
|
||||||
case LDB_REPLY_REFERRAL:
|
case LDB_REPLY_REFERRAL:
|
||||||
/* this should not happen */
|
/* ignore */
|
||||||
return ldb_module_done(ac->req, NULL, NULL,
|
talloc_free(ares);
|
||||||
LDB_ERR_OPERATIONS_ERROR);
|
ret = LDB_SUCCESS;
|
||||||
|
break;
|
||||||
|
|
||||||
case LDB_REPLY_DONE:
|
case LDB_REPLY_DONE:
|
||||||
/* not found, go on */
|
/* not found, go on */
|
||||||
@ -610,9 +611,9 @@ static int samldb_find_for_defaultObjectCategory_callback(struct ldb_request *re
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case LDB_REPLY_REFERRAL:
|
case LDB_REPLY_REFERRAL:
|
||||||
/* this should not happen */
|
/* ignore */
|
||||||
talloc_free(ares);
|
talloc_free(ares);
|
||||||
ret = LDB_ERR_OPERATIONS_ERROR;
|
ret = LDB_SUCCESS;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case LDB_REPLY_DONE:
|
case LDB_REPLY_DONE:
|
||||||
|
Loading…
Reference in New Issue
Block a user