Skip to content

Commit

Permalink
adding microsoft fastbind control
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePirateWhoSmellsOfSunflowers committed Jul 11, 2024
1 parent 86a9e7a commit 2b7dc69
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ldap3/extend/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from .microsoft.addMembersToGroups import ad_add_members_to_groups
from .microsoft.removeMembersFromGroups import ad_remove_members_from_groups
from .microsoft.persistentSearch import ADPersistentSearch
from .microsoft.fastBind import FastBind
from .novell.partition_entry_count import PartitionEntryCount
from .novell.replicaInfo import ReplicaInfo
from .novell.listReplicas import ListReplicas
Expand Down Expand Up @@ -285,6 +286,9 @@ def dir_sync(self,
max_length=max_length,
hex_guid=hex_guid)

def fast_bind(self, controls=None):
return FastBind(self._connection, controls).send()

def modify_password(self, user, new_password, old_password=None, controls=None):
return ad_modify_password(self._connection,
user,
Expand Down
7 changes: 7 additions & 0 deletions ldap3/extend/microsoft/fastBind.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
"""
from ...extend.operation import ExtendedOperation

class FastBind(ExtendedOperation):
def config(self):
self.request_name = '1.2.840.113556.1.4.1781'

0 comments on commit 2b7dc69

Please sign in to comment.