Bug 1625676

Summary: AD user unable to update his profile.
Product: Red Hat Satellite Reporter: Suraj Patil <supatil>
Component: LDAPAssignee: Daniel Lobato Garcia <dlobatog>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: high    
Version: 6.4CC: supatil
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-11 10:00:33 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:
Embargoed:
Attachments:
Description Flags
screenshot none

Description Suraj Patil 2018-09-05 14:04:56 UTC
Description of problem:

After configuring AD server with the satellite using LDAP. The user is able to log in but after login user is presented with profile update page to update the mail address. When the user enters the mail address and tries to submit the form, data is not saved. 

Below is the production logs. 

==> /var/log/foreman/production.log <==
2018-09-05T18:24:01 [I|app|09e17] Processing by NotificationRecipientsController#index as JSON
2018-09-05T18:24:01 [I|app|09e17] Current user: suraj (administrator)
2018-09-05T18:24:01 [I|app|09e17] Completed 200 OK in 33ms (Views: 0.4ms | ActiveRecord: 4.4ms)
2018-09-05T18:24:04 [I|app|] Started PATCH "/users/7-suraj" for 10.65.228.32 at 2018-09-05 18:24:04 +0530
2018-09-05T18:24:04 [I|app|a906f] Processing by UsersController#update as HTML
2018-09-05T18:24:04 [I|app|a906f]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"Js/8XyUBD/wDCXwqp56R1U8vWvEyUeqJuCthpQ7FthQrM4ohYKxtzzakDntI/CzaXnjFCNsDg37hiKpB54ahqw==", "user"=>{"firstname"=>"Suraj", "lastname"=>"Patil", "mail"=>"supatil", "description"=>"", "locale"=>"en", "timezone"=>"", "current_password"=>"[FILTERED]", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "mail_enabled"=>"1", "user_mail_notifications_attributes"=>{"0"=>{"mail_notification_id"=>"6", "interval"=>"", "mail_query"=>""}, "1"=>{"mail_notification_id"=>"12", "interval"=>""}, "2"=>{"mail_notification_id"=>"9", "interval"=>""}, "3"=>{"mail_notification_id"=>"4", "interval"=>""}, "4"=>{"mail_notification_id"=>"11", "interval"=>""}, "5"=>{"mail_notification_id"=>"7", "interval"=>""}, "6"=>{"mail_notification_id"=>"1", "interval"=>""}, "7"=>{"mail_notification_id"=>"10", "interval"=>""}, "8"=>{"mail_notification_id"=>"3", "interval"=>""}, "9"=>{"mail_notification_id"=>"2", "interval"=>""}}, "admin"=>"0", "role_ids"=>["1"], "location_ids"=>["", "2"], "default_location_id"=>"", "organization_ids"=>["", "1"], "default_organization_id"=>""}, "commit"=>"Submit", "id"=>"7-suraj"}
2018-09-05T18:24:04 [I|app|a906f] Current user: suraj (administrator)
2018-09-05T18:24:04 [E|app|a906f] Failed to save: Current password Incorrect password
2018-09-05T18:24:04 [I|app|a906f]   Rendering users/edit.html.erb within layouts/application
2018-09-05T18:24:04 [I|app|a906f]   Rendered ssh_keys/_ssh_keys_tab.html.erb (7.0ms)

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

satellite 6.4 SNAP 20

How reproducible:
Configure AD using LDAP and login with AD user. 


Actual results:
The form does not get submitted. 

Expected results:
Data should be saved. the request PATCH "/users/7-suraj" should return 200

Additional info:

After AD user is logged in, edit form "/users/7-suraj/edit" is rendered with first name = Admin, lastname = User, Mail = root. It should take firstname , lastname etc from AD server.

Attaching the screenshot.

Comment 1 Suraj Patil 2018-09-05 14:06:08 UTC
Created attachment 1481100 [details]
screenshot

Comment 4 Suraj Patil 2018-09-11 10:00:33 UTC
Hello, 

Sorry, it is not the bug.  

There was lastpass plugin in my browser which was replacing the form data and due to which it is failing to submit the form. 

I have tried with other browser and it is working. closing this bug.

Thank you.