1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-12-23 21:30:04 +01:00

77 Commits

Author SHA1 Message Date
kakwa
b67e0112c5 adding skeleton for ldap backed 2015-05-21 08:33:56 +02:00
kakwa
1020c454d0 begin ldap backend implementation 2015-05-20 17:13:18 +02:00
kakwa
fc188df49e better logs 2015-05-20 15:16:01 +02:00
kakwa
e769aed10e adding unit tests for exception while loading module 2015-05-20 14:46:29 +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
b653f5512c adding unit test for missing backend 2015-05-19 18:36:16 +02:00
kakwa
2c4ce35b52 adding unit tests for missing parameters in main conf file 2015-05-19 18:30:58 +02:00
kakwa
bb56bdea6f adding unit tests 2015-05-19 18:18:59 +02:00
kakwa
114799f684 small debug script for class LdapCherry 2015-05-19 17:55:46 +02:00
kakwa
544866ce56 set log level to debug for test configuration 2015-05-19 17:55:02 +02:00
kakwa
8a0404d48e adding base template for web pages 2015-05-19 17:54:17 +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
caf799ba2a fix default configuration 2015-05-19 00:12:41 +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
ff6e996912 more complete ini conf file
adding necessary parameters for backends
2015-05-18 15:12:09 +02:00
kakwa
2a4bc5d261 rename main class 2015-05-18 15:06:39 +02:00
kakwa
ab841b5baf adding get_attributes 2015-05-18 15:04:36 +02:00
kakwa
49de542fb9 better unit tests 2015-05-18 15:01:32 +02:00
kakwa
7cdbe459b6 change backend key name in attributes + methods
* adding get_backends
* adding get_selfattributes (attributes users can change themselves)
* adding unit tests
* rename backend-attributes -> bakends (for homogeneity with role.yml)
2015-05-18 12:30:51 +02:00
kakwa
a71093038c better checks for attributes 2015-05-17 19:49:13 +02:00
kakwa
679c2bba85 adding checks for mandatory elements of attributes.yml 2015-05-17 19:22:11 +02:00
kakwa
dbc88163dd begin attributes handling manipulation 2015-05-17 12:24:29 +02:00
kakwa
1211ab431b add methods for class Roles + unit tests
* adding get_allroles (list all available roles)
* adding get_display_name (get display name of a role)
* add various unit tests
2015-05-17 01:22:53 +02:00
kakwa
6949cc71e4 enable coverall.io 2015-05-17 00:04:46 +02:00
Carpentier Pierre-Francois
34ab780203 Update README.rst 2015-05-17 00:01:05 +02:00
kakwa
0416ebe05b unit test + admin roles fix
* adding various unit tests
* now admin roles are inherited (ex admin-lv2 is admin -> admin-lv3 is admin
* adding an exception when requesting groups for none existant role
2015-05-16 23:52:59 +02:00
kakwa
87820da7d0 implementing various methods:
* get_groups (get_groups of a role)
* is_admin (determine if ldapcherry admin)
* get_backends (get list of role backends)
2015-05-16 20:03:34 +02:00
kakwa
17499c82ae better comments and slight improvement in perf 2015-05-16 19:57:26 +02:00
kakwa
19f98aa664 more complex unit test for get_roles 2015-05-16 19:40:16 +02:00
kakwa
991f8ee72d misc role 2015-05-16 19:15:40 +02:00
kakwa
6289f62c6c adding a test for get_roles 2015-05-16 19:15:20 +02:00
kakwa
ab660ebe96 fix in get_roles 2015-05-16 19:11:52 +02:00
kakwa
3889a441a3 implementing roles resolution from list of groups 2015-05-16 18:44:02 +02:00
kakwa
7524a189fe implementing nesting roles 2015-05-15 01:03:31 +02:00
kakwa
d74893d104 fixing typos in role files 2015-05-14 22:10:26 +02:00
kakwa
804e2b7202 adding an exception for failures to open role file 2015-05-12 11:34:28 +02:00
kakwa
17b8aa6406 adding missing dependancy PyYAML 2015-05-12 11:31:58 +02:00
kakwa
4aac712286 handling exception if a role key is duplicated 2015-05-12 01:42:08 +02:00
kakwa
89e8e2aac0 fix on unit tests for roles 2015-05-12 01:41:32 +02:00
kakwa
2d1fdfe1da adding test cases and reworking test env 2015-05-12 01:26:57 +02:00
kakwa
1fe95799a3 correcting identation on roles.yml configuration file 2015-05-12 01:25:07 +02:00
kakwa
e9ff75061d adding loading of the roles yaml file 2015-05-12 01:24:16 +02:00
kakwa
6ece24bd84 configuration formatting 2015-04-26 09:40:50 +02:00
kakwa
398a29f7e2 adding different type of parameters 2015-04-17 21:24:07 +02:00
kakwa
67b6c27273 adding skeleton to handle form attributes 2015-04-16 22:07:45 +02:00