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

LDAP Operation failed: noSuchObject #44

Open
Dreikana opened this issue Nov 27, 2024 · 2 comments
Open

LDAP Operation failed: noSuchObject #44

Dreikana opened this issue Nov 27, 2024 · 2 comments

Comments

@Dreikana
Copy link

Hey! This is the error when I try to add a new DNS entry using dnstool.py

python3 dnstool.py -u domain.com\\user -p 'password' -r test.domain.com -a add -d 10.10.1.15 ldap://10.10.1.1

[-] Connecting to host...
[-] Binding to host
[+] Bind OK
[-] Adding new record
[!] LDAP operation failed. Message returned from server: noSuchObject [REDACTED]: NameErr: DSID-0310028C, problem 2001 (NO_OBJECT), data 0, best match of:
        'DC=domain,DC=com'

I tried using ldaps, combining with flags such as -port, -force-ssl and I tested against many DCs (one of them 10.10.1.1)

Any idea whats going on??

@dirkjanm
Copy link
Owner

It might be that the DNS zone is a forest or legacy zone, which you can query with --print-zones. Alternatively it could be that this DNS zone is not AD integrated/managed.

@Dreikana
Copy link
Author

Thats the output using the flag --print-zones

python3 dnstool.py -u domain.com\\user -p 'password' --print-zones 10.10.1.1
[-] Connecting to host...
[-] Binding to host
[+] Bind OK

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