Displaying 18 results from an estimated 18 matches for "__eq__".
Did you mean:
_____
2004 Aug 21
1
Required Python version?
...ound this:
On Mon, Jun 23, 2003 at 03:07:12PM +0100, James Aylett wrote:
> [R]eally we should be testing which version of Python we're compiling
> against ... pre-2.0 definitely won't work because the internal C API
> changed, and I suspect we may rely on 2.1 features in some way (__eq__
> vs. __cmp__ comes to mind).
Currently the configure test checks for Python 1.5 or newer (because
SWIG requires at least that). Should this be changed to 2.0 or 2.1
or what?
Cheers,
Olly
2019 Nov 14
2
samba-tool ldapcmp without --filter errors out.
...b/python3/dist-packages/samba/netcmd/ldapcmp.py", line 957, in run
??? if b1.diff(b2):
? File "/usr/lib/python3/dist-packages/samba/netcmd/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...
2015 Sep 01
2
ldapcmp issue
...st-packages/samba/netcmd/__init__.py", line
175, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
983, in run
if b1 == b2:
File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
774, in __eq__
outf=self.outf, errf=self.errf)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
396, in __init__
self.attributes = self.con.get_attributes(self.dn)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
207, in get_attributes...
2009 Oct 12
0
What is the correct way to define __hash__?
...)
>
> ?# Coincidentally, the _key() method can usually be reused for comparisons.
> ?# I recommend doing this for the equality comparisons, at least, when you
> can
> ?# because of the requirement that two items that compare equal must have
> the
> ?# same hash value.
> ?def __eq__(self, other):
> ? ?return self._key() == other._key()
>
> ?def __ne__(self, other):
> ? ?return not (self == other)
>
> ?...
Do I need to define other 4 comparison operators besides __eq__ and __ne__?
2008 May 08
1
problem with yumdownload?
...priority protections
Traceback (most recent call last):
File "/usr/bin/yumdownloader", line 191, in ?
main()
File "/usr/bin/yumdownloader", line 159, in main
if not pkg in toDownload:
File "/usr/lib/python2.4/site-packages/yum/packages.py", line 191, in
__eq__
if other == None:
File "/usr/lib/python2.4/site-packages/yum/transactioninfo.py", line
403, in __cmp__
if self.name > other.name:
AttributeError: 'NoneType' object has no attribute 'name'
[root at pig home]#
um... this a bug?
2015 Sep 03
0
ldapcmp issue
...ot;, line
> 175, in _run
> return self.run(*args, **kwargs)
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
> 983, in run
> if b1 == b2:
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
> 774, in __eq__
> outf=self.outf, errf=self.errf)
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
> 396, in __init__
> self.attributes = self.con.get_attributes(self.dn)
> File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", lin...
2019 Jul 25
2
Possible problems with AD Schema in Samba 4
...b/python3/dist-packages/samba/netcmd/ldapcmp.py", line 957,
in run
if b1.diff(b2):
File "/usr/lib/python3/dist-packages/samba/netcmd/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...
2015 Sep 03
2
ldapcmp issue
...run
>> return self.run(*args, **kwargs)
>> File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
>> 983, in run
>> if b1 == b2:
>> File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
>> 774, in __eq__
>> outf=self.outf, errf=self.errf)
>> File "/usr/lib/python2.7/dist-packages/samba/netcmd/ldapcmp.py", line
>> 396, in __init__
>> self.attributes = self.con.get_attributes(self.dn)
>> File "/usr/lib/python2.7/dist-packages/samba/netcmd/l...
2020 Jun 30
0
Trouble to keep replication in sync - W2008R2
...n3/dist-packages/samba/netcmd/ldapcmp.py", line
957, in run
??? if b1.diff(b2):
? File "/usr/lib/python3/dist-packages/samba/netcmd/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):
root at araucaria:~#
Any ideas? Thanks in advance.
--
*Marcio Merlone*
2019 Jul 26
0
Possible problems with AD Schema in Samba 4
...d/ldapcmp.py", line 957,
> in run
> if b1.diff(b2):
> File "/usr/lib/python3/dist-packages/samba/netcmd/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):
>
>
> ########################################...
2019 Jun 25
2
One DC cannot authenticate off of another DC
...samba/netcmd/ldapcmp.py", line 957, in run?
> ? ? if b1.diff(b2):?
> ? File "/usr/lib/python3/dist-packages/samba/netcmd/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):?
(And all of that SERVERREFERENCEBL stuff is probably unrelat...
2019 Jun 26
0
One DC cannot authenticate off of another DC
...run?
> > ? ? if b1.diff(b2):?
> > ? File
> "/usr/lib/python3/dist-packages/samba/netcmd/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):?
>
>
> (And all of...
2020 Feb 25
0
Replication failing with Win 2012 R2 (maybe)
...b/python3/dist-packages/samba/netcmd/ldapcmp.py", line 957, in run
if b1.diff(b2):
File "/usr/lib/python3/dist-packages/samba/netcmd/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=ORG...
2019 Jun 26
4
One DC cannot authenticate off of another DC
...?
> > ? ? if b1.diff(b2):??
> > ? File?
> "/usr/lib/python3/dist-packages/samba/netcmd/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):??
>?
>?
> (And all...
2016 Aug 29
6
Samba4 Centos 7 - CPU 100%
im not at a computer ti look some things up but im thinking..
dbdir=/usr/local/samba.PDC/dbdirwhat is the size of this dir.
what is the size of the ad db dir on every server now.
i think, something in the old db import causes a resyncwhen you modify something in the db
so i suggest try monitoring, disk io and cpu, look for buzzy files.
if we know the files, we know the processes using it.
2019 Jun 26
0
Samba 4.10 member: SMB login no longer working
...?
> > ? ? if b1.diff(b2):??
> > ? File?
> "/usr/lib/python3/dist-packages/samba/netcmd/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):??
>?
>?
> (And all...
2019 Jun 26
4
Samba 4.10 member: SMB login no longer working
Hai,
And Omg... Your right, its my fault. :-/
I didnt say to you, you needed make the changes, to change what Rowland showed.
Im really sorry.. ;-) when im in austria i'll buy you a beer.
Or if you want teach you snowboarding.. I have an other guy in austria that cant ski/board.
Im going to teach him also. .. So funny a dutch guy teaching to austria guys.. :-)
And how is it running
2019 Jun 21
1
DLZ Backend DNS Hosed
Louis,
I appreciate your efforts with my predicament. I'm very sorry to say that your advice hasn't gotten me to a solution. After updating my /etc/network/interfaces to put my localhost IP address first (192.168.3.201, for example), saving, restarting services, rebooting, running "samba_upgradedns --dns-backend=BIND9_DLZ", saving, rebooting, etc., I still cannot add, edit or