ldap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAllUsers

func FindAllUsers(baseDn string, extraArgs []string, excludedUsers []string) ([]string, error)

FindAllUsers finds all LDAP users using ldapsearch

func GeneratePasswordsCSV

func GeneratePasswordsCSV(baseDn, outputPath string, passwordLength uint, allowedChars string, extraArgs []string, excludedUsers []string) error

GeneratePasswordsCSV generates random passwords for all users and writes to a CSV file

func Run

func Run(cmd *cobra.Command)

func SetupCommand

func SetupCommand(cmd *cobra.Command)

Types

type Data

type Data struct {
	CsvRows [][]string
}

Jump to

Keyboard shortcuts

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