[sork] passwd: using multiple backends simultaneously

Jared redjar at redjar.org
Mon Jun 2 07:16:12 PDT 2003


Hello.  Forgive me if this has been covered already.  I've read the 
passwd module docs and tried to search the sork mailing list archives 
but haven't found an answer to my question.

I'm wondering if it's already possible or if someone can tell me how to 
hack a way to use more than one passwd module backend at once, or 
stated another way, "chain" them together so both backends are called 
at the same time.

I am implementing an LDAP server which stores users unix passwords as 
well as LANmanager and NT passwords.  My hope is to use the horde 
passwd module to keep these in sync.  For example, when a user changes 
their password all three LDAP attributes get updated at the same time.

I've got horde passwd to change the userPassword field using the LDAP 
backend, and I've also got it to change the lmPassword and ntPassword 
fields on the LDAP database using the smbpasswd backend.  However, only 
one backend is used at a time, which requires the user to go through 
the process twice.  Once with the LDAP backend selected, and then again 
with the smbpasswd backend selected.

Has someone already done this?  Or is there a somewhat simple way to 
modify the passwd module to do this?

Thanks!
-jared



More information about the sork mailing list