-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LDAP authentication #10
Conversation
mian/main.py
Outdated
# def get_config_section(): | ||
# if not hasattr(get_config_section, 'section_dict'): | ||
# get_config_section.section_dict = collections.defaultdict() | ||
|
||
# for section in config.sections(): | ||
# get_config_section.section_dict[section] = dict(config.items(section)) | ||
|
||
# return get_config_section.section_dict | ||
|
||
# # Load config file variables into config_dict. | ||
# # Variable names are converted to lowercase! | ||
# config_dict = get_config_section() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a couple of places with commented out methods. Are you keeping them for reference or do they serve some other purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment in main.py regarding the commented out methods. LGTM otherwise.
Sorry, just forgot to remove them. |
Thank you for your contribution! |
This patch adds LDAP authentication to mian. It moves the mail server config variables as well as the LDAP config variables to an extra config.ini file. When 'LDAP_ACTIVE = false' it behaves the same as before.