From f54337f43e3fa14b6d33d426b29167bb33e92575 Mon Sep 17 00:00:00 2001 From: Philipp Matthias Schaefer Date: Sat, 27 Feb 2021 14:50:06 +0100 Subject: [PATCH] chore: add license headers to source files --- src/api.rs | 16 ++++++++++++++++ src/config.rs | 16 ++++++++++++++++ src/main.rs | 16 ++++++++++++++++ src/static.rs | 16 ++++++++++++++++ src/static/checkmark.svg | 18 ++++++++++++++++++ src/static/cross.svg | 18 ++++++++++++++++++ src/static/hourglass.svg | 18 ++++++++++++++++++ src/static/index.html | 18 ++++++++++++++++++ src/static/legal.html | 19 ++++++++++++++++++- src/static/logo.svg | 18 ++++++++++++++++++ src/static/webldappasswd.css | 18 ++++++++++++++++++ src/static/webldappasswd.js | 16 ++++++++++++++++ 12 files changed, 206 insertions(+), 1 deletion(-) diff --git a/src/api.rs b/src/api.rs index 3f84780..6479d7f 100644 --- a/src/api.rs +++ b/src/api.rs @@ -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 . use ldap3::LdapConn; use ldap3::exop::PasswordModify; use ldap3::result::{LdapError, Result}; diff --git a/src/config.rs b/src/config.rs index d807676..91d4d2b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -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 . use std::io::BufReader; use std::fs::File; diff --git a/src/main.rs b/src/main.rs index b8a5894..6678314 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 . #![feature(proc_macro_hygiene, decl_macro)] mod api; diff --git a/src/static.rs b/src/static.rs index 7931a62..5445cd0 100644 --- a/src/static.rs +++ b/src/static.rs @@ -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 . use rocket::http::{ContentType, Status}; use rocket::request::Request; use rocket::response::{content, Responder, Response}; diff --git a/src/static/checkmark.svg b/src/static/checkmark.svg index 5f68fee..d946af4 100644 --- a/src/static/checkmark.svg +++ b/src/static/checkmark.svg @@ -1,3 +1,21 @@ + . +--> . +--> . +--> diff --git a/src/static/legal.html b/src/static/legal.html index 19119bd..f0968b7 100644 --- a/src/static/legal.html +++ b/src/static/legal.html @@ -1,10 +1,27 @@ + WebLDAPPasswd - The administrator of this WebLDAPPasswd instance is lazy and should feel bad. diff --git a/src/static/logo.svg b/src/static/logo.svg index b7f6480..791722c 100644 --- a/src/static/logo.svg +++ b/src/static/logo.svg @@ -1,3 +1,21 @@ + . +*/ * { box-sizing: border-box; } diff --git a/src/static/webldappasswd.js b/src/static/webldappasswd.js index 04cb052..e11f9ec 100644 --- a/src/static/webldappasswd.js +++ b/src/static/webldappasswd.js @@ -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 . MODAL_STATES = { "Wait" : { button_disabled : true,