Forum OpenACS Q&A: Moving hashed passwords to LDAP

Collapse
Posted by Jay Dubanik on
Can somebody point me on how to move hashed passwords to LDAP. LDAP/OACS is working properly for newly registered users and for users that exists in LDAP.
We would like to add our users from Oacs to LDAP directory however we have difficulty in approaching the hashed password issue.
Collapse
Posted by Jay Dubanik on
Just to add to this:

Passwords that I want to move to LDAP were created in 4.6.3
using:
set salt [sec_random_token]
set hashed_password [ns_sha1 "$password$salt"]
db_transaction {
set user_id [db_exec_plsql user_insert {
begin
:1 := acs.add_user(user_id => :user_id,
email => :email,
url => :url,
first_names => :first_names,
last_name => :last_name,
password => :hashed_password,
salt => :salt,

NEW LDAP/OACS is based on 5.2