Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Ctl Global instance of the LDAP controller Ctl = NewController() )
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Ping test the ldap config Ping(ctx context.Context, cfg models.LdapConf) (bool, error) // SearchUser search ldap user with name SearchUser(ctx context.Context, username string) ([]model.User, error) // ImportUser import ldap users to harbor ImportUser(ctx context.Context, importUsers []string) ([]model.FailedImportUser, error) // SearchGroup search ldap group by name or by dn SearchGroup(ctx context.Context, groupName, groupDN string) ([]model.Group, error) // Create ldap session with system config Session(ctx context.Context) (*ldap.Session, error) }
Controller define the operations related to LDAP
Click to show internal directories.
Click to hide internal directories.