# README
项目fork自
https://github.com/korylprince/go-ad-auth.git
增强两个函数功能, 返回, 如账号锁定, 过期, 禁用导致等导致认证或修改密码失败的原因
- UpdatePassowrd
- Authenticate
usage:
go get github.com/LeoBest2/go-ad-auth/v3
# Functions
Authenticate checks if the given credentials are valid, or returns an error if one occurred.username may be either the sAMAccountName or the userPrincipalName.
AuthenticateExtended checks if the given credentials are valid, or returns an error if one occurred.username may be either the sAMAccountName or the userPrincipalName.entry is the *ldap.Entry that holds the DN and any request attributes of the user.If groups is non-empty, userGroups will hold which of those groups the user is a member of.groups can be a list of groups referenced by DN or cn and the format provided will be the format returned.
UpdatePassword checks if the given credentials are valid and updates the password if they are,or returns an error if one occurred.
# Constants
No description provided by the author
Security will default to SecurityNone if not given.
Security will default to SecurityNone if not given.
Security will default to SecurityNone if not given.
Security will default to SecurityNone if not given.
Security will default to SecurityNone if not given.
# Type aliases
SecurityType specifies the type of security to use when connecting to an Active Directory Server.