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

189 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
383c68f8b8 fix authentification for AD backend 2015-07-29 00:22:25 +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
5459830269 removing utf-8 crap in AD backend
the crap must be fixed in LDAP backend first
2015-07-28 22:19:49 +02:00
kakwa
4e5591db7a fix encoding error on dn 2015-07-28 22:18:57 +02:00
kakwa
b9903e62ff fix pep8 compliance 2015-07-28 20:41:02 +02:00
kakwa
95d6a0e6a4 typo + add/del group in AD backend
* implementing add_to_group and del_from_group in AD backend.
* fixing typo self.objetclasses => self.objectclasses
2015-07-28 20:36:06 +02:00
kakwa
e5d97cf8ff making Backend skeleton a child class of object
this enables the use of super()
2015-07-28 20:32:46 +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
ac0a3473f7 fix recovery of groups in AD backend 2015-07-26 14:26:59 +02:00
kakwa
0914e141ec adding filter for ad backend 2015-07-26 10:37:20 +02:00
kakwa
23b3dbfbe3 fix search template for AD backend 2015-07-26 10:23:43 +02:00
kakwa
2a4815e142 fix unit tests 2015-07-26 09:26:04 +02:00
kakwa
7d55cb2d14 Merge branch 'master' of https://github.com/kakwa/ldapcherry 2015-07-25 22:05:23 +02:00
kakwa
f0d43d9460 renaming and begining implementing the ad backend 2015-07-25 22:04:48 +02:00
kakwa
f6b1128274 adding more debug traces in case of a faulty backend 2015-07-25 22:02:53 +02:00
kakwa
8617ed5ae5 fix docstring in ldapcherry/backend/__init__.py 2015-07-21 00:53:07 +02:00
kakwa
7d5ccb4e8e add docstring for backend 2015-07-21 00:29:37 +02:00
kakwa
99c4a01873 fix wrong type in docstring 2015-07-21 00:28:38 +02:00
kakwa
324eddf04f fix typo 2015-07-20 00:46:48 +02:00
kakwa
90d075040e better docstrings 2015-07-20 00:44:14 +02:00
kakwa
ca49587870 better docstring 2015-07-20 00:41:29 +02:00
kakwa
6ad6f8ce5c adding exception for user already existing in backend 2015-07-18 12:02:00 +02:00
kakwa
2508739838 fix doc string in ppolicy 2015-07-17 08:28:39 +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
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
abb651daa1 adding exception regarding password checks
* exception for ppolicy match
* exception for password fields don't match
2015-07-14 14:03:39 +02:00
kakwa
a83cae5428 fix default ppolicy 2015-07-14 14:03:05 +02:00
kakwa
cee73ceb93 adding check function to validate attributes type 2015-07-14 11:21:33 +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
11064322db adding check for reserved password keys 2015-07-13 09:10:36 +02:00
kakwa
c1dd6701b1 pep8 compliance for ldapcherry/pyyamlwrapper.py 2015-07-11 23:15:40 +02:00
kakwa
1885079444 pep8 compliance 2015-07-11 22:25:21 +02:00
kakwa
bbeaebe77d pep8 compliance 2015-07-11 22:05:33 +02:00
kakwa
f73d4e37bc more pep8 compliance 2015-07-11 22:03:58 +02:00
kakwa
f29039704e pep8 compliance on ldapcherry/exceptions.py 2015-07-11 09:05:01 +02:00