Comments (5)
Getting the same issue... my version of ldap3 is 2.5.1.
from ldapdomaindump.
Running it with python3 gives me:
[] Connecting as anonymous user, dumping will probably fail. Consider specifying a username/password to login with
[] Connecting to host...
[] Binding to host
[+] Bind OK
[] Starting domain dump
Traceback (most recent call last):
File "/usr/bin/ldapdomaindump", line 3, in
ldapdomaindump.main()
File "/usr/local/lib/python3.7/dist-packages/ldapdomaindump/init.py", line 922, in main
dd.domainDump()
File "/usr/local/lib/python3.7/dist-packages/ldapdomaindump/init.py", line 417, in domainDump
rw.generatePolicyReport(self)
File "/usr/local/lib/python3.7/dist-packages/ldapdomaindump/init.py", line 805, in generatePolicyReport
html = self.generateHtmlTable(dd.policy, self.policyattributes, 'Domain policy')
File "/usr/local/lib/python3.7/dist-packages/ldapdomaindump/init.py", line 503, in generateHtmlTable
of.append('%s' % self.formatAttribute(li[att], liIsGroup))
File "/usr/local/lib/python3.7/dist-packages/ldapdomaindump/init.py", line 616, in formatAttribute
return '%.1f minutes' % self.nsToMinutes(att.value)
File "/usr/local/lib/python3.7/dist-packages/ldapdomaindump/init.py", line 452, in nsToMinutes
return abs(length) * .0000001 / 60
TypeError: bad operand type for abs(): 'str'
from ldapdomaindump.
Traceback (most recent call last):
File "/bin/ldapdomaindump", line 3, in
ldapdomaindump.main()
File "/usr/lib/python3.8/site-packages/ldapdomaindump/init.py", line 944, in main
dd.domainDump()
File "/usr/lib/python3.8/site-packages/ldapdomaindump/init.py", line 425, in domainDump
rw.generatePolicyReport(self)
File "/usr/lib/python3.8/site-packages/ldapdomaindump/init.py", line 827, in generatePolicyReport
html = self.generateHtmlTable(dd.policy, self.policyattributes, 'Domain policy')
File "/usr/lib/python3.8/site-packages/ldapdomaindump/init.py", line 519, in generateHtmlTable
of.append('%s' % self.formatAttribute(li[att], liIsGroup))
File "/usr/lib/python3.8/site-packages/ldapdomaindump/init.py", line 635, in formatAttribute
return '%.1f minutes' % self.nsToMinutes(att.value)
File "/usr/lib/python3.8/site-packages/ldapdomaindump/init.py", line 468, in nsToMinutes
return abs(length) * .0000001 / 60
TypeError: bad operand type for abs(): 'str'
from ldapdomaindump.
I'm getting the same error.
ValueError: invalid literal for int() with base 10: '0:30:00'
Traceback (most recent call last):
File "/usr/local/bin/ldapdomaindump", line 4, in
import('pkg_resources').run_script('ldapdomaindump==0.9.3', 'ldapdomaindump')
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 666, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources/init.py", line 1462, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/ldapdomaindump-0.9.3-py2.7.egg/EGG-INFO/scripts/ldapdomaindump", line 3, in
ldapdomaindump.main()
File "/usr/local/lib/python2.7/dist-packages/ldapdomaindump-0.9.3-py2.7.egg/ldapdomaindump/init.py", line 944, in main
dd.domainDump()
File "/usr/local/lib/python2.7/dist-packages/ldapdomaindump-0.9.3-py2.7.egg/ldapdomaindump/init.py", line 425, in domainDump
rw.generatePolicyReport(self)
File "/usr/local/lib/python2.7/dist-packages/ldapdomaindump-0.9.3-py2.7.egg/ldapdomaindump/init.py", line 833, in generatePolicyReport
grepout = self.generateGrepList(dd.policy, self.policyattributes)
File "/usr/local/lib/python2.7/dist-packages/ldapdomaindump-0.9.3-py2.7.egg/ldapdomaindump/init.py", line 732, in generateGrepList
eo.append(self.formatGrepAttribute(entry[attr]) or '')
File "/usr/local/lib/python2.7/dist-packages/ldapdomaindump-0.9.3-py2.7.egg/ldapdomaindump/init.py", line 721, in formatGrepAttribute
return '%.1f minutes' % self.nsToMinutes(att.value)
File "/usr/local/lib/python2.7/dist-packages/ldapdomaindump-0.9.3-py2.7.egg/ldapdomaindump/init.py", line 468, in nsToMinutes
return abs(int(length)) * .0000001 / 60
ValueError: invalid literal for int() with base 10: '0:30:00'
from ldapdomaindump.
This is fixed in the latest version. As far as I could see it was only occurring on python 2.x
from ldapdomaindump.
Related Issues (20)
- TypeError: a bytes-like object is required, not 'str' HOT 2
- Requests domain even when domain is specified HOT 2
- Error installing from source HOT 1
- Deprecation warning due to invalid escape sequences HOT 1
- UnicodeDecodeError HOT 1
- MemoryError During handling of the above exception, another exception occurred: HOT 1
- I read your post https://dirkjanm.io/active-directory-forest-trusts-part-one-how-does-sid-filtering-work/, and here is some questions I want to ask HOT 1
- TypeError: Missing required parameter 'digestmod' HOT 2
- [EXCEPTION] Tool throw exception while dumping HOT 3
- Output formatter error HOT 1
- Dependencies in readme.md incorrect.
- How to use with Davmail? HOT 1
- AttributeError: 'list' object has no attribute 'replace' HOT 2
- TypeError: bad operand type for abs(): 'str'
- Dependency on future
- Error when running ldapdomaindump HOT 6
- Simple Authentication Error with UID username HOT 1
- Generating HTML Replace Issue and No HTML
- gid = int(group.objectSid.value.split('-')[-1]) TypeError: a bytes-like object is required, not 'str' HOT 2
- No support for LDAP Channel Binding. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ldapdomaindump.