chore: add license headers to source files

This commit is contained in:
Philipp Matthias Schaefer 2021-02-27 14:50:06 +01:00
parent e578b56237
commit f54337f43e
12 changed files with 206 additions and 1 deletions

View File

@ -1,3 +1,19 @@
// Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
//
// This file is part of the WebLDAPPasswd application.
//
// The WebLDAPPasswd application is free software: you can redistribute it
// and/or modify it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the License or
// (at your option) any later version.
//
// The WebLDAPPasswd application is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
// General Public License for more details.
//
// You should have received a copy of the GNU General Affero Public License
// along with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
use ldap3::LdapConn;
use ldap3::exop::PasswordModify;
use ldap3::result::{LdapError, Result};

View File

@ -1,3 +1,19 @@
// Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
//
// This file is part of the WebLDAPPasswd application.
//
// The WebLDAPPasswd application is free software: you can redistribute it
// and/or modify it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the License or
// (at your option) any later version.
//
// The WebLDAPPasswd application is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
// General Public License for more details.
//
// You should have received a copy of the GNU General Affero Public License
// along with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
use std::io::BufReader;
use std::fs::File;

View File

@ -1,3 +1,19 @@
// Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
//
// This file is part of the WebLDAPPasswd application.
//
// The WebLDAPPasswd application is free software: you can redistribute it
// and/or modify it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the License or
// (at your option) any later version.
//
// The WebLDAPPasswd application is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
// General Public License for more details.
//
// You should have received a copy of the GNU General Affero Public License
// along with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
#![feature(proc_macro_hygiene, decl_macro)]
mod api;

View File

@ -1,3 +1,19 @@
// Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
//
// This file is part of the WebLDAPPasswd application.
//
// The WebLDAPPasswd application is free software: you can redistribute it
// and/or modify it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the License or
// (at your option) any later version.
//
// The WebLDAPPasswd application is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
// General Public License for more details.
//
// You should have received a copy of the GNU General Affero Public License
// along with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
use rocket::http::{ContentType, Status};
use rocket::request::Request;
use rocket::response::{content, Responder, Response};

View File

@ -1,3 +1,21 @@
<!--
Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
This file is part of the WebLDAPPasswd application.
The WebLDAPPasswd application is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License or (at your
option) any later version.
The WebLDAPPasswd application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
for more details.
You should have received a copy of the GNU General Affero Public License along
with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
-->
<svg width="100"
height="100"
viewBox="-1 -1 2 2"

Before

Width:  |  Height:  |  Size: 431 B

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,3 +1,21 @@
<!--
Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
This file is part of the WebLDAPPasswd application.
The WebLDAPPasswd application is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License or (at your
option) any later version.
The WebLDAPPasswd application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
for more details.
You should have received a copy of the GNU General Affero Public License along
with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
-->
<svg width="100"
height="100"
viewBox="-1 -1 2 2"

Before

Width:  |  Height:  |  Size: 421 B

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,3 +1,21 @@
<!--
Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
This file is part of the WebLDAPPasswd application.
The WebLDAPPasswd application is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License or (at your
option) any later version.
The WebLDAPPasswd application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
for more details.
You should have received a copy of the GNU General Affero Public License along
with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
-->
<svg width="100"
height="100"
viewBox="-1 -1 2 2"

Before

Width:  |  Height:  |  Size: 468 B

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -1,3 +1,21 @@
<!--
Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
This file is part of the WebLDAPPasswd application.
The WebLDAPPasswd application is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License or (at your
option) any later version.
The WebLDAPPasswd application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
for more details.
You should have received a copy of the GNU General Affero Public License along
with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html>
<head>

View File

@ -1,10 +1,27 @@
<!--
Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
This file is part of the WebLDAPPasswd application.
The WebLDAPPasswd application is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License or (at your
option) any later version.
The WebLDAPPasswd application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
for more details.
You should have received a copy of the GNU General Affero Public License along
with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>WebLDAPPasswd</title>
</head>
<script src="webldappasswd.js"></script>
<body>
The administrator of this WebLDAPPasswd instance is lazy and should feel bad.
</body>

View File

@ -1,3 +1,21 @@
<!--
Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
This file is part of the WebLDAPPasswd application.
The WebLDAPPasswd application is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License or (at your
option) any later version.
The WebLDAPPasswd application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
for more details.
You should have received a copy of the GNU General Affero Public License along
with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
-->
<svg width="100"
height="100"
viewBox="-1 -1 2 2"

Before

Width:  |  Height:  |  Size: 728 B

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1,3 +1,21 @@
/*
Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
This file is part of the WebLDAPPasswd application.
The WebLDAPPasswd application is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License or (at your
option) any later version.
The WebLDAPPasswd application is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License
for more details.
You should have received a copy of the GNU General Affero Public License along
with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
*/
* {
box-sizing: border-box;
}

View File

@ -1,3 +1,19 @@
// Copyright (c) 2021, Philipp Matthias Schäfer (philipp.matthias.schaefer@posteo.de)
//
// This file is part of the WebLDAPPasswd application.
//
// The WebLDAPPasswd application is free software: you can redistribute it
// and/or modify it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the License or
// (at your option) any later version.
//
// The WebLDAPPasswd application is distributed in the hope that it will be
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
// General Public License for more details.
//
// You should have received a copy of the GNU General Affero Public License
// along with the WebLDAPPasswd. If not, see <https://www.gnu.org/licenses/>.
MODAL_STATES = {
"Wait" : {
button_disabled : true,