rsyncd users/passwords in a database (mysql, postgresql)?

Tomasz Chmielewski mangoo at
Sat May 29 11:49:55 MDT 2010

Am 29.05.2010 19:17, Wayne Davison wrote:
> On Thu, May 27, 2010 at 8:45 AM, Tomasz Chmielewski <mangoo at
> <mailto:mangoo at>> wrote:
>     Is it possible to make rsync (in daemon mode) fetch the users from a
>     database (mysql, postgresql), instead of storing them in plain text
>     "secrets file"?
> That is not currently possible, but would be fairly easy to add in
> authenticate.c -- look for the get_secret() function.  If you change
> that to do a DB connection and construct a query from the module and
> user values, it could populate the "secret" buffer (using up to "len"
> bytes) with any found secret.

Still, if I understand correctly, I would need plain text passwords in 
the database?

I.e. I wouldn't be able to use a md5 / sha password from some other user 
auth system without changing rsync protocol?

Tomasz Chmielewski

More information about the rsync mailing list