Skip to content

Commit c4d39e1

Browse files
authored
Merge branch 'master' into logout-new-user-2
2 parents 6f20dfc + e99c243 commit c4d39e1

File tree

1,055 files changed

+39326
-40459
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,055 files changed

+39326
-40459
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
**Describe the bug**
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce**
11+
Steps to reproduce the behavior:
12+
1. Go to '...'
13+
2. Click on '....'
14+
3. Scroll down to '....'
15+
4. See error
16+
17+
**Expected behavior**
18+
A clear and concise description of what you expected to happen.
19+
20+
**Screenshots**
21+
If applicable, add screenshots to help explain your problem.
22+
23+
**Desktop (please complete the following information):**
24+
- OS: [e.g. iOS]
25+
- Browser [e.g. chrome, safari]
26+
- Version [e.g. 22]
27+
28+
**Smartphone (please complete the following information):**
29+
- Device: [e.g. iPhone6]
30+
- OS: [e.g. iOS8.1]
31+
- Browser [e.g. stock browser, safari]
32+
- Version [e.g. 22]
33+
34+
**Additional context**
35+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Help with an issue
3+
about: Get help with an issue installing or configuring PWM
4+
5+
---
6+
7+
DO NOT FILE AN ISSUE FOR HELP. This issue system is not for help requests and such issues will be deleted.
8+
9+
Instead, please ask for help on the [PWM-General Google Group](https://groups.google.com/group/pwm-general).

.gitignore

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
1-
/.idea
2-
/*.iml
3-
/client/target
4-
/client/.node
5-
/client/.idea
6-
/client/*.iml
7-
pwm-parent.iml
8-
pwmconfig/
9-
ssprconfig/
10-
/server/src/main/webapp/public/resources/webjars
1+
# PWM Project gitignore files
2+
3+
# Eclipse Project Files
4+
/.project
5+
/.settings
6+
/.classpath
7+
8+
# IntelliJ Project Files
9+
**/.idea/
10+
**/*.iml
11+
*/.idea/
12+
*/*.iml
13+
14+
# OS folder info
15+
.directory
16+
.DS_Store
17+
.DS_Store?
18+
19+
# Maven Output
20+
*/target
21+
22+
23+
/target
24+
/webapp/src/main/webapp/public/resources/themes/netiq
25+
/webapp/src/main/webapp/public/resources/themes/netiq32
26+
/webapp/src/main/webapp/public/resources/themes/idm
27+
/webapp/src/main/webapp/public/resources/themes/mdefault
28+
/webapp/src/main/webapp/public/resources/themes/mdefault44

README.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Official project page is at [https://github.com/pwm-project/pwm/](https://github
1010
* [Current Builds](https://www.pwm-project.org/artifacts/pwm/) - Current downloads built from recent github project commits
1111
* [PWM Reference](https://www.pwm-project.org/pwm/public/reference/) - Reference documentation built into PWM.
1212

13-
Features
13+
# Features
1414
* Web based configuration manager with over 400 configurable settings
1515
* Configurable display values for every user-facing text string
1616
* Localized for Chinese (中文), Czech (ceština), Dutch (Nederlands), English, Finnish (suomi), French (français), German (Deutsch), Hebrew (עברית), Italian (italiano), Japanese (日本語), Korean (한국어), Polish (polski), Portuguese (português), Slovak (Slovenčina), Spanish (español), Thai (ไทย) and Turkish (Türkçe)
@@ -47,3 +47,62 @@ Features
4747
* OpenLDAP
4848

4949
[NetIQ SSPR](https://www.netiq.com/products/self-service-password-reset/) is a commercial, supported self service password reset product based on PWM.
50+
51+
# Build Information
52+
53+
Build pre-requisites:
54+
* Java 1.8 JDK or newer
55+
* Maven 3.2 or newer
56+
57+
Build execution:
58+
* Set `JAVA_HOME` environment variable to JDK home
59+
* Run `mvn clean package` in base directory
60+
61+
A WAR file suitable for deployment on Apache Tomcat is created in `webapp/target` directory. Rename to `pwm.war` and copy into `tomcat/webapp` directory.
62+
63+
Alternatively, an executable JAR file is created in `onejar\target`. This JAR file is self-contained single executable with embedded Apache Tomcat runtime. To execute use a command similar to:
64+
65+
`java -jar pwm-onejar.jar`
66+
67+
The executable will show additional options that may be required.
68+
69+
A docker image is created in `docker/target` as jib-image.tar. You can import this docker image using a command similar to:
70+
71+
`docker load --input=jib-image.tar`
72+
73+
Create docker container and run using:
74+
`docker run -d --name <container name> -p 8443:8443 pwm/pwm-webapp`
75+
76+
This will expose the https port to 8443. If you want the configuration to persist to you can also exposed configuration volume of `/config` using the docker `-v` option during the container
77+
creation and map it to a directory on the docker host or use a docker volume container.
78+
The PWM docker container will place all of it's configuration and runtime data in the `/config` volume.
79+
80+
81+
# PWM Source Code License Update Plan for 2019
82+
83+
* Current License: GPL v2.0
84+
* New License: Apache 2.0
85+
* Notice Date: October 1, 2018
86+
* Update Date: February 1, 2019.
87+
88+
The existing project is licensed using GPL v2.0 License
89+
(https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html). On or about the update date,
90+
the codebase will be updated as Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0).
91+
This change is being made to allow commercial organizations a more friendly license structure.
92+
93+
This will not change the nature or availability of the PWM Project. The development and open-source
94+
nature of PWM will continue as before. Existing, published PWM source code will continue to be
95+
available under the GPL v2.0 License, however all new development after the license date will only
96+
be published using the new license type.
97+
98+
At the time of the license update, the existing source code will be branched and the code source
99+
will be archived and published under the existing GPL v2.0 license terms in perpetuity.
100+
101+
Process:
102+
* This notice is posted publicly
103+
* Known contributors are sent this notice using last known address
104+
* Any objections or concerns by contributors will be processed as appropriate
105+
* On or about the update date:
106+
* The existing code is branched and the GPL version will remain available
107+
* License headers and notices will be updated to the new license type
108+
* New development and contributions will be done under the new license type

SUPPORT.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Please do not open issues to ask questions. Issues that are just questions will be deleted.
2+
3+
For assistance with PWM use the [PWM-General Google Group](https://groups.google.com/group/pwm-general) to ask questions.
4+

build/checkstyle-header.xml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
~ Password Management Servlets (PWM)
4+
~ http://www.pwm-project.org
5+
~
6+
~ Copyright (c) 2006-2009 Novell, Inc.
7+
~ Copyright (c) 2009-2018 The PWM Project
8+
~
9+
~ This program is free software; you can redistribute it and/or modify
10+
~ it under the terms of the GNU General Public License as published by
11+
~ the Free Software Foundation; either version 2 of the License, or
12+
~ (at your option) any later version.
13+
~
14+
~ This program is distributed in the hope that it will be useful,
15+
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
~ GNU General Public License for more details.
18+
~
19+
~ You should have received a copy of the GNU General Public License
20+
~ along with this program; if not, write to the Free Software
21+
~ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22+
-->
23+
24+
<!DOCTYPE module PUBLIC
25+
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
26+
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
27+
28+
<!--
29+
PWM Checkstyle definition
30+
-->
31+
32+
<module name="Checker">
33+
34+
<module name="SuppressionFilter">
35+
<property name="file" value="${basedir}/build/checkstyle-suppression.xml" />
36+
</module>
37+
38+
<module name="Header">
39+
<property name="headerFile" value="${basedir}/build/license-header-jsp.txt"/>
40+
<property name="fileExtensions" value="jsp"/>
41+
</module>
42+
<module name="Header">
43+
<property name="headerFile" value="${basedir}/build/license-header-java.txt"/>
44+
<property name="fileExtensions" value="java,css"/>
45+
</module>
46+
<module name="Header">
47+
<property name="headerFile" value="${basedir}/build/license-header-xml.txt"/>
48+
<property name="fileExtensions" value="xml,svg"/>
49+
</module>
50+
<module name="Header">
51+
<property name="headerFile" value="${basedir}/build/license-header-properties.txt"/>
52+
<property name="fileExtensions" value="properties"/>
53+
</module>
54+
<module name="Header">
55+
<property name="headerFile" value="${basedir}/build/license-header-js.txt"/>
56+
<property name="fileExtensions" value="js,ts"/>
57+
</module>
58+
59+
</module>

server/src/build/checkstyle-import.xml renamed to build/checkstyle-import.xml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@
3737
<allow pkg="java.lang"/>
3838
<allow pkg="java.security"/>
3939

40+
<allow pkg="org.apache.catalina"/>
41+
4042
<!-- chai -->
4143
<allow pkg="com.novell.ldapchai"/>
4244

4345
<!-- commons ftp client -->
4446
<allow pkg="org.apache.commons.net.ftp"/>
4547

46-
<!-- xml -->
48+
<!-- xml -->
4749
<allow pkg="org.jdom2"/>
4850
<allow pkg="javax.xml"/>
4951
<allow pkg="org.w3c"/>
@@ -55,9 +57,18 @@
5557
<!-- log4j -->
5658
<allow pkg="org.apache.log4j"/>
5759

60+
<!-- testing -->
61+
<allow pkg="org.junit"/>
62+
<allow pkg="org.mockito"/>
63+
<allow pkg="com.github.tomakehurst.wiremock"/>
64+
<allow pkg="org.reflections"/>
65+
<allow pkg="org.bouncycastle.jce.provider"/>
66+
5867
<!-- gson -->
5968
<allow pkg="com.google.gson"/>
6069

70+
<allow pkg="javax.management"/>
71+
6172
<!-- to be removed/scoped -->
6273
<allow pkg="org.apache.http"/>
6374
<allow pkg="org.apache.commons"/>
@@ -74,6 +85,7 @@
7485
<allow pkg="javax.net"/>
7586
<allow pkg="javax.crypto"/>
7687
<allow pkg="javax.mail"/>
88+
<allow class="com.sun.mail.smtp.SMTPSendFailedException"/>
7789
<allow pkg="org.xeustechnologies"/>
7890
<allow pkg="net.glxn"/>
7991
<allow pkg="org.webjars"/>
@@ -82,6 +94,7 @@
8294

8395
<allow pkg="edu.umd.cs.findbugs.annotations"/>
8496
<allow pkg="com.nulabinc.zxcvbn" />
97+
<allow pkg="jetbrains.exodus"/>
8598

8699
<subpackage name="password.pwm.util">
87100
<allow pkg="sun.management"/>
@@ -124,7 +137,6 @@
124137
</subpackage>
125138

126139
<subpackage name="util.localdb">
127-
<allow pkg="jetbrains.exodus"/>
128140
<allow pkg="java.sql"/>
129141
</subpackage>
130142

build/checkstyle-jsp.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
~ Password Management Servlets (PWM)
4+
~ http://www.pwm-project.org
5+
~
6+
~ Copyright (c) 2006-2009 Novell, Inc.
7+
~ Copyright (c) 2009-2018 The PWM Project
8+
~
9+
~ This program is free software; you can redistribute it and/or modify
10+
~ it under the terms of the GNU General Public License as published by
11+
~ the Free Software Foundation; either version 2 of the License, or
12+
~ (at your option) any later version.
13+
~
14+
~ This program is distributed in the hope that it will be useful,
15+
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
~ GNU General Public License for more details.
18+
~
19+
~ You should have received a copy of the GNU General Public License
20+
~ along with this program; if not, write to the Free Software
21+
~ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22+
-->
23+
24+
<!DOCTYPE module PUBLIC
25+
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
26+
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
27+
28+
<!--
29+
PWM Checkstyle definition
30+
-->
31+
32+
<module name="Checker">
33+
<property name="fileExtensions" value="java, xml, jsp"/>
34+
35+
<module name="TreeWalker" >
36+
<module name="Regexp">
37+
<property name="format" value="WarnJavaScriptNotEnabledMessage"/>
38+
<property name="illegalPattern" value="true"/>
39+
</module>
40+
</module>
41+
</module>

build/checkstyle-suppression.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!--
2+
~ Password Management Servlets (PWM)
3+
~ http://www.pwm-project.org
4+
~
5+
~ Copyright (c) 2006-2009 Novell, Inc.
6+
~ Copyright (c) 2009-2016 The PWM Project
7+
~
8+
~ This program is free software; you can redistribute it and/or modify
9+
~ it under the terms of the GNU General Public License as published by
10+
~ the Free Software Foundation; either version 2 of the License, or
11+
~ (at your option) any later version.
12+
~
13+
~ This program is distributed in the hope that it will be useful,
14+
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
~ GNU General Public License for more details.
17+
~
18+
~ You should have received a copy of the GNU General Public License
19+
~ along with this program; if not, write to the Free Software
20+
~ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21+
-->
22+
<!DOCTYPE suppressions PUBLIC
23+
"-//Puppy Crawl//DTD Suppressions 1.1//EN"
24+
"http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
25+
26+
<suppressions>
27+
<suppress files="XmlFactoryTest\.xml" checks="[a-zA-Z0-9]*"/>
28+
</suppressions>

0 commit comments

Comments
 (0)