From: Alan T. DeKok Date: Tue, 28 Nov 2017 19:09:10 +0000 (-0500) Subject: remove ldap client tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f2f43aa5bd637a5f399f58af73d8dfd6dd305b7;p=thirdparty%2Ffreeradius-server.git remove ldap client tests --- diff --git a/src/tests/modules/ldap/clients.attrs b/src/tests/modules/ldap/clients.attrs deleted file mode 100644 index be988eeec42..00000000000 --- a/src/tests/modules/ldap/clients.attrs +++ /dev/null @@ -1,15 +0,0 @@ -# -# Input packet -# -User-Name = "john" -User-Password = "password" -NAS-IP-Address = 1.2.3.5 - -# -# Expected answer -# -Response-Packet-Type == Access-Accept -Idle-Timeout == 3600 -Session-Timeout == 7200 -Acct-Interim-Interval == 1800 -Framed-IP-Netmask == "255.255.0.0" diff --git a/src/tests/modules/ldap/clients.unlang b/src/tests/modules/ldap/clients.unlang deleted file mode 100644 index ea2cfef1c8e..00000000000 --- a/src/tests/modules/ldap/clients.unlang +++ /dev/null @@ -1,81 +0,0 @@ -# -# Run the "ldap" module -# -ldap - -if ("%{client:1.1.1.1.secret}" != "secret123") { - test_fail -} -else { - test_pass -} - -if ("%{client:1.1.1.1.shortname}" != "client1") { - test_fail -} -else { - test_pass -} - -if ("%{client:1.1.1.1.nas_type}" != "other") { - test_fail -} -else { - test_pass -} - -if ("%{client:1.1.1.1.require_message_authenticator}" != "FALSE") { - test_fail -} -else { - test_pass -} - -if ("%{client:1.1.1.1.proto}" != "udp") { - test_fail -} -else { - test_pass -} - -if ("%{client:1.1.1.1.login}" != "foo") { - test_fail -} -else { - test_pass -} - -if ("%{client:1.1.1.1.password}" != "bar") { - test_fail -} -else { - test_pass -} - -if ("%{client:2.2.2.2.secret}" != "123secret") { - test_fail -} -else { - test_pass -} - -if ("%{client:2.2.2.2.shortname}" != "client2") { - test_fail -} -else { - test_pass -} - -if ("%{client:2.2.2.2.nas_type}" != "cisco") { - test_fail -} -else { - test_pass -} - -if ("%{client:2.2.2.2.require_message_authenticator}" != "TRUE") { - test_fail -} -else { - test_pass -} diff --git a/src/tests/modules/ldap/module.conf b/src/tests/modules/ldap/module.conf index 7c6a36b22dd..0547ac2da9e 100644 --- a/src/tests/modules/ldap/module.conf +++ b/src/tests/modules/ldap/module.conf @@ -274,63 +274,6 @@ ldap { attribute = 'radiusProfileDn' } - # - # Bulk load clients from the directory - # - client { - # Where to start searching in the tree for clients - base_dn = "ou=clients,${..base_dn}" - - # - # Filter to match client objects - # - filter = '(objectClass=radiusClient)' - - # Search scope, may be 'base', 'one', 'sub' or 'children' -# scope = 'sub' - - # - # Sets default values (not obtained from LDAP) for new client entries - # - template { - login = 'foo' - password = 'bar' - proto = udp - require_message_authenticator = yes - - # Uncomment to add a home_server with the same - # attributes as the client. -# coa_server { -# response_window = 2.0 -# } - } - - # - # Client attribute mappings are in the format: - # = - # - # The following attributes are required: - # * ipaddr | ipv4addr | ipv6addr - Client IP Address. - # * secret - RADIUS shared secret. - # - # All other attributes usually supported in a client - # definition are also supported here. - # - # Schemas are available in doc/schemas/ldap for openldap and eDirectory - # - attribute { - ipaddr = 'radiusClientIdentifier' - secret = 'radiusClientSecret' - shortname = 'radiusClientShortname' - nas_type = 'radiusClientType' - virtual_server = 'radiusClientVirtualServer' - require_message_authenticator = 'radiusClientRequireMa' - } - } - - # Load clients on startup - read_clients = yes - # # Modify user object on receiving Accounting-Request #