Project

General

Profile

Actions

Bug #21300

closed

LDAP Authentication doesn't work for Foreman 1.16 RC1

Added by Al Man about 7 years ago. Updated over 6 years ago.

Status:
Duplicate
Priority:
High
Assignee:
-
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I have 2 installations of foreman 1.16 RC1 (old - after upgrade from nightly version and new - fresh).
Both on RHEL 7; old installation with puppetserver 5.1.3, new installation with puppetserver 5.0.0
In new inst I cannot create new LDAP source, in old one I cannot edit existed LDAP source (I created source before upgrade).
How to reproduce: go to "Administer" - "LDAP Authentication" - "Create Authentication Source" or select existed - fill the fields (even not all) or edit existed and click "Submit" button - you will be redirected on "LDAP Server" tab (if you are not on it already)and that's all (nothing happens and entry of source is not saved).
In production.log I see following lines (the same in both cases):

2017-10-11 14:03:43 ff2ff0aa [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"LED9cgQA2VZHZf1vbbLFYgzq006HlXmnhgypsvD+G5BXMiv5dt8anUsOg7Tkr4Ob3TjMI40keO9ZQ5VKZoi/w==", "auth_source_ldap"=>{"name"=>"NEW_SOURCE", "host"=>"example.com", "tls"=>"0", "port"=>"389", "server_type"=>"active_directory", "account"=>"ad_acc", "account_password"=>"[FILTERED]", "base_dn"=>"DC=example,DC=com", "groups_base"=>"OU=Security Groups,DC=example,DC=com", "use_netgroups"=>"0", "ldap_filter"=>"memberOf=CN=puppet,OU=Security Groups,DC=example,DC=com", "onthefly_register"=>"0", "usergroup_sync"=>"1", "attr_login"=>"uid", "attr_firstname"=>"givenName", "attr_lastname"=>"sn", "attr_mail"=>"mail", "attr_photo"=>""}, "_ie_support"=>"", "id"=>"3-NEW_SOURCE"}
2017-10-11 14:03:43 ff2ff0aa [app] [I] Current user: admin (administrator)
2017-10-11 14:03:43 ff2ff0aa [app] [I] Failed to save:
2017-10-11 14:03:43 ff2ff0aa [app] [I]   Rendered taxonomies/_loc_org_tabs.html.erb (0.2ms)
2017-10-11 14:03:43 ff2ff0aa [app] [I]   Rendered auth_source_ldaps/_form.html.erb (16.0ms)
2017-10-11 14:03:43 ff2ff0aa [app] [I]   Rendered auth_source_ldaps/edit.html.erb (16.6ms)
2017-10-11 14:03:43 ff2ff0aa [app] [I] Completed 200 OK in 31ms (Views: 17.3ms | ActiveRecord: 3.1ms)
2017-10-11 14:03:43 c152d8e9 [app] [I] Started PATCH "/auth_source_ldaps/3-NEW_SOURCE" for 172.16.28.83 at 2017-10-11 14:03:43 +0300
2017-10-11 14:03:43 c152d8e9 [app] [I] Processing by AuthSourceLdapsController#update as */*


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #21175: Unable to add AD LDAP Auth SourceClosedTomáš Strachota10/03/2017Actions
Actions

Also available in: Atom PDF