Documentation
¶
Overview ¶
Package ldap implements LDAP ingestion functionality for Active Directory queries and data collection.
Index ¶
- Variables
- func BytesToGUID(b []byte) string
- func ConvertGUID(portion string) string
- func ConvertSID(hexSID string) (SID string)
- func DistinguishedNameToDomain(dn string) string
- func EncodeGUID(guid string) (string, error)
- func EndianConvert(sd string) (newSD string)
- func FormatTime1(whenCreatedStr string) int64
- func FormatTime2(fileTimeStr string) int64
- func GetWellKnownSIDsData() map[string]WksDesc
- func HexToDecimalString(hex string) (decimal string)
- func PagedSearchWorker(ctx context.Context, conn *ldap.Conn, job QueryJob, ...)
- type LDAPEntry
- func (l *LDAPEntry) GetAttrRawVal(attrName string, defValue []byte) []byte
- func (l *LDAPEntry) GetAttrRawVals(attrName string, defValue [][]byte) [][]byte
- func (l *LDAPEntry) GetAttrVal(attrName string, defValue string) string
- func (l *LDAPEntry) GetAttrVals(attrName string, defValue []string) []string
- func (l *LDAPEntry) GetDomainFromDN() string
- func (l *LDAPEntry) GetDomainSID() (string, error)
- func (l *LDAPEntry) GetGUID() string
- func (l *LDAPEntry) GetParentDN() string
- func (l *LDAPEntry) GetSID() string
- func (l *LDAPEntry) GetUAC() int64
- func (l *LDAPEntry) HasLAPS() bool
- func (l *LDAPEntry) Init(e *ldap.Entry)
- func (l *LDAPEntry) IsDC() bool
- type ProgressUpdate
- type QueryJob
- type WksDesc
Constants ¶
This section is empty.
Variables ¶
View Source
var FUNCTIONAL_LEVELS = map[string]string{
"0": "2000 Mixed/Native",
"1": "2003 Interim",
"2": "2003",
"3": "2008",
"4": "2008 R2",
"5": "2012",
"6": "2012 R2",
"7": "2016",
}
View Source
var OBJECT_TYPE_GUID_MAP = map[string]string{
"user": "bf967aba-0de6-11d0-a285-00aa003049e2",
"computer": "bf967a86-0de6-11d0-a285-00aa003049e2",
"container": "bf967a8b-0de6-11d0-a285-00aa003049e2",
"domain": "19195a5a-6da0-11d0-afd3-00c04fd930c9",
"group": "bf967a9c-0de6-11d0-a285-00aa003049e2",
"organizational-unit": "bf967aa5-0de6-11d0-a285-00aa003049e2",
"group-policy-container": "f30e3bc2-9ff0-11d1-b603-0000f80367c1",
"pki-enrollment-service": "ee4aa692-3bba-11d2-90cc-00c04fd91ab1",
"pki-certificate-template": "e5209ca2-3bba-11d2-90cc-00c04fd91ab1",
"certification-authority": "3fdfee50-47f4-11d1-a9c3-0000f80367c1",
"ms-pki-enterprise-oid": "37cfd85c-6719-4ad8-8f9e-8678ba627563",
}
View Source
var WELLKNOWN_SIDS = GetWellKnownSIDsData()
Functions ¶
func BytesToGUID ¶
func ConvertGUID ¶
func ConvertSID ¶
func EncodeGUID ¶
func EndianConvert ¶
func FormatTime1 ¶ added in v0.2.0
Converts time in format 20060102150405.0Z into Unix epoch seconds.
func FormatTime2 ¶ added in v0.2.0
Converts a Windows FILETIME to Unix epoch seconds.
func GetWellKnownSIDsData ¶
GetWellKnownSIDsData returns the map of well-known SIDs
func HexToDecimalString ¶
Types ¶
type LDAPEntry ¶
type LDAPEntry struct {
DN string
Attributes map[string][]string
RawAttributes map[string][][]byte
}
func (*LDAPEntry) GetAttrRawVal ¶
func (*LDAPEntry) GetAttrRawVals ¶
Raw
func (*LDAPEntry) GetAttrVal ¶
func (*LDAPEntry) GetAttrVals ¶
Normal
func (*LDAPEntry) GetDomainFromDN ¶
func (*LDAPEntry) GetDomainSID ¶
func (*LDAPEntry) GetParentDN ¶
type ProgressUpdate ¶
Click to show internal directories.
Click to hide internal directories.