mirror of
https://github.com/jdupouy/radicale3-auth-ldap.git
synced 2024-10-27 19:14:00 +00:00
Rename to radicale3_auth_ldap
This commit is contained in:
parent
0e64ecc229
commit
5ca21d4f46
@ -6,7 +6,7 @@ You will need to set a few options inside your radicale config file. Example:
|
|||||||
|
|
||||||
```
|
```
|
||||||
[auth]
|
[auth]
|
||||||
type = radicale_auth_ldap
|
type = radicale3_auth_ldap
|
||||||
|
|
||||||
# LDAP server URL, with protocol and port
|
# LDAP server URL, with protocol and port
|
||||||
ldap_url = ldap://ldap:389
|
ldap_url = ldap://ldap:389
|
||||||
|
@ -32,7 +32,7 @@ import ldap3.core.exceptions
|
|||||||
from radicale.auth import BaseAuth
|
from radicale.auth import BaseAuth
|
||||||
from radicale.log import logger
|
from radicale.log import logger
|
||||||
|
|
||||||
import radicale_auth_ldap.ldap3imports
|
import radicale3_auth_ldap.ldap3imports
|
||||||
|
|
||||||
PLUGIN_CONFIG_SCHEMA = {"auth": {
|
PLUGIN_CONFIG_SCHEMA = {"auth": {
|
||||||
"ldap_url": {
|
"ldap_url": {
|
4
setup.py
4
setup.py
@ -3,10 +3,10 @@
|
|||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="radicale-auth-ldap",
|
name="radicale3-auth-ldap",
|
||||||
version="3.0",
|
version="3.0",
|
||||||
description="LDAP Authentication Plugin for Radicale 3",
|
description="LDAP Authentication Plugin for Radicale 3",
|
||||||
author="Raoul Thill",
|
author="Raoul Thill",
|
||||||
license="GNU GPL v3",
|
license="GNU GPL v3",
|
||||||
install_requires=["radicale >= 3.0", "ldap3 >= 2.3"],
|
install_requires=["radicale >= 3.0", "ldap3 >= 2.3"],
|
||||||
packages=["radicale_auth_ldap"])
|
packages=["radicale3_auth_ldap"])
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import radicale_auth_ldap
|
import radicale3_auth_ldap
|
||||||
|
|
||||||
|
|
||||||
class References(unittest.TestCase):
|
class References(unittest.TestCase):
|
||||||
@ -18,4 +18,4 @@ class References(unittest.TestCase):
|
|||||||
except ldap3.core.exceptions.LDAPInvalidCredentialsResult:
|
except ldap3.core.exceptions.LDAPInvalidCredentialsResult:
|
||||||
successful_test = True
|
successful_test = True
|
||||||
|
|
||||||
self.assertTrue(successful_test)
|
self.assertTrue(successful_test)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
import radicale_auth_ldap
|
import radicale3_auth_ldap
|
||||||
from test.configuration import TEST_CONFIGURATION, VALID_USER, VALID_PASS
|
from test.configuration import TEST_CONFIGURATION, VALID_USER, VALID_PASS
|
||||||
from test.util import ConfigMock
|
from test.util import ConfigMock
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ class Authentication(unittest.TestCase):
|
|||||||
cls.configuration = ConfigMock(TEST_CONFIGURATION)
|
cls.configuration = ConfigMock(TEST_CONFIGURATION)
|
||||||
|
|
||||||
def test_authentication_works(self):
|
def test_authentication_works(self):
|
||||||
auth = radicale_auth_ldap.Auth(self.__class__.configuration)
|
auth = radicale3_auth_ldap.Auth(self.__class__.configuration)
|
||||||
self.assertTrue(auth.login(VALID_USER, VALID_PASS))
|
self.assertTrue(auth.login(VALID_USER, VALID_PASS))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user