#
import socket
+import sys
import samba.tests
from samba.tests import TestCase
'''
Check that an LDAP search request equal to the maximum size is accepted
'''
+ #
+ # Test is not compatable with python 2 so skip it for the
+ # backports.
+ #
+ if sys.version_info < (3, 0):
+ self.skipTest("Test is not python2 compatable")
+ return
# Lets build an ldap search packet to query the RootDSE
header = encode_string(None) # Base DN, ""
Test that a search query longer than the maximum permitted
size is rejected.
'''
+ #
+ # Test is not compatable with python 2 so skip it for the
+ # backports.
+ #
+ if sys.version_info < (3, 0):
+ self.skipTest("Test is not python2 compatable")
+ return
# Lets build an ldap search packet to query the RootDSE
header = encode_string(None) # Base DN, ""