mode_clear

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearConstrainedDelegation

func ClearConstrainedDelegation(ldapHost string, ldapPort int, creds *credentials.Credentials, useLdaps bool, useKerberos bool, distinguishedName string, debug bool) error

ClearConstrainedDelegation clears a constrained delegation from a user or computer account.

Parameters:
	ldapHost (string): The LDAP host to connect to.
	ldapPort (int): The LDAP port to connect to.
	creds (*credentials.Credentials): The credentials to use for the LDAP connection.
	useLdaps (bool): Whether to use LDAPS for the LDAP connection.
	useKerberos (bool): Whether to use Kerberos for the LDAP connection.
	distinguishedName (string): The distinguished name of the user or computer account to clear the constrained delegation from.
	allowedToDelegateTo ([]string): The list of users or computers that the account is allowed to delegate to.
	debug (bool): A flag indicating whether to print debug information.

Returns:
	error: An error if the operation fails, nil otherwise.

func ClearConstrainedDelegationWithProtocolTransition

func ClearConstrainedDelegationWithProtocolTransition(ldapHost string, ldapPort int, creds *credentials.Credentials, useLdaps bool, useKerberos bool, distinguishedName string, debug bool) error

ClearConstrainedDelegationWithProtocolTransition clears a constrained delegation with protocol transition from a user or computer account.

Parameters:
	ldapHost (string): The LDAP host to connect to.
	ldapPort (int): The LDAP port to connect to.
	creds (*credentials.Credentials): The credentials to use for the LDAP connection.
	useLdaps (bool): Whether to use LDAPS for the LDAP connection.
	useKerberos (bool): Whether to use Kerberos for the LDAP connection.
	distinguishedName (string): The distinguished name of the user or computer account to clear the constrained delegation from.
	allowedToDelegateTo ([]string): The list of users or computers that the account is allowed to delegate to.
	debug (bool): A flag indicating whether to print debug information.

Returns:
	error: An error if the operation fails, nil otherwise.

func ClearRessourceBasedConstrainedDelegation

func ClearRessourceBasedConstrainedDelegation(ldapHost string, ldapPort int, creds *credentials.Credentials, useLdaps bool, useKerberos bool, distinguishedName string, debug bool) error

ClearRessourceBasedConstrainedDelegation removes a ressource based constrained delegation from a user or computer account.

Parameters:
	ldapHost (string): The LDAP host to connect to.
	ldapPort (int): The LDAP port to connect to.
	creds (*credentials.Credentials): The credentials to use for the LDAP connection.
	useLdaps (bool): Whether to use LDAPS for the LDAP connection.
	useKerberos (bool): Whether to use Kerberos for the LDAP connection.
	distinguishedName (string): The distinguished name of the user or computer account to remove the ressource based constrained delegation from.
	allowedToActOnBehalfOfAnotherIdentity ([]string): The list of users or computers that the account is allowed to delegate to.
	debug (bool): A flag indicating whether to print debug information.

Returns:
	error: An error if the operation fails, nil otherwise.

func ClearUnconstrainedDelegation

func ClearUnconstrainedDelegation(ldapHost string, ldapPort int, creds *credentials.Credentials, useLdaps bool, useKerberos bool, distinguishedName string, debug bool) error

ClearUnconstrainedDelegation removes an unconstrained delegation from a user or computer account.

Parameters:
	ldapHost (string): The LDAP host to connect to.
	ldapPort (int): The LDAP port to connect to.
	creds (*credentials.Credentials): The credentials to use for the LDAP connection.
	useLdaps (bool): Whether to use LDAPS for the LDAP connection.
	useKerberos (bool): Whether to use Kerberos for the LDAP connection.
	distinguishedName (string): The distinguished name of the user or computer account to clear the unconstrained delegation from.
	debug (bool): A flag indicating whether to print debug information.

Returns:
	error: An error if the operation fails, nil otherwise.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL