-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Gain FullControl on arbitrary objects trough ldapshell #1927
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
Conversation
6be36a2
to
35a087b
Compare
Hello @dadevel, This command is pretty much similar to the I think it's better to allow passing a search filter in the |
Yes, sounds good. I will update the PR in the next days. |
6e9f6df
to
ec88ef5
Compare
Hi @gabrielg5, I updated the PR.
|
Hey @dadevel thanks! Been testing it a bit and found a couple use cases that perhaps we could enhance. I tried these: Target as ldap filter
We could support setting the target both as a Target matching multiple objects
Leveraging ability to set the target as an ldap filter, we could allow grating control over multiple objects... |
Hi, I'll implement the first idea, but I'm unsure about the second. It could easily lead to unintended/surprising changes. |
ec88ef5
to
a1ee9f0
Compare
Target as LDAP filter is implemented.
|
Hi, thanks! yeah, related to second bullet agree with you! Thinking better may lead to unwanted scenarios... Last tiny detail and merging... if Thank you! |
a1ee9f0
to
e282de3
Compare
Hi, I improved the error handling now. |
Thank you! |
Thank you! :) |
This PR implements a new command in
ldap_shell.py
calledgain_fullcontrol
.It appends a FullControl ACE to the security desriptor of an arbitrary LDAP object.
This target object is specified by a search filter and an optional search base.
In the example below the user
jdoe
is granted full control over a certificate template and a computer account.