mode_remove

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveConstrainedDelegation

func RemoveConstrainedDelegation(ldapHost string, ldapPort int, creds *credentials.Credentials, useLdaps bool, useKerberos bool, distinguishedName string, allowedToDelegateTo []string, debug bool) error

RemoveConstrainedDelegation removes 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 remove 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 RemoveConstrainedDelegationWithProtocolTransition

func RemoveConstrainedDelegationWithProtocolTransition(ldapHost string, ldapPort int, creds *credentials.Credentials, useLdaps bool, useKerberos bool, distinguishedName string, allowedToDelegateTo []string, debug bool) error

RemoveConstrainedDelegationWithProtocolTransition removes 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 remove 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 RemoveProtocolTransition

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

RemoveProtocolTransition removes the 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 remove the protocol transition from.
	debug (bool): A flag indicating whether to print debug information.

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

func RemoveRessourceBasedConstrainedDelegation

func RemoveRessourceBasedConstrainedDelegation(ldapHost string, ldapPort int, creds *credentials.Credentials, useLdaps bool, useKerberos bool, distinguishedName string, allowedToActOnBehalfOfAnotherIdentity []string, debug bool) error

RemoveRessourceBasedConstrainedDelegation 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 RemoveUnconstrainedDelegation

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

RemoveUnconstrainedDelegation 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 remove 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