Write hash password to LDAP when creating a new user
- by alibaba
I am working on a project with a central user database system. One of the requirements of the system is that there should be only one set of users for all the application.
FreeRADIUS and Samba are two my applications that both use LDAP as their backend. Since users must be the same for the entire system that contains many other applications, I have to read the list of users from the central database and recreate them in the LDAP directories for Samba and FreeRADIUS.
The problem is that users are sent to me from another entity and I can save them in the database with their hash passwords. I don't have access to their cleartext passwords.
I am wondering if I could enter directly a hash password for a new user in LDAP with my preferred hash mechanism. If not, can any one tell me what strategy I have to use?
I am running my server on UBUNTU 12.04 and all other applications are the latest versions. My database system is PostgreSQL 9.2.
Thank you