diff options
| author | Noel Power <noel.power@suse.com> | 2018-03-09 13:57:01 +0000 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2018-03-23 07:28:24 +0100 |
| commit | a8aab19b90324a02f11cd09c79b8b38522f451ca (patch) | |
| tree | b9a614b8fe212546b1b3b5e8ba022e7f37efd70c /source4/dsdb/tests/python/ldap.py | |
| parent | 9c251740b42b04eb0c277bc7975170e0fa784ebf (diff) | |
| download | samba-a8aab19b90324a02f11cd09c79b8b38522f451ca.tar.gz samba-a8aab19b90324a02f11cd09c79b8b38522f451ca.tar.bz2 samba-a8aab19b90324a02f11cd09c79b8b38522f451ca.zip | |
s3/dsdb: convert print func to be py2/py3 compatible
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'source4/dsdb/tests/python/ldap.py')
| -rwxr-xr-x | source4/dsdb/tests/python/ldap.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/tests/python/ldap.py b/source4/dsdb/tests/python/ldap.py index db0b68c8405..12e36ba8de3 100755 --- a/source4/dsdb/tests/python/ldap.py +++ b/source4/dsdb/tests/python/ldap.py @@ -17,6 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +from __future__ import print_function import optparse import sys import time @@ -2584,11 +2585,11 @@ member: cn=ldaptestuser2,cn=users,""" + self.base_dn + """ res = ldb.search(self.base_dn, expression="(&(cn=ldaptestgroup2)(objectClass=group))", scope=SCOPE_SUBTREE, attrs=attrs, controls=["extended_dn:1:1"]) self.assertEquals(len(res), 1, "Could not find (&(cn=ldaptestgroup2)(objectClass=group))") - print res[0]["member"] + print(res[0]["member"]) memberUP = [] for m in res[0]["member"]: memberUP.append(m.upper()) - print ("<GUID=" + ldb.schema_format_value("objectGUID", ldaptestuser2_guid) + ">;<SID=" + ldb.schema_format_value("objectSid", ldaptestuser2_sid) + ">;CN=ldaptestuser2,CN=Users," + self.base_dn).upper() + print(("<GUID=" + ldb.schema_format_value("objectGUID", ldaptestuser2_guid) + ">;<SID=" + ldb.schema_format_value("objectSid", ldaptestuser2_sid) + ">;CN=ldaptestuser2,CN=Users," + self.base_dn).upper()) self.assertTrue(("<GUID=" + ldb.schema_format_value("objectGUID", ldaptestuser2_guid) + ">;<SID=" + ldb.schema_format_value("objectSid", ldaptestuser2_sid) + ">;CN=ldaptestuser2,CN=Users," + self.base_dn).upper() in memberUP) |
