1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-25 18:54:29 +01:00
Commit Graph

72 Commits

Author SHA1 Message Date
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
556d1f744b implementing a method to get groups to remove
* implement a way to remove roles from a user
  without removing groups of roles the user keeps
2015-06-08 22:50:54 +02:00
kakwa
30cfd248f7 adding unit tests 2015-06-05 01:01:35 +02:00
kakwa
1735f5da20 simplify roles configuration (backend groups) 2015-06-04 23:34:31 +02:00
kakwa
af0ac631cb better default configuration and content in test ldap 2015-06-02 08:18:05 +02:00
kakwa
f8b3df8b58 implementing weight and normalizing each kind of attributes 2015-05-31 23:27:04 +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
2860f5af6c adding key and fixing unit tests 2015-05-31 18:07:46 +02:00
kakwa
1acd48c332 add unit test for get_user 2015-05-28 09:56:25 +02:00
kakwa
0f97d1d07c adding unit test for del user if user don't exist 2015-05-28 09:51:19 +02:00
kakwa
8387aa0cad adding test on login 2015-05-28 09:46:11 +02:00
kakwa
a335b7c109 fix test configuration 2015-05-28 09:45:59 +02:00
kakwa
fcf2002388 Merge branch 'master' of https://github.com/kakwa/ldapcherry 2015-05-28 09:04:00 +02:00
kakwa
13c4e67346 adding creation of a ext4 partition 2015-05-28 09:03:40 +02:00
kakwa
380085fdfc fix configuration 2015-05-27 21:59:29 +02:00
kakwa
231b591d6a add unit test for get_groups 2015-05-27 21:56:55 +02:00
kakwa
c093905015 fix test on ldap backend 2015-05-26 22:51:29 +02:00
kakwa
a1c7a529d8 adding methods add_user and del_user
* adding add_user
* adding del_user
* adding unit tests
* adding configuration parameters for adding users
2015-05-26 00:33:36 +02:00
kakwa
0f6e0c7cab adding objectclasses options 2015-05-25 22:53:34 +02:00
kakwa
7a7d6f5f6f implementing search users
* adding search
* adding unit tests
2015-05-25 19:30:41 +02:00
kakwa
6af8628d5d adding search template 2015-05-25 18:52:14 +02:00
kakwa
63062be433 multiple changes
* implemeting recover user attributes
* adding a unit test for unavailable ldap
* adding a parameter timeout to set the ldap timeout connexion
2015-05-22 20:05:24 +02:00
kakwa
6460c33b28 adding unit test for ldap server unavailable 2015-05-22 19:38:41 +02:00
kakwa
3fe59e4349 add passing attributes list to backend 2015-05-22 10:27:46 +02:00
kakwa
74ed8fa0d4 adding method and unit tests to get all the attributes of one backend 2015-05-22 09:49:50 +02:00
kakwa
31afad5ee9 implement unit test on auth test 2015-05-22 01:33:15 +02:00
kakwa
189079cf21 many fixes in unit tests + fix in params + fix in constant
Oh god, python-ldap is crap...
* add better unit test
* correct params name
* correct exception handling
* disable testConnectSSLNoCheck (impossible to test with a certificate
  previously defined)
2015-05-22 01:16:53 +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
a8c61d33e6 partial testConnect implementation 2015-05-21 08:54:28 +02:00
kakwa
991197e7d2 fix backend name 2015-05-21 08:52:48 +02:00
kakwa
b67e0112c5 adding skeleton for ldap backed 2015-05-21 08:33:56 +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
544866ce56 set log level to debug for test configuration 2015-05-19 17:55:02 +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
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
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