Bug 1368224 - config-mod --usersearch does not accept attribute names with uppercase characters
Summary: config-mod --usersearch does not accept attribute names with uppercase charac...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: freeipa
Version: 23
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: IPA Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-18 17:54 UTC by Lucas Diedrich
Modified: 2016-11-19 21:01 UTC (History)
10 users (show)

Fixed In Version: freeipa-4.4.2-1.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-19 21:01:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.