Documentation
¶
Index ¶
- Constants
- Variables
- func FormatTimeStamp(timestamp *time.Time) string
- func JSONPrintGroups(groups []Group)
- func JSONPrintGroupsWithMembers(groups []GroupWithMembers)
- func LimitedWidthString(s string, maxLength int) string
- func PrettyPrintGroups(groups []Group)
- func PrettyPrintGroupsWithMembers(groups []GroupWithMembers)
- type BasicLDAPAttributes
- type Group
- type GroupWithMembers
- type User
Constants ¶
View Source
const (
KITLDAPTimestampLayout = "20060102150405Z" // RFC 4517 format
)
View Source
const (
PADDING = 3
)
Variables ¶
View Source
var (
TermWidth int
)
Functions ¶
func JSONPrintGroupsWithMembers ¶
func JSONPrintGroupsWithMembers(groups []GroupWithMembers)
func PrettyPrintGroupsWithMembers ¶
func PrettyPrintGroupsWithMembers(groups []GroupWithMembers)
Types ¶
type BasicLDAPAttributes ¶
type BasicLDAPAttributes struct {
ObjectClass []string `json:"-" cbor:"keyasint,omitempty,omitzero"`
CreateTimestamp *time.Time `json:"-"`
ModifyTimestamp *time.Time `json:"modifyTimestamp,omitempty"`
DN string `json:"dn,omitempty"`
CN string `json:"cn,omitempty"`
}
func (*BasicLDAPAttributes) ParseBasicLDAPAttributes ¶
func (result *BasicLDAPAttributes) ParseBasicLDAPAttributes(entry *ldap.Entry) error
type Group ¶
type Group struct {
BasicLDAPAttributes
Description string `json:"description,omitempty"`
MemberUIDs []string `json:"memberUid,omitempty"`
}
type GroupWithMembers ¶
Source Files
¶
- constants.go
- ldap-basic-attr.go
- ldap-group.go
- ldap-user.go
Click to show internal directories.
Click to hide internal directories.