search for: isinstance

Displaying 20 results from an estimated 48 matches for "isinstance".

2019 Nov 14
2
samba-tool ldapcmp without --filter errors out.
...cmd/ldapcmp.py", line 781, in diff ??? if object1 == object2: ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 549, in __eq__ ??? return self.cmp_attrs(other) ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 590, in cmp_attrs ??? if isinstance(self.attributes[x], list) and isinstance(other.attributes[x], list): ? samba-tool ldapcmp --filter="cn,CN" ldap://dc1.fqdn ?ldap://dc2.fqdn ? * Comparing [DOMAIN] context... ? * Objects to be compared: 845 ? * Result for [DOMAIN]: SUCCESS ? * Comparing [CONFIGURATION] context... ? * Obje...
2018 Mar 12
1
[PATCH RHEL 7] RHEL 7: -o rhv-upload: Use Python 2 instead of Python
For interest only, here is the patch required to make -o rhv-upload work with Python 2 (for RHEL 7). I don't think we want this upstream. A couple of remarks: * It's supposed to be possible to add ‘coding: utf-8’ to the top of .py files to make Python 2 accept that the file is UTF-8 (otherwise it gives an error on loading). However I added this and it didn't appear to make any
2012 Apr 04
10
[PATCH 0 of 2] libxl: add libxl_domain_config_init
The following series implements libxl_domain_config_init as per the libxl API requirement that each type has an init function. The first function does this in an open coded manner and is proposed for Xen 4.2. The second function is RFC only since it moves the definition of this type into the IDL and makes the required infrastructure updates to enable this. I think this is more 4.3 material at
2017 Jun 21
2
question about llvmlite
​Hi all, I am using llvmlite for pyvex and I want the output of my code (which is written based on llvmlite) to be like pyvex. In pyvex, (https://github.com/angr/pyvex). Considering pyvex, I tried to implement the following statements in pyvex to llvmlite: for stmt in irsb.statements: if isinstance(stmt, pyvex.IRStmt.Store): print "ST%s(%s) = %s" % (self.endness[-2:].lower(), self.addr, self.data) (which gets the data in a register and store it in another register) I translate it in llvmlite as follows: from ctypes import CFUNCTYPE, c_intimport archinfoimport llvmlite.ir as ll...
2016 Feb 12
2
[PATCH] python: tests: use more targeted assert*() functions/checks
- use assertIsInstance, assertNotEqual, and assertIsNotNone as more specific checks (will produce better logging) - use assertRaises when expecting exceptions being thrown - when testing internal_test_rhashtable, instead of checking type and elements of the return values just check the return value as a whole (easi...
2010 Aug 27
3
[PATCH 0 of 3] libxl: cleanups for type destructor generation
Following series cleans up a few niggles in the libxl destructor autogeneration. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2019 Jul 25
2
Possible problems with AD Schema in Samba 4
...cmd/ldapcmp.py", line 781, in diff if object1 == object2: File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 549, in __eq__ return self.cmp_attrs(other) File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 590, in cmp_attrs if isinstance(self.attributes[x], list) and isinstance(other.attributes[x], list): ######################################## The Schema version of my Windows 2008 Server is 44 and I am using Samba 4.10.6-Debian: ldbsearch -H /var/lib/samba/private/sam.ldb -b 'cn=Schema,cn=Configuration,dc=empresa,dc=com,d...
2020 Jun 30
0
Trouble to keep replication in sync - W2008R2
...cmp.py", line 781, in diff ??? if object1 == object2: ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 549, in __eq__ ??? return self.cmp_attrs(other) ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 590, in cmp_attrs ??? if isinstance(self.attributes[x], list) and isinstance(other.attributes[x], list): root at araucaria:~# Any ideas? Thanks in advance. -- *Marcio Merlone*
2012 Nov 20
0
[PATCH 04 of 15] libxl: ocaml: fix code intended to output comments before definitions
...Nov 20 17:22:21 2012 +0000 @@ -79,12 +79,14 @@ def gen_ocaml_ml(ty, interface, indent=" s = ("""(* %s interface *)\n""" % ty.typename) else: s = ("""(* %s implementation *)\n""" % ty.typename) + if isinstance(ty, idl.Enumeration): - s = "type %s = \n" % ty.rawname + s += "type %s = \n" % ty.rawname for v in ty.values: s += "\t | %s\n" % v.rawname elif isinstance(ty, idl.Aggregate): - s = "" + s += ""...
2019 Jul 20
2
ARI libraries?
In article <301a2e78-d490-3805-e30f-41b668aac5c1 at sysnux.pf>, Jean-Denis Girard <jd.girard at sysnux.pf> wrote: > > Hi Tony, > > Le 20/07/2019 à 06:29, Tony Mountifield a écrit : > > Are there any other languages/libraries I should be considering? > > Same here, after years of AGI / AMI, I recently made my first project > using ARI on Asterisk-16. I love
2006 Mar 28
7
[PATCH] XML-RPC: Cope with large integers on x86-64 systems
Attached patch fixes a problem in marshaling large integers. It seems to only occur on systems with very large memory. However, on those systems, it''s a show-stopper. I see this as a temporary solution until we can sanitize the XML-RPC functions and get rid of all the S-Expression stuff. I''ll run xm-test tomorrow against it. Right now I''ve only done basic
2019 Jul 26
0
Possible problems with AD Schema in Samba 4
...diff > if object1 == object2: > File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 549, > in __eq__ > return self.cmp_attrs(other) > File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 590, > in cmp_attrs > if isinstance(self.attributes[x], list) and > isinstance(other.attributes[x], list): > > > ######################################## > > The Schema version of my Windows 2008 Server is 44 and I am using Samba > 4.10.6-Debian: > > ldbsearch -H /var/lib/samba/private/sam.ldb -b > '...
2024 Oct 27
2
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...o set user's LDAP passwords using LDAP. > >> > >> `samba-tool user setpassword` does so by setting the write-only > >> `unicodePwd` attribute, but turning it into binary and > >> Base64-encoding it first: > >> > >> ``` > >> if not isinstance(password, str): > >> pw = password.decode('utf-8') > >> else: > >> pw = password > >> pw = ('"' + pw + '"').encode('utf-16-le') > >> > >> setpw = """ > >> dn: %s > &gt...
2019 Jun 25
2
One DC cannot authenticate off of another DC
..., in diff? > ? ? if object1 == object2:? > ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 549, in __eq__? > ? ? return self.cmp_attrs(other)? > ? File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 590, in cmp_attrs? > ? ? if isinstance(self.attributes[x], list) and isinstance(other.attributes[x], list):? (And all of that SERVERREFERENCEBL stuff is probably unrelated. It's just very irritating, as it seems to be an attribute created during a DC promotion/domain join, but not during subsequent replications, and the ldapcmp al...
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
Hi, I'm tying to set user's LDAP passwords using LDAP. `samba-tool user setpassword` does so by setting the write-only `unicodePwd` attribute, but turning it into binary and Base64-encoding it first: ``` if not isinstance(password, str): pw = password.decode('utf-8') else: pw = password pw = ('"' + pw + '"').encode('utf-16-le') setpw = """ dn: %s changetype: modify replace: unicodePwd unicodePwd:: %s """ % (user_dn, base64.b64encode(p...
2019 Jun 26
0
One DC cannot authenticate off of another DC
...> > ? File > "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", > line 549, in __eq__? > > ? ? return self.cmp_attrs(other)? > > ? File > "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", > line 590, in cmp_attrs? > > ? ? if isinstance(self.attributes[x], list) and > isinstance(other.attributes[x], list):? > > > (And all of that SERVERREFERENCEBL stuff is probably > unrelated. It's just very irritating, as it seems to be an > attribute created during a DC promotion/domain join, but not > during subs...
2013 Mar 25
86
[PATCH 00/28] libxl: ocaml: improve the bindings
The following series of patches fill in most of the gaps in the OCaml bindings to libxl, to make them useful for clients such as xapi/xenopsd (from XCP). There are a number of bugfixes to the existing bindings as well. I have an experimental version of xenopsd that successfully uses the new bindings. An earlier version of the first half of the series was submitted to the last by Ian Campbell on
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...ists.samba.org> wrote: > Hi, > > I'm tying to set user's LDAP passwords using LDAP. > > `samba-tool user setpassword` does so by setting the write-only > `unicodePwd` attribute, but turning it into binary and > Base64-encoding it first: > > ``` > if not isinstance(password, str): > pw = password.decode('utf-8') > else: > pw = password > pw = ('"' + pw + '"').encode('utf-16-le') > > setpw = """ > dn: %s > changetype: modify > replace: unicodePwd > unicodePwd:: %s...
2020 Feb 25
0
Replication failing with Win 2012 R2 (maybe)
...cmd/ldapcmp.py", line 781, in diff if object1 == object2: File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 549, in __eq__ return self.cmp_attrs(other) File "/usr/lib/python3/dist-packages/samba/netcmd/ldapcmp.py", line 590, in cmp_attrs if isinstance(self.attributes[x], list) and isinstance(other.attributes[x], list): Command: (on cdcx15) sudo samba-tool drs replicate vdcw00 cdcx15 DC=MY,DC=ORGNAME,DC=TLD --sync-all --full-sync -d9 Error: drsuapi_DsReplicaSync: struct drsuapi_DsReplicaSync out: struct drsuapi_DsReplicaSync...
2024 Oct 27
1
How to set `unicodePwd`? "it's not allowed to set the NT hash password directly"
...>> >> I'm tying to set user's LDAP passwords using LDAP. >> >> `samba-tool user setpassword` does so by setting the write-only >> `unicodePwd` attribute, but turning it into binary and >> Base64-encoding it first: >> >> ``` >> if not isinstance(password, str): >> pw = password.decode('utf-8') >> else: >> pw = password >> pw = ('"' + pw + '"').encode('utf-16-le') >> >> setpw = """ >> dn: %s >> changetype: modify >> replac...