Skip to content

Commit a0b734f

Browse files
committed
docs(readme): add ResetPasswordForSAMAccountName to features and examples
- Update Password Management feature description - Add password reset to authentication examples - Include admin reset in API reference quick start
1 parent 32a7eb6 commit a0b734f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ user, err := client.CheckPasswordForSAMAccountName("username", "password")
101101
- 👥 **User Management** - Type-safe user operations with automatic attribute mapping and validation
102102
- 🏢 **Group Operations** - Simplified group queries and membership management across AD and OpenLDAP
103103
- 💻 **Computer Management** - Active Directory computer object support with automatic schema detection
104-
- 🔑 **Password Management** - Secure password changes with automatic LDAPS enforcement and policy validation
104+
- 🔑 **Password Management** - Secure password changes and admin resets with automatic LDAPS enforcement and policy validation
105105
- 🛡️ **Active Directory Support** - Native AD features like SAMAccountName, UPN, and nested group resolution
106106
-**Connection Pooling** - Automatic connection management with health checks, retry logic, and resource cleanup
107107
- 🎯 **Smart Caching** - Configurable caching layer that reduces server load for repeated queries
@@ -158,7 +158,7 @@ func main() {
158158
Comprehensive examples are available in the [examples](examples/) directory:
159159

160160
- **[Basic Usage](examples/basic-usage/)** - Finding users, groups, and computers
161-
- **[Authentication](examples/authentication/)** - User authentication and password changes
161+
- **[Authentication](examples/authentication/)** - User authentication, password changes, and admin resets
162162
- **[User Management](examples/user-management/)** - Creating, updating, and managing users
163163

164164
## API Reference
@@ -205,6 +205,10 @@ err := client.DeleteUser("cn=John Doe,ou=Users,dc=example,dc=com")
205205
group, err := client.FindGroupByDNContext(ctx, "cn=Admins,dc=example,dc=com")
206206
// Caching happens automatically if config.EnableCache is true
207207
err := client.AddUserToGroup(userDN, groupDN)
208+
209+
// Password management
210+
err := client.ChangePasswordForSAMAccountName("jdoe", "oldPass", "newPass")
211+
err := client.ResetPasswordForSAMAccountName("jdoe", "newPass") // Admin reset
208212
```
209213

210214
See the [Go Reference](https://pkg.go.dev/github.com/netresearch/simple-ldap-go) for complete API documentation.

0 commit comments

Comments
 (0)