Skip to content

Fix subsearches error in yaml - #790

Open
pirlgon wants to merge 1 commit into
masterfrom
fix_joins
Open

Fix subsearches error in yaml#790
pirlgon wants to merge 1 commit into
masterfrom
fix_joins

Conversation

@pirlgon

@pirlgon pirlgon commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Fixes #789
Since the configuration file is normalised before
decoding, joins are already replaced by subsearches.

@bersace

bersace commented Aug 17, 2026

Copy link
Copy Markdown
Member

changelog.

Le contournement est d'utiliser joins ?

@pirlgon

pirlgon commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator Author

@bersace même pas car normalize remplace joins, je n'ai pas trouvé de contournement.

Since the configuration file is normalised before
decoding, joins are already replaced by subsearches.
@bersace

bersace commented Aug 24, 2026

Copy link
Copy Markdown
Member

@bersace même pas car normalize remplace joins, je n'ai pas trouvé de contournement.

Encore un dév qui a fait n'importe-quoi :x

Le nom canonique est subsearches. En effet, joins est un abus de langage. subsearches indique plus clairement que cette fonctionnalité multiplie les recherches LDAP.

Pour faire un joins côté LDAP, il faut utiliser des filtres spécifiques.

Ça serait juste que normalize renomme joins en subsearches et non l'inverse. Est-ce le cas ?

@pirlgon

pirlgon commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator Author

c'est ça et comme on est sur du strict pour le yaml, mapstructure s'attend a recevoir joins alors qu'on a normalizé en subsearches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ldap2pg.yml parsing ERROR: 'rules[2].ldapsearch' has invalid keys: subsearches

2 participants