1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-02 09:08:04 +02:00
Commit Graph

134 Commits

Author SHA1 Message Date
kakwa
f6b1128274 adding more debug traces in case of a faulty backend 2015-07-25 22:02:53 +02:00
kakwa
3a6da2e480 better exception handling if user or group doesn't exist 2015-07-15 21:05:38 +02:00
kakwa
77fbb346f1 fix authentifcation 2015-07-14 23:49:09 +02:00
kakwa
5a199ae3fb fix trailling space 2015-07-14 23:38:33 +02:00
kakwa
1703dc9a33 adding global exception handler 2015-07-14 23:37:20 +02:00
kakwa
315c226bf4 pep8 compliance 2015-07-14 14:49:22 +02:00
kakwa
afb3c0ef23 fix modify for empty attributes 2015-07-14 14:20:31 +02:00
kakwa
3587afcbfa better exception + server side checks for ppolicy 2015-07-14 14:05:10 +02:00
kakwa
dd5d7b9c19 fix typo 2015-07-13 14:51:18 +02:00
kakwa
53e4159ec9 simpler way to fill group hash in modify if key don't exist 2015-07-13 10:18:17 +02:00
kakwa
0a4164c8b5 code reorganization+docstrings 2015-07-13 10:08:47 +02:00
kakwa
24aabe2908 pep8 compilance for ldapcherry/__init__.py 2015-07-11 08:55:54 +02:00
kakwa
3712bb85cb many pep8 fixes thanks to pep8ify 2015-07-10 21:06:28 +02:00
kakwa
04c294e038 disable autofill for modify forms 2015-07-10 20:11:07 +02:00
kakwa
9bd23e386b fix typo in log 2015-07-06 08:32:36 +02:00
kakwa
1f0cc50d58 adding a redirected to the originaly requested page on login
user not authenticated and requesting an url are redirected to
the signin page with the requested page url as the query string (in
base64). It permits to redirect them to the requested page once they
've log in.
2015-07-06 07:58:27 +02:00
kakwa
7241b6f8ee better error message for selfmodify if auth disabled 2015-07-05 23:09:32 +02:00
kakwa
df88f2f266 remove trailing spaces 2015-07-05 22:48:24 +02:00
kakwa
cd13bf5d22 fix error if no ppolicy module 2015-07-02 08:35:44 +02:00
kakwa
0d045576b2 implementing ppolicy handling and a simple ppolicy module 2015-07-02 07:42:38 +02:00
kakwa
ac7661731c implementing frontend password policy check 2015-07-01 08:50:50 +02:00
kakwa
cd5069557c adding skeleton for ppolicy check 2015-06-29 23:07:53 +02:00
kakwa
ae5c857c74 fix error if password is not in modified attributes 2015-06-28 23:33:37 +02:00
kakwa
31907f726b change where form parsing is executed
this change creates a cleaner api for core functions
2015-06-28 23:10:58 +02:00
kakwa
1346bbe820 factoring source code 2015-06-28 15:29:02 +02:00
kakwa
3ccb5ecfc2 better docstring and splitting template load from reload 2015-06-28 15:14:31 +02:00
kakwa
e7053435e3 disable redirection + disable selfmodify if authentication is 'none' 2015-06-28 11:22:37 +02:00
kakwa
147cad3511 fix unicode 2015-06-27 22:35:34 +02:00
kakwa
b5a8e302d1 adding redirect to selfmodify on / 2015-06-26 00:03:26 +02:00
kakwa
11c4196959 implementing selfmodify 2015-06-25 23:42:37 +02:00
kakwa
45f32df72e make the key attribute not modifiable in modify form 2015-06-25 02:08:30 +02:00
kakwa
830e00a404 implementing modify 2015-06-25 01:26:28 +02:00
kakwa
be23277363 better log handler 2015-06-24 22:33:28 +02:00
kakwa
84c3d9604f replace uppercase characters in logs 2015-06-24 21:24:56 +02:00
kakwa
02c157b386 adding another debug log 2015-06-24 21:22:34 +02:00
kakwa
117d18bc92 prefixing all form attributes to differenciate between types 2015-06-24 00:46:10 +02:00
kakwa
314e0fc02b redirecting to the edit page once submit modify 2015-06-23 23:58:17 +02:00
kakwa
1b5c737cd5 implementing deletion of a user 2015-06-23 21:42:06 +02:00
kakwa
700ae5ce1e implementing backend method for delete user 2015-06-22 23:15:09 +02:00
kakwa
622e730017 fix adding multiple time to same group + logs 2015-06-21 23:41:24 +02:00
kakwa
71576f0aea code reorganization + logs
* adding logs when adding users
* move adduser with other none exposed classes
* skeleton for modify and delete user
2015-06-21 15:28:32 +02:00
kakwa
9cda4e6de0 better logs 2015-06-20 22:40:28 +02:00
kakwa
5e5e7e3c6a implementing displaying roles and standalone groups in modify form 2015-06-19 22:15:37 +02:00
kakwa
834b5a5152 begin implementing modify user form 2015-06-18 23:43:58 +02:00
kakwa
71c1eccc8e implementing adding user to roles 2015-06-18 20:38:39 +02:00
kakwa
c5bd6a238b remove debuging log 2015-06-16 00:25:04 +02:00
kakwa
322aba33e8 fix search display
* fix attritues handling, not using backend attribute name but key given
  in attributes.yml
