Skip to content

Commit 566437b

Browse files
authored
Merge pull request #1 from pwm-project/master
Update
2 parents 89e1fed + 995a611 commit 566437b

File tree

1,330 files changed

+43594
-48997
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,330 files changed

+43594
-48997
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@
2525
/webapp/src/main/webapp/public/resources/themes/netiq32
2626
/webapp/src/main/webapp/public/resources/themes/idm
2727
/webapp/src/main/webapp/public/resources/themes/mdefault
28+
/webapp/src/main/webapp/public/resources/themes/mdefault44

LICENSE

Lines changed: 179 additions & 105 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Official project page is at [https://github.com/pwm-project/pwm/](https://github
4646
* Microsoft Active Directory
4747
* OpenLDAP
4848

49-
[NetIQ SSPR](https://www.netiq.com/products/self-service-password-reset/) is a commercial, supported self service password reset product based on PWM.
49+
[NetIQ Self Service Password Reset](https://www.microfocus.com/en-us/products/netiq-self-service-password-reset/overview) is a commercial, supported self service password reset product based on PWM.
5050

5151
# Build Information
5252

@@ -71,38 +71,20 @@ A docker image is created in `docker/target` as jib-image.tar. You can import t
7171
`docker load --input=jib-image.tar`
7272

7373
Create docker container and run using:
74+
7475
`docker run -d --name <container name> -p 8443:8443 pwm/pwm-webapp`
7576

7677
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
7778
creation and map it to a directory on the docker host or use a docker volume container.
7879
The PWM docker container will place all of it's configuration and runtime data in the `/config` volume.
7980

81+
# PWM Source Code License Update 2019
8082

81-
# PWM Source Code License Update Plan for 2019
82-
83-
* Current License: GPL v2.0
83+
* Previous License: GPL v2.0
8484
* 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
85+
* Update Date: June 17, 2019
86+
87+
This project is licensed using Apache 2.0 License (https://www.apache.org/licenses/LICENSE-2.0). Previous versions
88+
of this source code were licensed under GPL v2.0 License (https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html).
89+
New submissions to this code base are made under the Apache 2.0 License. The GPL branch of the source code contains the
90+
previously licensed GPL v2.0 code.

build/checkstyle-header.xml

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
<?xml version="1.0"?>
1+
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
~ Password Management Servlets (PWM)
44
~ http://www.pwm-project.org
55
~
66
~ Copyright (c) 2006-2009 Novell, Inc.
7-
~ Copyright (c) 2009-2018 The PWM Project
7+
~ Copyright (c) 2009-2019 The PWM Project
88
~
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.
9+
~ Licensed under the Apache License, Version 2.0 (the "License");
10+
~ you may not use this file except in compliance with the License.
11+
~ You may obtain a copy of the License at
1312
~
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.
13+
~ http://www.apache.org/licenses/LICENSE-2.0
1814
~
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
15+
~ Unless required by applicable law or agreed to in writing, software
16+
~ distributed under the License is distributed on an "AS IS" BASIS,
17+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
~ See the License for the specific language governing permissions and
19+
~ limitations under the License.
2220
-->
2321

2422
<!DOCTYPE module PUBLIC
@@ -31,17 +29,21 @@
3129

3230
<module name="Checker">
3331

32+
<module name="SuppressionFilter">
33+
<property name="file" value="${basedir}/build/checkstyle-suppression.xml" />
34+
</module>
35+
3436
<module name="Header">
3537
<property name="headerFile" value="${basedir}/build/license-header-jsp.txt"/>
3638
<property name="fileExtensions" value="jsp"/>
3739
</module>
3840
<module name="Header">
3941
<property name="headerFile" value="${basedir}/build/license-header-java.txt"/>
40-
<property name="fileExtensions" value="java,css"/>
42+
<property name="fileExtensions" value="java"/>
4143
</module>
4244
<module name="Header">
4345
<property name="headerFile" value="${basedir}/build/license-header-xml.txt"/>
44-
<property name="fileExtensions" value="xml,svg"/>
46+
<property name="fileExtensions" value="xml,svg,xsd,tld"/>
4547
</module>
4648
<module name="Header">
4749
<property name="headerFile" value="${basedir}/build/license-header-properties.txt"/>
@@ -51,5 +53,13 @@
5153
<property name="headerFile" value="${basedir}/build/license-header-js.txt"/>
5254
<property name="fileExtensions" value="js,ts"/>
5355
</module>
54-
56+
<module name="Header">
57+
<property name="headerFile" value="${basedir}/build/license-header-css.txt"/>
58+
<property name="fileExtensions" value="css,scss,sass"/>
59+
</module>
60+
<module name="Header">
61+
<property name="headerFile" value="${basedir}/build/license-header-html.txt"/>
62+
<property name="fileExtensions" value="html"/>
63+
<property name="ignoreLines" value="1"/>
64+
</module>
5565
</module>

build/checkstyle-import.xml

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
1+
<?xml version="1.0"?>
12
<!--
23
~ Password Management Servlets (PWM)
34
~ http://www.pwm-project.org
45
~
56
~ Copyright (c) 2006-2009 Novell, Inc.
6-
~ Copyright (c) 2009-2016 The PWM Project
7+
~ Copyright (c) 2009-2019 The PWM Project
78
~
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.
9+
~ Licensed under the Apache License, Version 2.0 (the "License");
10+
~ you may not use this file except in compliance with the License.
11+
~ You may obtain a copy of the License at
1212
~
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.
13+
~ http://www.apache.org/licenses/LICENSE-2.0
1714
~
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
15+
~ Unless required by applicable law or agreed to in writing, software
16+
~ distributed under the License is distributed on an "AS IS" BASIS,
17+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
~ See the License for the specific language governing permissions and
19+
~ limitations under the License.
2120
-->
2221

2322
<!DOCTYPE import-control PUBLIC
@@ -38,14 +37,15 @@
3837
<allow pkg="java.security"/>
3938

4039
<allow pkg="org.apache.catalina"/>
40+
<allow pkg="org.apache.coyote"/>
4141

4242
<!-- chai -->
4343
<allow pkg="com.novell.ldapchai"/>
4444

4545
<!-- commons ftp client -->
4646
<allow pkg="org.apache.commons.net.ftp"/>
4747

48-
<!-- xml -->
48+
<!-- xml -->
4949
<allow pkg="org.jdom2"/>
5050
<allow pkg="javax.xml"/>
5151
<allow pkg="org.w3c"/>
@@ -57,6 +57,14 @@
5757
<!-- log4j -->
5858
<allow pkg="org.apache.log4j"/>
5959

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+
<allow pkg="org.openjdk.jmh"/>
67+
6068
<!-- gson -->
6169
<allow pkg="com.google.gson"/>
6270

@@ -78,7 +86,7 @@
7886
<allow pkg="javax.net"/>
7987
<allow pkg="javax.crypto"/>
8088
<allow pkg="javax.mail"/>
81-
<allow class="com.sun.mail.smtp.SMTPSendFailedException"/>
89+
<allow pkg="com.sun.mail"/>
8290
<allow pkg="org.xeustechnologies"/>
8391
<allow pkg="net.glxn"/>
8492
<allow pkg="org.webjars"/>

build/checkstyle-jsp.xml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Password Management Servlets (PWM)
4+
~ http://www.pwm-project.org
5+
~
6+
~ Copyright (c) 2006-2009 Novell, Inc.
7+
~ Copyright (c) 2009-2019 The PWM Project
8+
~
9+
~ Licensed under the Apache License, Version 2.0 (the "License");
10+
~ you may not use this file except in compliance with the License.
11+
~ You may obtain a copy of the License at
12+
~
13+
~ http://www.apache.org/licenses/LICENSE-2.0
14+
~
15+
~ Unless required by applicable law or agreed to in writing, software
16+
~ distributed under the License is distributed on an "AS IS" BASIS,
17+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
~ See the License for the specific language governing permissions and
19+
~ limitations under the License.
20+
-->
21+
22+
<!DOCTYPE module PUBLIC
23+
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
24+
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
25+
26+
<!--
27+
PWM Checkstyle definition
28+
-->
29+
30+
<module name="Checker">
31+
<property name="fileExtensions" value="java, xml, jsp"/>
32+
33+
<module name="TreeWalker" >
34+
<module name="Regexp">
35+
<property name="format" value="WarnJavaScriptNotEnabledMessage"/>
36+
<property name="illegalPattern" value="true"/>
37+
</module>
38+
</module>
39+
</module>

build/checkstyle-suppression.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Password Management Servlets (PWM)
4+
~ http://www.pwm-project.org
5+
~
6+
~ Copyright (c) 2006-2009 Novell, Inc.
7+
~ Copyright (c) 2009-2019 The PWM Project
8+
~
9+
~ Licensed under the Apache License, Version 2.0 (the "License");
10+
~ you may not use this file except in compliance with the License.
11+
~ You may obtain a copy of the License at
12+
~
13+
~ http://www.apache.org/licenses/LICENSE-2.0
14+
~
15+
~ Unless required by applicable law or agreed to in writing, software
16+
~ distributed under the License is distributed on an "AS IS" BASIS,
17+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
~ See the License for the specific language governing permissions and
19+
~ limitations under the License.
20+
-->
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+
<suppress files="rest.jsp" checks="FileLength"/>
29+
</suppressions>

build/checkstyle.xml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
<?xml version="1.0"?>
1+
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
~ Password Management Servlets (PWM)
44
~ http://www.pwm-project.org
55
~
66
~ Copyright (c) 2006-2009 Novell, Inc.
7-
~ Copyright (c) 2009-2018 The PWM Project
7+
~ Copyright (c) 2009-2019 The PWM Project
88
~
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.
9+
~ Licensed under the Apache License, Version 2.0 (the "License");
10+
~ you may not use this file except in compliance with the License.
11+
~ You may obtain a copy of the License at
1312
~
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.
13+
~ http://www.apache.org/licenses/LICENSE-2.0
1814
~
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
15+
~ Unless required by applicable law or agreed to in writing, software
16+
~ distributed under the License is distributed on an "AS IS" BASIS,
17+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
~ See the License for the specific language governing permissions and
19+
~ limitations under the License.
2220
-->
2321

2422
<!DOCTYPE module PUBLIC
@@ -31,6 +29,9 @@
3129

3230
<module name="Checker">
3331

32+
<module name="SuppressionFilter">
33+
<property name="file" value="${basedir}/build/checkstyle-suppression.xml" />
34+
</module>
3435

3536
<!-- Checks that each Java package has a Javadoc file used for commenting. -->
3637
<!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage -->
@@ -60,7 +61,6 @@
6061
</module>
6162

6263
<module name="TreeWalker" >
63-
<property name="cacheFile" value="target/checkstyle.cache"/>
6464

6565
<!-- required for SuppressWarningsFilter (and other Suppress* rules not used here) -->
6666
<!-- see http://checkstyle.sourceforge.net/config_annotation.html#SuppressWarningsHolder -->

build/license-header-css.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*!
2+
* Password Management Servlets (PWM)
3+
* http://www.pwm-project.org
4+
*
5+
* Copyright (c) 2006-2009 Novell, Inc.
6+
* Copyright (c) 2009-2019 The PWM Project
7+
*
8+
* Licensed under the Apache License, Version 2.0 (the "License");
9+
* you may not use this file except in compliance with the License.
10+
* You may obtain a copy of the License at
11+
*
12+
* http://www.apache.org/licenses/LICENSE-2.0
13+
*
14+
* Unless required by applicable law or agreed to in writing, software
15+
* distributed under the License is distributed on an "AS IS" BASIS,
16+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
* See the License for the specific language governing permissions and
18+
* limitations under the License.
19+
*/

build/license-header-html.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!DOCTYPE html>
2+
<!--
3+
~ Password Management Servlets (PWM)
4+
~ http://www.pwm-project.org
5+
~
6+
~ Copyright (c) 2006-2009 Novell, Inc.
7+
~ Copyright (c) 2009-2019 The PWM Project
8+
~
9+
~ Licensed under the Apache License, Version 2.0 (the "License");
10+
~ you may not use this file except in compliance with the License.
11+
~ You may obtain a copy of the License at
12+
~
13+
~ http://www.apache.org/licenses/LICENSE-2.0
14+
~
15+
~ Unless required by applicable law or agreed to in writing, software
16+
~ distributed under the License is distributed on an "AS IS" BASIS,
17+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18+
~ See the License for the specific language governing permissions and
19+
~ limitations under the License.
20+
-->

0 commit comments

Comments
 (0)