Skip to content

Enhanced modifications, added group removal upon delete and added some extened Uid functions#45

Open
cconnert wants to merge 102 commits intokakwa:mainfrom
cconnert:kakwa-upstream-pull-request
Open

Enhanced modifications, added group removal upon delete and added some extened Uid functions#45
cconnert wants to merge 102 commits intokakwa:mainfrom
cconnert:kakwa-upstream-pull-request

Conversation

@cconnert
Copy link
Copy Markdown

@cconnert cconnert commented Jul 9, 2019

Hi,

I adapted ldapcherry to work with apacheds and tried to enhance some behaviour (see commit
b6cba42 and dcd7162). The rest are just some reverts of my dockerized base version.
Would be nice if you accept this PR. Feel free to contact me if you need any feedback.

Cheers

kakwa and others added 30 commits February 7, 2018 19:52
- Switch from base64 to URL encoding for the passing the URL, using the built-in Mako filtering
- Apply HTML filtering to Mako output by default
- Disable HTML filtering for nested templates in adduser, modify, and selfmodify
Protect against XSS vulnerabilities in URL redirection
- Use markupsafe to format escaped HTML fragments
- Correct the formatting problems introduced with the XSS fixes
Escape form values with markupsafe
The templates were html escaping the generated js code for the
autofill and the role management. This was breaking these features.
It's okay to not escape these as they are coming from a trusted source
(configuration file).

Also make the templates python3 compatible (not need to import Set in
python 3)
Sets are not available in mako templates when using python3.
Reverting to using lists with 'if not in' checks to avoid duplication.
* changes in urllib imports since quote_plus in urllib with python 2 and
in urllib.parse in python 3
* changes in imports for Sets since set is a native type in python 3 and
doesn't requires an import
* fix in __import__, '-1' level for module path discovery is not supported
anymore, switching to 0 (absolute import only).
* switch from script to entry_points in setup.py
* move the cli script in ldapcherry (to be used as a module)
* put the __main__ code in a dedicated function constituting the entry
point
* add a few python3 environments in travis file
kakwa and others added 27 commits February 12, 2019 23:28
pre-cleanup to avoid contamination if other tests fail
Change the email regular expression to fix a few validation issues
Add install command to setup in README
…change and extended delete to remove user from groups
This reverts commit bc1f380.
This reverts commit fe8539e.
This reverts commit 7cfa183.
This reverts commit 9ad7d64.
@cconnert cconnert changed the title Kakwa upstream pull request Enhanced modifications, added group removal upon delete and added some extened Uid functions Jul 9, 2019
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-1.6%) to 79.192% when pulling ee3e0b6 on cconnert:kakwa-upstream-pull-request into 856157a on kakwa:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants