Documentation ¶
Index ¶
- func GetGidCounterOL() int
- func GetMaxGidAD() int
- func GetMaxGidOL() int
- func GetMaxUidAD() int
- func GetMaxUidOL() int
- func GetUidCounterOL() int
- func InitConfig(c string)
- func InitLogger(cfg LoggingConfig)
- func ListGroupOL()
- func ListUserOL()
- func Max(x, y int) int
- func NextFreeGid(verbose bool) int
- func NextFreeUid(verbose bool) int
- func SetADConfigDefaults()
- func SetApiserverConfigDefaults()
- func SetConfigDefaults()
- func SetLoggingConfigDefaults(app string)
- func SetOpenldapConfigDefaults()
- func UpdateGidCounterOL(gidNumber int)
- func UpdateUidCounterOL(uidNumber int)
- type ADConfig
- type ApiserverConfig
- type LdapGroup
- type LdapUser
- type LoggingConfig
- type LxldapConfig
- type OpenldapConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGidCounterOL ¶
func GetGidCounterOL() int
func GetUidCounterOL ¶
func GetUidCounterOL() int
func InitLogger ¶
func InitLogger(cfg LoggingConfig)
func ListGroupOL ¶
func ListGroupOL()
func NextFreeGid ¶
func NextFreeUid ¶
func SetADConfigDefaults ¶
func SetADConfigDefaults()
SetADConfigDefaults sets defautl values to OpenLDAP config
func SetApiserverConfigDefaults ¶
func SetApiserverConfigDefaults()
SetApiserverConfigDefaults sets defautl values to API server config
func SetLoggingConfigDefaults ¶
func SetLoggingConfigDefaults(app string)
func SetOpenldapConfigDefaults ¶
func SetOpenldapConfigDefaults()
SetOpenldapConfigDefaults sets defautl values to OpenLDAP config
func UpdateGidCounterOL ¶
func UpdateGidCounterOL(gidNumber int)
func UpdateUidCounterOL ¶
func UpdateUidCounterOL(uidNumber int)
Types ¶
type ADConfig ¶
type ADConfig struct { Server string Port string BaseDN string OUusers string OUgroups string DN string PS string }
ADConfig structure to store OpenLDAP config
type ApiserverConfig ¶
ApiserverConfig structure to store API config
type LoggingConfig ¶
type LxldapConfig ¶
type LxldapConfig struct { Openldap OpenldapConfig `mapstructure:"openldap"` Ad ADConfig `mapstructure:"ad"` Logging LoggingConfig `mapstructure:"logging"` Apiserver ApiserverConfig `mapstructure:"apiserver"` }
LxldapConfig lxldap configuration data
var Config *LxldapConfig
Config to storage
Source Files ¶
Click to show internal directories.
Click to hide internal directories.