2015-06-15 23:03:47 +02:00
kakwa
47e51d2451 implementing basic add of users 2015-06-15 21:30:19 +02:00
kakwa
fce2f89103 adding notification on addes user 2015-06-14 15:31:43 +02:00
kakwa
6eece6f7ff implementing notification to explain automatic adding of roles 2015-06-12 00:25:17 +02:00
kakwa
5ddaa4c44f adding js to better handle parent/sub roles
now js functions automatically enables parent roles of a selected
roles, and disables sub roles unselected role
2015-06-11 23:36:50 +02:00
kakwa
a62c5a64ac fix unit tests + add graph method
* fix unit tests on roles (adding mandatory description)
* adding a method to get roles graph in json
2015-06-11 09:34:45 +02:00
kakwa
494d553a74 implementing conditional navbar
* implementing navbar that displays actions the user is authorized to do
2015-06-10 21:26:59 +02:00
kakwa
8d08cf0284 implementing roles switchs on forms 2015-06-10 19:59:35 +02:00
kakwa
e2497671cb implementing adding default values to form 2015-06-09 09:19:58 +02:00
kakwa
247a1fed3a removing trailling spaces 2015-06-06 22:23:21 +02:00
kakwa
d1e0c4be93 adding self modify page 2015-05-31 23:42:24 +02:00
kakwa
af3326db07 adding form and better handling of search without results 2015-05-31 22:40:20 +02:00
kakwa
fb0bfb48cc adding not admin search 2015-05-31 19:46:50 +02:00
kakwa
53660ee1d2 implement search 2015-05-31 19:38:31 +02:00
kakwa
c9b971e8b0 adding key handling 2015-05-31 18:40:35 +02:00
kakwa
8d8f4ffbe5 cleaning ldapcherry class 2015-05-31 17:44:36 +02:00
kakwa
9263a8c963 implementing 'none' authentification (no authentification) 2015-05-31 11:39:15 +02:00
kakwa
181597e273 adding a search page dedicated for admin 2015-05-30 22:19:57 +02:00
kakwa
5d93bdcbe9 fix authentification and permission handling 2015-05-30 21:33:44 +02:00
kakwa
3bb36d1a74 implementing logout 2015-05-28 01:23:22 +02:00
kakwa
0ae234383a implementing access controle methods 2015-05-28 00:57:15 +02:00
kakwa
9d314b6778 implement authentification 2015-05-26 22:51:57 +02:00
kakwa
3fe59e4349 add passing attributes list to backend 2015-05-22 10:27:46 +02:00
kakwa
93ed190913 multiple changes
* change parameters name for Backend Ldap
* fix default value handling in backends get_param
* correct exception in backends get_param
* fix syntaxe error
* add backend name in test_BackendLdap.py
2015-05-21 21:40:13 +02:00
kakwa
3ab1cbcdb2 adding a get_param method + pass backend name to backend 2015-05-21 19:54:38 +02:00
kakwa
fc188df49e better logs 2015-05-20 15:16:01 +02:00
kakwa
1e5f057e36 implementing loading backends
* fix conf file
* add exceptions
* fix modules skeletons
2015-05-20 14:21:43 +02:00
kakwa
6a610c079e multiple modifications:
* adding logs in conf loading
* fixing attributes/roles handling in class LdapCherry
* fix unit test on logs
* add unit test for random exception
2015-05-20 12:44:33 +02:00
kakwa
56be37ff38 implementing backends parsing of main config file 2015-05-19 17:53:14 +02:00
kakwa
a3938c73b4 init backends initialization method 2015-05-19 00:14:34 +02:00
kakwa
84654b0cf0 displace _get_loglevel near othe log related methods 2015-05-19 00:03:28 +02:00
kakwa
bfd1969ab3 fix log_level + unit tests
* python logging doesn't support the 7 log levels of syslog, compensate it
* adding unit test on log level
2015-05-18 23:59:54 +02:00
kakwa
2ba56128ac adding loading roles and attributes 2015-05-18 20:04:47 +02:00
kakwa
d6bb5c38ed begin implementation of the main application 2015-05-18 19:56:44 +02:00
kakwa
2a4bc5d261 rename main class 2015-05-18 15:06:39 +02:00
kakwa
e9ff75061d adding loading of the roles yaml file 2015-05-12 01:24:16 +02:00
kakwa
43299cb52f basic skeleton for web application 2015-04-15 23:10:01 +02:00
kakwa
9f77cfc38c initial commit 2014-06-02 23:10:19 +02:00