Documentation ¶
Overview ¶
Copyright 2020 ForgeRock AS.
Package ldap provides ldap client access to our DS deployment. Used to manage users, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DSConnection ¶
type DSConnection struct { URL string DN string Password string Log logr.Logger // contains filtered or unexported fields }
DSConnection parameters for managing the DS ldap service
func (*DSConnection) BindPassword ¶ added in v0.0.5
func (ds *DSConnection) BindPassword(DN, password string) error
BindPassword tries to bind as the DN with the password. This is used to test the password to see if we need to change it. Return nil if the password is OK, err otherwise
func (*DSConnection) Connect ¶
func (ds *DSConnection) Connect() error
Connect to LDAP server via admin credentials
func (*DSConnection) GetMonitorData ¶
func (ds *DSConnection) GetMonitorData() error
GetMonitorData returns cn=monitor data. We use thi for status updates. todo: What kinds of data do we want?
func (*DSConnection) UpdatePassword ¶
func (ds *DSConnection) UpdatePassword(DN, newPassword string) error
UpdatePassword changes the password for the user identified by the DN. This is done as an administrative password change The old password is not required.
Click to show internal directories.
Click to hide internal directories.