#6236 config-mod --usersearch does not accept attribute names with uppercase characters
Closed: Fixed None Opened 7 years ago by pspacek.

Ticket was cloned from Red Hat Bugzilla (product Fedora): Bug 1368224

Description of problem: When trying to add a custom field to the usersearch
using config-mod does not specify the error. For example, i was trying to add a
custom field and it said "not allowed" and "Validation Error", after some debug
i matched the custom field must be in lowercase.

Version-Release number of selected component (if applicable): Freeipa 4.2.3 and

How reproducible: Trying adding some custom field with wrong sintax.

Steps to Reproduce:
1. ipa -d config-mod --usersearch="uid,givenname,sn,cn,mail,myCustomField"

2. ipa -d config-mod --usersearch="uid,givenname,sn,cn,mail,mycustomField"

Actual results:
ipa: DEBUG: stderr=
ipa: DEBUG: Starting external process
ipa: DEBUG: args='keyctl' 'pupdate' '340300374'
ipa: DEBUG: Process finished, return code=0
ipa: DEBUG: stdout=
ipa: DEBUG: stderr=
ipa: DEBUG: Destroyed connection context.rpcclient_140074165811664
ipa: ERROR: invalid 'ipausersearchfields': attribute "myCustomField" not

Expected results: ok (config changed)

Additional info: For the record i added the custom schema 1 month ago, and
after that i restarted the ipa server several times, and i already have some
users with that custom field.

Opening this bug as requested by rcrit.


  • 3ac2709 config-mod: normalize attribute names for --usersearch/--groupsearch

Metadata Update from @pspacek:
- Issue assigned to someone
- Issue set to the milestone: FreeIPA 4.4.1

6 years ago

Login to comment on this ticket.