Skip to content

Reporting tasks fails if LDAP CN contains whitespaces #465

@maltesander

Description

@maltesander

Affected version

All

Current and expected behavior

The reporting task fails to run when the CN contains whitespaces like:
CN=myldapbinduser,OU=myou1,OU=my users,OU=myou2,DC=mycompany,DC=de

This is provided via a parameter for a script that will abort due to a wrong amount of parameters.

usage: create_nifi_reporting_task.py [-h] -n NIFI_API_URL -u USERNAME -p                                                                                                                      
                                     PASSWORD -v NIFI_VERSION -c CERT -m                                                                                                                      
                                     METRICS_PORT [-t TASK_NAME]                                                                                                                              
create_nifi_reporting_task.py: error: unrecognized arguments: users,OU=myou2,DC=mycompany,DC=de

Possible solution

Escape the -u (user) and probably the -p (password) parameters in the create-reporting-task job.

Additional context

No response

Environment

No response

Would you like to work on fixing this bug?

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions