Skip to content

Commit

Permalink
Remove auth-constraint from web.xml if preauthenticated mode enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
danifr committed Mar 2, 2016
1 parent 04435e8 commit d81fe75
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifests/config/global/web.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@
incl => $rundeck::params::web_xml,
changes => [ "set web-app/session-config/session-timeout/#text '${session_timeout}'" ],
}

if $rundeck::preauthenticated_config['enabled'] {
augeas { 'rundeck/web.xml/auth-constraint':
lens => 'Xml.lns',
incl => $rundeck::params::web_xml,
changes => [ 'rm web-app/security-constraint/auth-constraint' ],
}
}
}

0 comments on commit d81fe75

Please sign in to comment.