MCPcopy Create free account
hub / github.com/XiaoliChan/LDAPShell / do_help

Method do_help

utils/ldap_shell.py:625–645  ·  view source on GitHub ↗
(self, line)

Source from the content-addressed store, hash-verified

623 return True
624
625 def do_help(self, line):
626 print("""
627 add_computer computer [password] [nospns] - Adds a new computer to the domain with the specified password. If nospns is specified, computer will be created with only a single necessary HOST SPN. Requires LDAPS.
628 rename_computer current_name new_name - Sets the SAMAccountName attribute on a computer object to a new value.
629 add_user new_user [parent] - Creates a new user.
630 add_user_to_group user group - Adds a user to a group.
631 change_password user [password] - Attempt to change a given user's password. Requires LDAPS.
632 clear_rbcd target - Clear the resource based constrained delegation configuration information.
633 disable_account user - Disable the user's account.
634 enable_account user - Enable the user's account.
635 dump - Dumps the domain.
636 search query [attributes,] - Search users and groups by name, distinguishedName and sAMAccountName.
637 get_user_groups user - Retrieves all groups this user is a member of.
638 get_group_users group - Retrieves all members of a group.
639 get_laps_password computer - Retrieves the LAPS passwords associated with a given computer (sAMAccountName).
640 grant_control target grantee - Grant full control of a given target object (sAMAccountName) to the grantee (sAMAccountName).
641 set_dontreqpreauth user true/false - Set the don't require pre-authentication flag to true or false.
642 set_rbcd target grantee - Grant the grantee (sAMAccountName) the ability to perform RBCD to the target (sAMAccountName).
643 start_tls - Send a StartTLS command to upgrade from LDAP to LDAPS. Use this to bypass channel binding for operations necessitating an encrypted channel.
644 write_gpo_dacl user gpoSID - Write a full control ACE to the gpo for the given user. The gpoSID must be entered surrounding by {}.
645 exit - Terminates this session.""")
646
647 def do_EOF(self, line):
648 print('Bye!\n')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected