Multiple passdb backends

Jelmer Vernooij jelmer at
Wed Feb 27 09:45:07 GMT 2002


Samba currently supports only one passdb backend at a time. It would
be nice to be able to load multiple backends, just like nsswitch and
pam. When multiple backends are supported, it would be possible to
(just some examples): 

- use users from a ldap database and a mysql database
- use a global ldap database and use a 'local' smbpasswd database
- use two mysql databases (on two servers, for example)

feedback, please :)

I don't know yet how exactly this should be implemented, but one way
would be to check the multiple backends in the pdb_*() functions in
passdb/pdb_interface.c(those without the 'context' argument). 

Btw. What do you use when programming on samba? I'm currently just
using using vim + gdb + tail -f /usr/local/samba/var/log.*, but I'm
looking for a more easy way.


Jelmer Vernooij <jelmer at> -
Development And Underdevelopment:
 18:26:18 up 21:29, 10 users,  load average: 2.17, 1.58, 1.44

More information about the samba-technical mailing list