You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

customising-security.apt 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. -----
  2. Archiva Security Configuration
  3. -----
  4. -----
  5. 2011-09-16
  6. -----
  7. ~~ Licensed to the Apache Software Foundation (ASF) under one
  8. ~~ or more contributor license agreements. See the NOTICE file
  9. ~~ distributed with this work for additional information
  10. ~~ regarding copyright ownership. The ASF licenses this file
  11. ~~ to you under the Apache License, Version 2.0 (the
  12. ~~ "License"); you may not use this file except in compliance
  13. ~~ with the License. You may obtain a copy of the License at
  14. ~~
  15. ~~ http://www.apache.org/licenses/LICENSE-2.0
  16. ~~
  17. ~~ Unless required by applicable law or agreed to in writing,
  18. ~~ software distributed under the License is distributed on an
  19. ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  20. ~~ KIND, either express or implied. See the License for the
  21. ~~ specific language governing permissions and limitations
  22. ~~ under the License.
  23. ~~ NOTE: For help with the syntax of this file, see:
  24. ~~ http://maven.apache.org/guides/mini/guide-apt-format.html
  25. Archiva Security Configuration
  26. Security properties and password rules can be configured in the
  27. <<<security.properties>>> file, which by default is searched for in:
  28. * <<<~/.m2/security.properties>>>
  29. * <<<conf/security.properties>>> in the Archiva installation
  30. []
  31. (In the above list, <<<~>>> is the home directory of the user who is running
  32. Archiva.)
  33. ~~TODO: Link to plexus-redback documentation when available
  34. Following are some of the properties you can modify. For a complete list,
  35. consult the default properties file in Redback's svn repo:
  36. {{{http://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk/redback-configuration/src/main/resources/org/apache/archiva/redback/config-defaults.properties}
  37. config-defaults.properties}}
  38. +-----+
  39. # Security Policies
  40. #security.policy.password.encoder=
  41. security.policy.password.previous.count=6
  42. security.policy.password.expiration.days=90
  43. security.policy.password.expiration.enabled=true
  44. security.policy.allowed.login.attempt=3
  45. # Password Rules
  46. security.policy.password.rule.alphanumeric.enabled=false
  47. security.policy.password.rule.alphacount.enabled=true
  48. security.policy.password.rule.alphacount.minimum=1
  49. security.policy.password.rule.characterlength.enabled=true
  50. security.policy.password.rule.characterlength.minimum=1
  51. security.policy.password.rule.characterlength.maximum=8
  52. security.policy.password.rule.musthave.enabled=true
  53. security.policy.password.rule.numericalcount.enabled=true
  54. security.policy.password.rule.numericalcount.minimum=1
  55. security.policy.password.rule.reuse.enabled=true
  56. security.policy.password.rule.nowhitespace.enabled=true
  57. +-----+
  58. <<Note:>> If installed standalone, Archiva's list of configuration files is <itself> configurable, and
  59. can be found in:
  60. <<<apps/archiva/WEB-INF/applicationContext.xml>>>
  61. Values from sources
  62. %{snippet|id=configuration-files-list|ignoreDownloadError=true|url=http://svn.apache.org/repos/asf/archiva/trunk/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/WEB-INF/applicationContext.xml}