chore: add license headers to source files
16
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 <https://www.gnu.org/licenses/>.
|
||||||
use ldap3::LdapConn;
|
use ldap3::LdapConn;
|
||||||
use ldap3::exop::PasswordModify;
|
use ldap3::exop::PasswordModify;
|
||||||
use ldap3::result::{LdapError, Result};
|
use ldap3::result::{LdapError, Result};
|
||||||
|
@ -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::io::BufReader;
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
|
|
||||||
|
16
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 <https://www.gnu.org/licenses/>.
|
||||||
#![feature(proc_macro_hygiene, decl_macro)]
|
#![feature(proc_macro_hygiene, decl_macro)]
|
||||||
|
|
||||||
mod api;
|
mod api;
|
||||||
|
@ -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::http::{ContentType, Status};
|
||||||
use rocket::request::Request;
|
use rocket::request::Request;
|
||||||
use rocket::response::{content, Responder, Response};
|
use rocket::response::{content, Responder, Response};
|
||||||
|
@ -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"
|
<svg width="100"
|
||||||
height="100"
|
height="100"
|
||||||
viewBox="-1 -1 2 2"
|
viewBox="-1 -1 2 2"
|
||||||
|
Before Width: | Height: | Size: 431 B After Width: | Height: | Size: 1.2 KiB |
@ -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"
|
<svg width="100"
|
||||||
height="100"
|
height="100"
|
||||||
viewBox="-1 -1 2 2"
|
viewBox="-1 -1 2 2"
|
||||||
|
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 1.2 KiB |
@ -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"
|
<svg width="100"
|
||||||
height="100"
|
height="100"
|
||||||
viewBox="-1 -1 2 2"
|
viewBox="-1 -1 2 2"
|
||||||
|
Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 1.3 KiB |
@ -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>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -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>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>WebLDAPPasswd</title>
|
<title>WebLDAPPasswd</title>
|
||||||
</head>
|
</head>
|
||||||
<script src="webldappasswd.js"></script>
|
|
||||||
<body>
|
<body>
|
||||||
The administrator of this WebLDAPPasswd instance is lazy and should feel bad.
|
The administrator of this WebLDAPPasswd instance is lazy and should feel bad.
|
||||||
</body>
|
</body>
|
||||||
|
@ -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"
|
<svg width="100"
|
||||||
height="100"
|
height="100"
|
||||||
viewBox="-1 -1 2 2"
|
viewBox="-1 -1 2 2"
|
||||||
|
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 1.5 KiB |
@ -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;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
@ -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 = {
|
MODAL_STATES = {
|
||||||
"Wait" : {
|
"Wait" : {
|
||||||
button_disabled : true,
|
button_disabled : true,
|
||||||
|