Skip to content

Bug in ldap port validation #334

@THTH937

Description

@THTH937
  1. Matching operator (-match) returns Boolean value, but $ldap_port should be assigned actual port number as the variable is later used in NetCat test. With current implementation, NetCat test always fails.

  2. Regular expression expects colon (":"), however value in $ldap_portspec contains only port number without colon. Therefore result is always $false.

$ldap_port = $ldap_portspec -match ":([0-9]+)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions