1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

CVE-2020-25722 s4/cracknames: add comment pointing to samldb spn handling

These need to stay a little bit in sync. The reverse comment is there.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14564

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2021-08-12 21:53:16 +12:00 committed by Jule Anger
parent 11540375af
commit ce2930d2d2

View File

@ -81,6 +81,12 @@ static enum drsuapi_DsNameStatus LDB_lookup_spn_alias(struct ldb_context *ldb_ct
const char *alias_from,
char **alias_to)
{
/*
* Some of the logic of this function is mirrored in find_spn_alias()
* in source4/dsdb.samdb/ldb_modules/samldb.c. If you change this to
* not return the first matched alias, you will need to rethink that
* function too.
*/
unsigned int i;
int ret;
struct ldb_result *res;