Fix encoding of the TOUCH value (python3)
This commit is contained in:
parent
cdf35ecd5a
commit
f1a1cc3193
1 changed files with 5 additions and 5 deletions
|
@ -46,7 +46,7 @@ from ldap.controls import SimplePagedResultsControl
|
||||||
from ldap import modlist
|
from ldap import modlist
|
||||||
|
|
||||||
VERSION = '0.0'
|
VERSION = '0.0'
|
||||||
TOUCH_VALUE = '%%TOUCH%%'
|
TOUCH_VALUE = b'%%TOUCH%%'
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description=(
|
description=(
|
||||||
|
@ -204,10 +204,10 @@ parser.add_argument(
|
||||||
type=str,
|
type=str,
|
||||||
help=(
|
help=(
|
||||||
'Touch attribute giving in parameter to force resync a this LDAP '
|
'Touch attribute giving in parameter to force resync a this LDAP '
|
||||||
f'object from provider. A value "{TOUCH_VALUE}" will be add to this '
|
f'object from provider. A value "{TOUCH_VALUE.decode()}" will be '
|
||||||
'attribute and remove after. The user use to connect to the LDAP '
|
'add to this attribute and remove after. The user use to connect '
|
||||||
'directory must have write permission on this attribute on each '
|
'to the LDAP directory must have write permission on this '
|
||||||
'object.'
|
'attribute on each object.'
|
||||||
),
|
),
|
||||||
default=None
|
default=None
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue