mirror of
https://github.com/internetee/registry.git
synced 2025-07-19 17:25:57 +02:00
Added helpful pki config errors if dedected, updated apache examples
This commit is contained in:
parent
36373d12e3
commit
6787832bde
5 changed files with 18 additions and 1 deletions
|
@ -16,6 +16,14 @@ class Registrar::SessionsController < ::SessionsController
|
|||
)
|
||||
)
|
||||
|
||||
if @depp_user.pki && request.env['HTTP_SSL_CLIENT_S_DN_CN'].blank?
|
||||
@depp_user.errors.add(:base, :webserver_missing_user_name_directive)
|
||||
end
|
||||
|
||||
if @depp_user.pki && request.env['HTTP_SSL_CLIENT_S_DN_CN'] == '(null)'
|
||||
@depp_user.errors.add(:base, :webserver_user_name_directive_should_be_required)
|
||||
end
|
||||
|
||||
if @depp_user.pki && request.env['HTTP_SSL_CLIENT_S_DN_CN'] != params[:depp_user][:tag]
|
||||
@depp_user.errors.add(:base, :invalid_cert)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue