[GH-ISSUE #1089] Add / Modify Password from external i. e. Perl Net::LDAP #393

Closed
opened 2026-02-27 08:17:03 +03:00 by kerem · 7 comments
Owner

Originally created by @sr-it1 on GitHub (Jan 29, 2025).
Original GitHub issue: https://github.com/lldap/lldap/issues/1089

Hi all,

I'm trying to add or modify a users password via Perl Net::LDAP and was not successful.

I tried to set a password in three different ways to the attribute userPassword:

  1. clear text
  2. a base64 encoded SHA hash / prefix {SHA}
  3. a base64 encoded salted SHA hash / prefix {SSHA}

Do I miss sth? Any ideas?

KR,
Sascha

Originally created by @sr-it1 on GitHub (Jan 29, 2025). Original GitHub issue: https://github.com/lldap/lldap/issues/1089 Hi all, I'm trying to add or modify a users password via Perl Net::LDAP and was not successful. I tried to set a password in three different ways to the attribute userPassword: 1. clear text 2. a base64 encoded SHA hash / prefix {SHA} 3. a base64 encoded salted SHA hash / prefix {SSHA} Do I miss sth? Any ideas? KR, Sascha
kerem closed this issue 2026-02-27 08:17:03 +03:00
Author
Owner

@nitnelave commented on GitHub (Jan 29, 2025):

You need an LDAP extended operation, password modify.

<!-- gh-comment-id:2620875690 --> @nitnelave commented on GitHub (Jan 29, 2025): You need an LDAP extended operation, password modify.
Author
Owner

@nitnelave commented on GitHub (Jan 29, 2025):

(and clear text)

<!-- gh-comment-id:2620876162 --> @nitnelave commented on GitHub (Jan 29, 2025): (and clear text)
Author
Owner

@sr-it1 commented on GitHub (Jan 29, 2025):

@nitnelave: Thanks, I did no see the woods for the trees,,,, setting the password works like charm now ;-)

The next thing I'm facing now is group membership with a modify to the group dn
changes => add => member => dn
results in "Invalid username: Unexpected DN format."

<!-- gh-comment-id:2621315422 --> @sr-it1 commented on GitHub (Jan 29, 2025): @nitnelave: Thanks, I did no see the woods for the trees,,,, setting the password works like charm now ;-) The next thing I'm facing now is group membership with a modify to the group dn changes => add => member => dn results in "Invalid username: Unexpected DN format."
Author
Owner

@nitnelave commented on GitHub (Jan 29, 2025):

Are you trying to add a group membership from LDAP? I don't think that's supported. LDAP is mostly read-only, apart from setting passwords and creating users.

<!-- gh-comment-id:2621320505 --> @nitnelave commented on GitHub (Jan 29, 2025): Are you trying to add a group membership from LDAP? I don't think that's supported. LDAP is mostly read-only, apart from setting passwords and creating users.
Author
Owner

@sr-it1 commented on GitHub (Jan 29, 2025):

Yes, that's what I'm trying to do.

If this is not supposed to work, then I'm fine with this, but I would appreciate this as feature.

<!-- gh-comment-id:2621433811 --> @sr-it1 commented on GitHub (Jan 29, 2025): Yes, that's what I'm trying to do. If this is not supposed to work, then I'm fine with this, but I would appreciate this as feature.
Author
Owner

@nitnelave commented on GitHub (Jan 29, 2025):

It shouldn't be too hard to implement, but I don't have time to do it. If you want to take a crack at it, I can help and review PRs.

<!-- gh-comment-id:2621451373 --> @nitnelave commented on GitHub (Jan 29, 2025): It shouldn't be too hard to implement, but I don't have time to do it. If you want to take a crack at it, I can help and review PRs.
Author
Owner

@nitnelave commented on GitHub (Feb 22, 2025):

Closing in favor of #643

<!-- gh-comment-id:2676387046 --> @nitnelave commented on GitHub (Feb 22, 2025): Closing in favor of #643
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/lldap-lldap#393
No description provided.