mode_add

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConstrainedDelegation

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

AddConstrainedDelegation adds a constrained delegation to 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 add the constrained delegation to.
	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 AddConstrainedDelegationWithProtocolTransition

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

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 add the constrained delegation with protocol transition to.
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 AddProtocolTransition

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

AddProtocolTransition adds a protocol transition to 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 add the protocol transition to.
	debug (bool): A flag indicating whether to print debug information.

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

func AddRessourceBasedConstrainedDelegation

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

AddRessourceBasedConstrainedDelegation adds a ressource based constrained delegation to 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 add the ressource based constrained delegation to.
	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 AddUnconstrainedDelegation

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

AddUnconstrainedDelegation adds an unconstrained delegation to 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 add the unconstrained delegation to.
	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