[python-ldap] looking for example of using ManageDSA control
Ondřej Kuzník
ondra at mistotebe.net
Tue Mar 15 07:21:55 EDT 2022
On Tue, Mar 15, 2022 at 05:05:09AM +0000, Christopher Paul wrote:
> Hello python-ldap users,
>
> I am wondering if anyone could show an example of an ldap search using
> python-ldap with the manage DSA IT control. I'm missing something from
> reading the docs. I'm just not sure what to put after "serverctls=".
Hi Chris,
as mentioned in the documentation[0], you pass a list of control
instances in serverctrls. Something like this:
manage_control = ldap.controls.simple.ManageDSAITControl(criticality)
search_ext_s(..., serverctrls=[manage_control])
[0]. https://www.python-ldap.org/en/python-ldap-3.3.0/reference/ldap.html#arguments-for-ldapv3-controls
Regards,
> _______________________________________________
> python-ldap mailing list
> python-ldap at python.org
> https://mail.python.org/mailman/listinfo/python-ldap
More information about the python-ldap
mailing list