Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"argument of type 'NoneType' is not iterable" for enabled templates #30

Closed
frisch-raphael opened this issue Feb 22, 2022 · 4 comments
Closed

Comments

@frisch-raphael
Copy link

Hi,

First of all, thanks for your awesome tool.
I'm trying to use it but I get the following error. Any idea on what could be going wrong ?

└─# 
Certipy v2.0.5 - by Oliver Lyak (ly4k)

[*] Finding certificate templates
[+] Authenticating to LDAP server
[+] Authenticating to LDAP server
[+] Bound to ldaps://192.168.x.x - ssl
[+] Default path: DC=domain,DC=local
[+] Configuration path: CN=Configuration,DC=domain,DC=local
[*] Found 33 certificate templates
[*] Finding certificate authorities
[*] Found 2 certificate authorities
[-] Got error: argument of type 'NoneType' is not iterable
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/Certipy-2.0.5-py3.9.egg/certipy/entry.py", line 62, in main
    actions[options.action](options)
  File "/usr/local/lib/python3.9/dist-packages/Certipy-2.0.5-py3.9.egg/certipy/find.py", line 734, in entry
    find.find()
  File "/usr/local/lib/python3.9/dist-packages/Certipy-2.0.5-py3.9.egg/certipy/find.py", line 145, in find
    if template.get("name") in templates:
TypeError: argument of type 'NoneType' is not iterable
@ly4k
Copy link
Owner

ly4k commented Feb 22, 2022

Thank you for reporting this. Looking into it! :)

@ly4k
Copy link
Owner

ly4k commented Feb 22, 2022

It happens because the CA has no certificate templates enabled. Should be fixed in 2.0.6. Can you please verify?

@frisch-raphael
Copy link
Author

Awesome, it works.
Quite impressed by your response time tbh, big kudos to you :-)

@ly4k
Copy link
Owner

ly4k commented Feb 22, 2022

Great, and thanks! :)

@ly4k ly4k closed this as completed Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants