diff --git a/README.md b/README.md index 7f37cad..536c0db 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ You will need to set a few options inside your radicale config file. Example: ``` [auth] -type = radicale_auth_ldap +type = radicale3_auth_ldap # LDAP server URL, with protocol and port ldap_url = ldap://ldap:389 diff --git a/radicale_auth_ldap/__init__.py b/radicale3_auth_ldap/__init__.py similarity index 99% rename from radicale_auth_ldap/__init__.py rename to radicale3_auth_ldap/__init__.py index 6c0b8ad..d4b94b2 100644 --- a/radicale_auth_ldap/__init__.py +++ b/radicale3_auth_ldap/__init__.py @@ -32,7 +32,7 @@ import ldap3.core.exceptions from radicale.auth import BaseAuth from radicale.log import logger -import radicale_auth_ldap.ldap3imports +import radicale3_auth_ldap.ldap3imports PLUGIN_CONFIG_SCHEMA = {"auth": { "ldap_url": { diff --git a/radicale_auth_ldap/ldap3imports.py b/radicale3_auth_ldap/ldap3imports.py similarity index 100% rename from radicale_auth_ldap/ldap3imports.py rename to radicale3_auth_ldap/ldap3imports.py diff --git a/setup.py b/setup.py index aa3c62f..2d0fee9 100644 --- a/setup.py +++ b/setup.py @@ -3,10 +3,10 @@ from setuptools import setup setup( - name="radicale-auth-ldap", + name="radicale3-auth-ldap", version="3.0", description="LDAP Authentication Plugin for Radicale 3", author="Raoul Thill", license="GNU GPL v3", install_requires=["radicale >= 3.0", "ldap3 >= 2.3"], - packages=["radicale_auth_ldap"]) + packages=["radicale3_auth_ldap"]) diff --git a/test/basic_tests.py b/test/basic_tests.py index 3d20b68..b152f0f 100644 --- a/test/basic_tests.py +++ b/test/basic_tests.py @@ -2,7 +2,7 @@ import unittest -import radicale_auth_ldap +import radicale3_auth_ldap class References(unittest.TestCase): @@ -18,4 +18,4 @@ class References(unittest.TestCase): except ldap3.core.exceptions.LDAPInvalidCredentialsResult: successful_test = True - self.assertTrue(successful_test) \ No newline at end of file + self.assertTrue(successful_test) diff --git a/test/integration_tests.py b/test/integration_tests.py index d38b32c..4ad649e 100644 --- a/test/integration_tests.py +++ b/test/integration_tests.py @@ -3,7 +3,7 @@ import logging import unittest -import radicale_auth_ldap +import radicale3_auth_ldap from test.configuration import TEST_CONFIGURATION, VALID_USER, VALID_PASS from test.util import ConfigMock @@ -16,7 +16,7 @@ class Authentication(unittest.TestCase): cls.configuration = ConfigMock(TEST_CONFIGURATION) 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))