Password Backends - anymore info out there?

Paul Griffith paulg at cs.yorku.ca
Fri Jan 7 20:01:05 GMT 2005


Hmmm....

Looking at your code and the examples I made a plug-in, but Samba is
unable to load the plug-in.

[2005/01/07 13:33:23, 2, effective(0, 0), real(0, 0)]
passdb/pdb_interface.c:make_pdb_methods_name(654)
  No builtin backend found, trying to load plugin
[2005/01/07 13:33:23, 5, effective(0, 0), real(0, 0)]
lib/module.c:smb_probe_module(101)
  Probing module 'pdb_udb'
[2005/01/07 13:33:23, 5, effective(0, 0), real(0, 0)]
lib/module.c:smb_probe_module(112)
  Probing module 'pdb_udb': Trying to load from
  /usr/local/samba/lib/pdb/pdb_udb.so
[2005/01/07 13:33:23, 2, effective(0, 0), real(0, 0)]
lib/module.c:do_smb_load_module(63)
  Module '/usr/local/samba/lib/pdb/pdb_udb.so' loaded
[2005/01/07 13:33:23, 0, effective(0, 0), real(0, 0)]
passdb/pdb_interface.c:make_pdb_methods_name(664)
  No builtin nor plugin backend for pdb_udb found
[2005/01/07 13:33:23, 1, effective(0, 0), real(0, 0)]
passdb/pdb_interface.c:make_pdb_context_list(765)
  Loading pdb_udb failed!

It looks like make_pdb_methods_name in  source/passdb/pb_interface.c 
is failing to find the entry to the backend. 

In my pdb_udb.c file I have:

NTSTATUS pdb_udb_init(void)
{
   return smb_register_passdb(PASSDB_INTERFACE_VERSION, "udb",udb_init);
}

Which should call udb_init to register the passdb.

In smb.conf I have

passdb backend = pdb_udb

I compiled pdb_udb.c using the Makefile in examples/pdb/


Any ideas or clues??


On Thu, Dec 02, 2004 at 12:02:46PM +0100, Heinrich Mislik wrote:
> On 1 Dec 2004, at 14:59, Gerald (Jerry) Carter wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > Paul Griffith wrote:
> > | Greetings,
> > |
> > | Other that the mysql example included with the lastest
> > | version of Samba, is there any other sources of
> > | information on creating your own password backend? I am
> > | looking at moving from Samba v2.2.x, with a our
> > | own modified passdb to Samba v3.09.
> > 
> > There's no docs on how to do it if that's what you mean.
> > Looking at the passdb/pdb_*.c files is the best best.
> 
> I used examples/pdb/pdb_test.c as a starter and you can take a look at
> 
> http://homepage.univie.ac.at/heinrich.mislik/pdb_oracle/
> 
> to see how it worked for me.
> 
> Greetings
> 
> Heinrich Mislik
> 
> -- 
> Heinrich Mislik
> Zentraler Informatikdienst der Universitaet Wien
> A-1010 Wien, Universitaetsstrasse 7
> Tel.: (+43 1) 4277-14056, Fax: (+43 1) 4277-9140



More information about the samba-technical mailing list