#2418 Bool attributes used in setattr/addattr/delattr options are not encoded properly
Closed: Fixed None Opened 12 years ago by pspacek.

It's not possible to add/delete boolean attribute idnsAllowDynUpdate in DNS zone.

Error examples are attached in dnszone-mod, zone object is in zone.ldif.

Same error like for ipa dnszone-mod --addattr
"LDAP: error code 21 - idnsAllowDynUpdate: value #0 invalid per syntax"
appears if value is added/modified by hand and is not uppercase. ("True" is not accepted by server, but "TRUE" is accepted.)

Wrong string conversion before calling LDAP?


Patch freeipa-mkosek-221-fix-encoding-for-setattr-addattr-delattr.patch sent for review

Root cause: Attribute values passed by --{set,add,del}attr parameters were normalized and validated using appropriate parameter, but were never encoded for the backend. This prevents manipulation with dirsrv BOOL attributes as framework tries to pass boolean value instead of encoded "TRUE"/"FALSE" values.

Moving to next month iteration.

Metadata Update from @pspacek:
- Issue assigned to mkosek
- Issue set to the milestone: FreeIPA 2.2 Core Effort - 2012/03

7 years ago

Login to comment on this ticket.

Metadata