diff options
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/samba/common.py b/python/samba/common.py index e47f276f81..c2a3584732 100644 --- a/python/samba/common.py +++ b/python/samba/common.py @@ -81,7 +81,7 @@ class dsdb_Dn(object): raise RuntimeError("Invalid DN %s" % dnstring) prefix_len = 4 + len(colons[1]) + int(colons[1]) self.prefix = dnstring[0:prefix_len] - self.binary = self.prefix[4:-1] + self.binary = self.prefix[3+len(colons[1]):-1] self.dnstring = dnstring[prefix_len:] else: self.dnstring = dnstring |