1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-06-07 11:37:47 +02:00
Commit Graph

49 Commits

Author SHA1 Message Date
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
6ee0ff0354 many comment + encoding fixes 2015-07-29 08:15:54 +02:00
kakwa
ff08e09598 more encoding error fix (on ldap auth) 2015-07-29 00:14:49 +02:00
kakwa
69700d0ce9 more encoding fixes 2015-07-29 00:09:15 +02:00
kakwa
3391ed9704 fix more encoding error 2015-07-28 23:57:14 +02:00
kakwa
9ec7a3dfbe fix rename in modify
when renaming an entry, dn must be reset to the correct value for
the modifications that come after the rename.
2015-07-28 23:38:29 +02:00
kakwa
f2c1a6af44 many fixes in encoding handling 2015-07-28 23:27:02 +02:00
kakwa
4e5591db7a fix encoding error on dn 2015-07-28 22:18:57 +02:00
kakwa
27fca43ac6 Better exception re-raising
re-raising the exception without specifying the exception object gives
exactly the previous exception (including the correct stacktrace)
which is nicer to have for debugging.
2015-07-28 20:30:51 +02:00
kakwa
e3fe0b4bfb implementing renaming entry 2015-07-28 00:18:05 +02:00
kakwa
64b9573634 escaping search string for ldap 2015-07-15 21:28:54 +02:00
kakwa
3a6da2e480 better exception handling if user or group doesn't exist 2015-07-15 21:05:38 +02:00
kakwa
1885079444 pep8 compliance 2015-07-11 22:25:21 +02:00
kakwa
3712bb85cb many pep8 fixes thanks to pep8ify 2015-07-10 21:06:28 +02:00
kakwa
df88f2f266 remove trailing spaces 2015-07-05 22:48:24 +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
373d897cab better exception handling in ldap backend 2015-06-28 19:54:19 +02:00
kakwa
147cad3511 fix unicode 2015-06-27 22:35:34 +02:00
kakwa
f821aab9f4 adding logs when adding a user to a group 2015-06-18 20:38:10 +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
0d766d3303 fix add/del groups 2015-06-16 23:56:12 +02:00
kakwa
60a7329937 fix API for backend ldap on groups handling 2015-06-16 21:58:44 +02:00
kakwa
a2fe74539b multiple modification in backend ldap
* better handling of which attributes is recovered
* fix set_attrs method
* change api of set_attrs method for constancy
* change calls to _get_user and _search methods (internal api change)
2015-06-16 21:29:40 +02:00
kakwa
4a302750c0 implementing modify and add/rm to groups 2015-06-14 20:55:23 +02:00
kakwa
247a1fed3a removing trailling spaces 2015-06-06 22:23:21 +02:00
kakwa
c9b971e8b0 adding key handling 2015-05-31 18:40:35 +02:00
kakwa
62a2d002de reorganize the ldap backend module 2015-05-28 09:45:10 +02:00
kakwa
e559f69589 add exception handling 2015-05-27 21:59:54 +02:00
kakwa
dc7f07ab38 implement get_groups 2015-05-27 21:48:41 +02:00
kakwa
746c2a9978 fix logging in ldap backend 2015-05-26 23:12:33 +02:00
kakwa
91bc6bb18e reimplement get_user in ldap backend 2015-05-26 22:50:42 +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
16c757bdd4 factoring binding to the ldap 2015-05-25 22:17:17 +02:00
kakwa
8da0b7c533 code factoring 2015-05-25 19:52:54 +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
13cca11f51 adding skeleton of method search user 2015-05-24 17:32:03 +02:00
kakwa
97773549e0 fix method arguments 2015-05-24 15:20:17 +02:00
kakwa
efa7012adb more logical return for get_user 2015-05-24 15:11:49 +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
3fe59e4349 add passing attributes list to backend 2015-05-22 10:27:46 +02:00
kakwa
ab8c380bb1 adding the possibility to get a list of attributes in get_user 2015-05-22 09:51:46 +02:00
kakwa
5b03596ed7 adding close connexion and exception handling 2015-05-22 01:48:27 +02:00
kakwa
95232ba432 fix wrong call to method 2015-05-22 01:32:35 +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
cb843a40e5 correct the way variables are recovered by ldap backend 2015-05-21 19:55:11 +02:00
kakwa
1ac474647b fix backend name (collision with libraries name) 2015-05-21 08:52:06 +02:00