-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I have the following code.
def ui_command_test(self, ldapurl, binddn):
print(ldapurl)
print(binddn)
Given this command line:
/> help test
SYNTAX
======
test ldapurl binddn
/> test ldapurl=ldap://localhost binddn="cn=Directory Manager"
ldap://localhost
Note the "blank" output for binddn. This is due to the quoting of the value.
If we remove the quotes
/> test ldapurl=ldap://localhost binddn=cn=Directory Manager
ldap://localhost
cn
The final = is then turned into another parameter, and we drop part of the value.
Additionally, escaping does not function.
/> test ldapurl=ldap://localhost binddn=cn\=Directory Manager
ldap://localhost
cn\
So this doesn't help either.
It would be great if values could be quoted, and the internal content of the quotes taken as a whole string regardless of whitespace or char presence until the next matching quote.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels