Commit graph

45 commits

Author SHA1 Message Date
68bafe32d4
Fix #2: Run Flatpak with sh -c to avoid sudo error 2022-09-06 10:55:46 -05:00
d619b166be
Generate temporary password in adduser 2022-06-25 19:22:04 -05:00
ee81994947
Move documentation from README to individual scripts 2022-06-25 19:13:57 -05:00
1eadc49cf0
Discontinue the API 2022-06-25 18:34:57 -05:00
33647c34a0
Rewrite and clean up scripts 2022-06-25 18:08:57 -05:00
e763317fff
Move ldappass and secret code to its own file and cleanup 2022-01-25 07:34:34 -06:00
6e856e93cd
Separate user management scripts into Python libraries and wrapper scripts 2022-01-24 20:15:49 -06:00
b12dff61f2
Make sure to import os.rename in adduser to avoid crashes 2022-01-19 15:47:43 -06:00
8bbc5728e5
Use CRYPT instead of SHA1 for hashing 2022-01-18 12:30:04 -06:00
9228477954
Use docstrings instead of comments and add more docs 2022-01-13 18:21:28 -06:00
fa4582b9a0
Use remove and chown from os instead of subprocess.run 2022-01-12 17:38:32 -06:00
81936ae18f
Fix ldif multiline string indentation 2022-01-05 19:07:41 -06:00
b8cf7b4ae7
Python style updates 2022-01-05 18:34:40 -06:00
0e026fbf12
Implement a SHA1 password hash 2022-01-05 18:33:31 -06:00
a98bf6122c
Remove adduser confirmation 2022-01-05 18:10:08 -06:00
8dc5c69150
Only import needed functions 2022-01-05 18:09:54 -06:00
24746ca761
Replace shell commands with lists for subprocess run 2022-01-05 18:04:23 -06:00
4cfd8d01ad
Add interactive mode for all *user scripts 2021-12-11 14:45:12 -06:00
6db81fda52
Move ldif user directory to ~/git/LDAP/users 2021-12-10 22:13:57 -06:00
f91da4f99d
Lint Python scripts 2021-12-03 19:46:51 -06:00
bfb219c7f2
Make scripts more robust 2021-11-29 22:17:26 -06:00
7ff1489a7b
Automatically generate UID using getent passwd 2021-11-29 18:27:39 -06:00
400882f486
Remove ldif file if adduser is unsuccessful 2021-11-23 15:59:23 -06:00
a4820fae58
Add registration code 2021-11-23 15:58:25 -06:00
9df4ff1af6
Don't add user if ldapadd returns a nonzero exit code 2021-11-22 19:38:04 -06:00
c7a68d1941
Move ldif file after adding user 2021-11-22 15:54:11 -06:00
3c6c1ca46f
Typo 2021-11-22 15:36:11 -06:00
a47aa8bf38
Add registration backend script 2021-11-22 15:15:48 -06:00
Anthony Wang
9a6c0a19a3 Default confirm no for adduser 2021-10-06 19:06:15 -05:00
Anthony Wang
6fa480fc18 Ask for custom UID in adduser 2021-10-06 19:05:05 -05:00
Anthony Wang
51dacc7aca Remove KDE launcher config for new users since it doesn't work 2021-09-16 22:30:10 -05:00
Anthony Wang
a4d02a875b Remove extra newline in adduser 2021-09-16 22:09:38 -05:00
Anthony Wang
e4ca640821 Configure Plasma Application Launcher to show logout option 2021-09-16 22:08:54 -05:00
0b8f64ccdc
Calculate UID based on number of ldif files in directory 2021-08-30 19:47:28 -05:00
eaba759e29
Remove newlines after getting the value of shell commands in adduser script 2021-08-21 16:07:25 -05:00
b3eb09dd07
Adjust spaces and newlines 2021-08-20 17:03:44 -05:00
1aa1da4777
Add confirmation to scripts 2021-08-20 17:02:53 -05:00
5df268645e
Generate random password for each user 2021-08-20 17:01:29 -05:00
7e7b031cea
Use a more secure default password 2021-08-20 16:54:28 -05:00
ce4580f4cc
Use fish as default shell 2021-08-20 16:29:46 -05:00
08886d0699
Use 077 umask when creating home directories 2021-08-15 11:05:36 -05:00
e35e08b058
Debug scripts 2021-08-03 09:08:35 -05:00
366512c0f6
Typo 2021-08-03 08:50:39 -05:00
600d26af2b
Rewrite adduser in Python 2021-08-02 22:22:53 -05:00
a79cadb244
Create adduser 2021-08-01 22:07:48 -05:00