1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-28 04:04:30 +01:00
Commit Graph

184 Commits

Author SHA1 Message Date
kakwa
6fd849fa50 trying again to have a test env... 2016-07-27 21:13:18 +02:00
kakwa
ca974ab801 trying to stop dnsmasq (to use samba internal) 2016-07-27 21:10:02 +02:00
kakwa
9b3d232503 trying to set hostname to kerberos realm 2016-07-27 21:06:31 +02:00
kakwa
1ccb4bf732 test killing samba processes before ad-dc start 2016-07-22 21:38:40 +02:00
kakwa
d484ee1ed0 more debugging 2016-07-22 21:31:58 +02:00
kakwa
bb05934284 more debuging for ad-dc setup 2016-07-22 21:19:38 +02:00
kakwa
6ef44b9b2e try to enable samba ad in test env 2016-07-10 09:53:09 +02:00
kakwa
0beac119f9 fix many error with html unescaped attributes 2016-07-08 21:46:00 +02:00
kakwa
91a1f3e7e3 debuging travis test env 2016-07-08 07:19:34 +02:00
kakwa
6c3fb4975d fix many encoding errors on login and password 2016-07-07 20:22:33 +02:00
kakwa
cf91e69eba fix restart of samba in test env 2016-06-17 08:09:44 +02:00
kakwa
5f1074bb26 fixing samba DC deployment for newer version of samba 2016-06-17 08:03:10 +02:00
kakwa
90d92009e3 more cleanup in test_env deploy.sh 2016-06-17 07:58:53 +02:00
kakwa
569aaac5a6 fix unittest because of new mandatory param for Active Directory 2016-06-17 07:52:49 +02:00
kakwa
ffac99994c Merge branch 'master' of https://github.com/kakwa/ldapcherry 2016-06-17 07:47:07 +02:00
kakwa
ab81f4258e fix test configurations to take into account mandatory params for Active Directory 2016-06-17 07:46:19 +02:00
kakwa
f7bbff4cec trying to cleanup travis build env 2016-06-17 00:15:14 +02:00
kakwa
9c1dc8112a add unit test for login failure 2015-10-20 22:42:29 +02:00
kakwa
1d97e01540 adding unit tests for demo backend 2015-10-20 22:17:23 +02:00
kakwa
807ac93956 better unit tests on authentication 2015-10-20 20:22:38 +02:00
kakwa
53676db341 small code reorganization
* extraction of exception decorator
* extraction of log handling
2015-10-19 20:14:49 +02:00
kakwa
ecbf112677 fix unit test on duplicate user exception 2015-07-31 22:54:21 +02:00
kakwa
efcaad54fc multiple modification/fix
* add display_name parameter for backend
* handle display_name in modify template (lonely groups) and error
  message
* fix bug in modify when user is in only one backend
* remove redondant exception in ad/ldap backend
* fix unit test accordingly
* fix License in AD backend (GPLv3 -> MIT, previously tought of using
  samba4 python library which is GPL, but this module finaly uses
  python-ldap which is MIT compatible)
2015-07-31 20:08:21 +02:00
kakwa
5d40cad342 adding utf-8 char in unit tests for ldap backend 2015-07-29 00:09:32 +02:00
kakwa
2a4815e142 fix unit tests 2015-07-26 09:26:04 +02:00
kakwa
cee73ceb93 adding check function to validate attributes type 2015-07-14 11:21:33 +02:00
kakwa
11064322db adding check for reserved password keys 2015-07-13 09:10:36 +02:00
kakwa
1a37cb23a9 adding unit test on selfmodify 2015-07-05 23:09:13 +02:00
kakwa
df88f2f266 remove trailing spaces 2015-07-05 22:48:24 +02:00
kakwa
98cbeb9af5 remove empty line 2015-07-05 22:46:18 +02:00
kakwa
b8f37aa545 adding unit test for _parse_params 2015-07-05 22:35:45 +02:00
kakwa
287ef63215 remove useless test 2015-07-05 22:30:11 +02:00
kakwa
e9d5331d6a various fix on ssl/tls + tests
* making ssl cert check and cert no check works
* adding a test to check if the cafile does exist
* reenable and fix ssl checks on travis
2015-07-05 22:01:09 +02:00
kakwa
405367fd75 various fixes in html + unit tests on html 2015-07-05 17:50:42 +02:00
kakwa
5d7f6ee12c adding html validation in ubit tests 2015-07-05 16:35:32 +02:00
kakwa
4a55d040f9 adding unit test for ppolicy 2015-07-03 20:26:02 +02:00
kakwa
721582304f disable ssl in test configuration 2015-06-28 23:48:07 +02:00
kakwa
2bfd54210f fix test configuration 2015-06-28 23:42:38 +02:00
kakwa
2d953030d5 adding various unit tests 2015-06-28 23:34:26 +02:00
kakwa
f1153137bc adding proper acl in test ldap configuration 2015-06-28 22:03:34 +02:00
kakwa
719fa15c74 fixing get_roles unit test 2015-06-19 22:18:36 +02:00
kakwa
234a82b3bd fix test ldap content 2015-06-18 21:06:30 +02:00
kakwa
b0e7df32b9 adding ldap groups to test group management 2015-06-18 20:37:23 +02:00
kakwa
5e508c6613 removing crapy configuration file 2015-06-18 20:36:37 +02:00
kakwa
01de849204 list of roles and not a uniq role for get_groups 2015-06-18 10:04:20 +02:00
kakwa
a8f1b7be59 reverse because no effect + disable ssl unit test on travis 2015-06-18 00:23:00 +02:00
kakwa
c75fd2c568 fix decorator to disable check on travis 2015-06-17 23:59:44 +02:00
kakwa
a3c75f97f5 adding unit test for starttls 2015-06-17 22:51:33 +02:00
kakwa
05a897f355 fix path to ca 2015-06-17 22:41:42 +02:00
kakwa
c6ffdc20d8 reenable ssl no cert check 2015-06-17 22:20:21 +02:00
kakwa
37dcbc9246 fix configuration of unit test 2015-06-17 21:49:23 +02:00
kakwa
9dd9a9818c test with ldap and not ldaps 2015-06-17 21:24:00 +02:00
kakwa
e029c6701b test for travis 2015-06-17 21:02:10 +02:00
kakwa
4321d48dc2 more logs 2015-06-17 20:51:21 +02:00
kakwa
567e4c7d5f greater timeout 2015-06-17 20:30:26 +02:00
kakwa
8269371588 trying to fix /etc/hosts 2015-06-17 19:58:05 +02:00
kakwa
ce357dbdc7 fix /etc/hosts for test env 2015-06-17 19:40:01 +02:00
kakwa
c2288eecf5 fix unit test and fix the way ldap connexion options are handled 2015-06-17 19:22:57 +02:00
kakwa
42a1e13db4 adding test for add/delete groups 2015-06-17 00:39:03 +02:00
kakwa
a7fcad01ed small reorganization 2015-06-17 00:06:30 +02:00
kakwa
47cddd04ca fix and add unit tests on ldap backend 2015-06-16 21:32:14 +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
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