Documentation
¶
Index ¶
- func WithClient(ctx server.Cmd, fn func(*ldap.Client, string) error) error
- type AttrCommands
- type AttrListCommand
- type BindObjectCommand
- type ClassCommands
- type ClassListCommand
- type CmdTokenStore
- type CreateObjectCommand
- type DeleteObjectCommand
- type GetObjectCommand
- type GroupAddUsersCommand
- type GroupCommands
- type GroupCreateCommand
- type GroupDeleteCommand
- type GroupGetCommand
- type GroupListCommand
- type GroupRemoveUsersCommand
- type GroupUpdateCommand
- type LDAPCommands
- type ListObjectsCommand
- type ObjectCommands
- type PasswordObjectCommand
- type UpdateObjectCommand
- type UserCommands
- type UserCreateCommand
- type UserDeleteCommand
- type UserGetCommand
- type UserListCommand
- type UserUpdateCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttrCommands ¶
type AttrCommands struct {
Attr AttrListCommand `cmd:"" name:"attr" help:"List Attribute Types." group:"LDAP OBJECT SCHEMA"`
}
type AttrListCommand ¶
type AttrListCommand schema.AttributeTypeListRequest
type BindObjectCommand ¶
type ClassCommands ¶
type ClassCommands struct {
Class ClassListCommand `cmd:"" name:"class" help:"List Object Classes." group:"LDAP OBJECT SCHEMA"`
}
type ClassListCommand ¶
type ClassListCommand schema.ObjectClassListRequest
type CmdTokenStore ¶
type CmdTokenStore struct {
// contains filtered or unexported fields
}
func NewCmdTokenStore ¶
func NewCmdTokenStore(ctx server.Cmd) *CmdTokenStore
func (*CmdTokenStore) StoreToken ¶
func (s *CmdTokenStore) StoreToken(endpoint, issuer string, token *oauth2.Token) error
type CreateObjectCommand ¶
type DeleteObjectCommand ¶
type DeleteObjectCommand struct {
GetObjectCommand
}
type GetObjectCommand ¶
type GetObjectCommand struct {
DN string `arg:"" name:"dn" help:"Object distinguished name"`
}
type GroupAddUsersCommand ¶
type GroupCommands ¶
type GroupCommands struct {
Group GroupListCommand `cmd:"" name:"groups" help:"List groups." group:"LDAP USERS & GROUPS"`
Get GroupGetCommand `cmd:"" name:"group" help:"Get group." group:"LDAP USERS & GROUPS"`
Delete GroupDeleteCommand `cmd:"" name:"group-delete" help:"Delete group." group:"LDAP USERS & GROUPS"`
Create GroupCreateCommand `cmd:"" name:"group-create" help:"Create group." group:"LDAP USERS & GROUPS"`
Update GroupUpdateCommand `cmd:"" name:"group-update" help:"Update group." group:"LDAP USERS & GROUPS"`
AddUsers GroupAddUsersCommand `cmd:"" name:"group-add-users" help:"Add users to group." group:"LDAP USERS & GROUPS"`
RemoveUsers GroupRemoveUsersCommand `cmd:"" name:"group-remove-users" help:"Remove users from group." group:"LDAP USERS & GROUPS"`
}
type GroupCreateCommand ¶
type GroupDeleteCommand ¶
type GroupDeleteCommand struct {
CN string `arg:"" name:"cn" help:"Group common name"`
}
type GroupGetCommand ¶
type GroupGetCommand struct {
CN string `arg:"" name:"cn" help:"Group common name"`
}
type GroupListCommand ¶
type GroupListCommand schema.ObjectListRequest
type GroupRemoveUsersCommand ¶
type GroupUpdateCommand ¶
type LDAPCommands ¶
type LDAPCommands struct {
UserCommands
GroupCommands
ObjectCommands
ClassCommands
AttrCommands
}
type ListObjectsCommand ¶
type ListObjectsCommand struct {
schema.ObjectListRequest
}
type ObjectCommands ¶
type ObjectCommands struct {
Objects ListObjectsCommand `cmd:"" name:"objects" help:"List Objects." group:"LDAP OBJECTS"`
Object GetObjectCommand `cmd:"" name:"object" help:"Get Object." group:"LDAP OBJECTS"`
Create CreateObjectCommand `cmd:"" name:"object-create" help:"Create Object." group:"LDAP OBJECTS"`
Update UpdateObjectCommand `cmd:"" name:"object-update" help:"Update Object." group:"LDAP OBJECTS"`
Delete DeleteObjectCommand `cmd:"" name:"object-delete" help:"Delete Object." group:"LDAP OBJECTS"`
Bind BindObjectCommand `cmd:"" name:"object-bind" help:"Bind Object." group:"LDAP OBJECTS"`
Passwd PasswordObjectCommand `cmd:"" name:"object-password" help:"Change Object Password." group:"LDAP OBJECTS"`
}
type PasswordObjectCommand ¶
type UpdateObjectCommand ¶
type UserCommands ¶
type UserCommands struct {
Users UserListCommand `cmd:"" name:"users" help:"List users." group:"LDAP USERS & GROUPS"`
User UserGetCommand `cmd:"" name:"user" help:"Get user." group:"LDAP USERS & GROUPS"`
Delete UserDeleteCommand `cmd:"" name:"user-delete" help:"Delete user." group:"LDAP USERS & GROUPS"`
Create UserCreateCommand `cmd:"" name:"user-create" help:"Create user." group:"LDAP USERS & GROUPS"`
Update UserUpdateCommand `cmd:"" name:"user-update" help:"Update user." group:"LDAP USERS & GROUPS"`
}
type UserCreateCommand ¶
type UserDeleteCommand ¶
type UserDeleteCommand struct {
CN string `arg:"" name:"cn" help:"User name"`
}
type UserGetCommand ¶
type UserGetCommand struct {
CN string `arg:"" name:"cn" help:"User name"`
}
type UserListCommand ¶
type UserListCommand schema.ObjectListRequest
type UserUpdateCommand ¶
Click to show internal directories.
Click to hide internal directories.