Class LdapPasswordChangeProvider
Represents a LDAP password change provider using Novell LDAP Connection.
Inheritance
System.Object
LdapPasswordChangeProvider
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Zyborg.PassCore.PasswordProvider.LDAP
Syntax
public class LdapPasswordChangeProvider : IPasswordChangeProvider
Constructors
LdapPasswordChangeProvider(ILogger, IOptions<LdapPasswordChangeOptions>)
Initializes a new instance of the LdapPasswordChangeProvider class.
Declaration
public LdapPasswordChangeProvider(ILogger logger, IOptions<LdapPasswordChangeOptions> options)
Parameters
Type | Name | Description |
---|---|---|
ILogger | logger | The logger. |
IOptions<LdapPasswordChangeOptions> | options | The _options. |
Methods
PerformPasswordChange(String, String, String)
Performs the password change using the credentials provided.
Declaration
public ApiErrorItem PerformPasswordChange(string username, string currentPassword, string newPassword)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username. |
System.String | currentPassword | The current password. |
System.String | newPassword | The new password. |
Returns
Type | Description |
---|---|
ApiErrorItem | The API error item or null if the change password operation was successful. |
Remarks
Based on:
- https://www.cs.bham.ac.uk/~smp/resources/ad-passwds/
- https://support.microsoft.com/en-us/help/269190/how-to-change-a-windows-active-directory-and-lds-user-password-through
- https://ltb-project.org/documentation/self-service-password/latest/config_ldap#active_directory
- https://technet.microsoft.com/en-us/library/ff848710.aspx?f=255&MSPPError=-2147217396
Check the above links for more information.