Bug 1368224

Summary: config-mod --usersearch does not accept attribute names with uppercase characters
Product: [Fedora] Fedora Reporter: Lucas Diedrich <lucas.diedrich>
Component: freeipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: abokovoy, ipa-maint, jcholast, jhrozek, mbasti, mkosek, pspacek, pvoborni, rcritten, ssorce
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: freeipa-4.4.2-1.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-19 21:01:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lucas Diedrich 2016-08-18 17:54:15 UTC
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 4.2.4


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"
fail
 
2. ipa -d config-mod --usersearch="uid,givenname,sn,cn,mail,mycustomField"
ok

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 allowed

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.

Comment 1 Petr Spacek 2016-08-22 08:14:17 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/6236

Comment 2 Martin Bašti 2016-08-22 15:55:45 UTC
Fixed upstream
master:
https://fedorahosted.org/freeipa/changeset/3ac2709f4b026e7c7153777f7472c383fe99a175

Comment 3 Fedora Update System 2016-10-14 21:54:41 UTC
freeipa-4.4.2-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-d89b3f7913

Comment 4 Fedora Update System 2016-11-19 21:01:14 UTC
freeipa-4.4.2-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.