pdbedit - Export to LDIF

Jelmer Vernooij jelmer at vernstok.nl
Mon Jun 7 17:44:56 GMT 2004


On Mon, Jun 07, 2004 at 11:33:22AM -0500, Anthony Liguori wrote about 'Re: pdbedit - Export to LDIF':
> On Mon, 2004-06-07 at 09:48, Julius Enarusai wrote:
> > It appears to me that most people agree that the need for a faster means 
> > of adding/exporting users to LDAP do exist. So, I will rework the patch, 
> > removing the code from pdbedit and create a new write-only backend 
> > similar to pdb_xml. This would allow the current pdbedit to import users 
> > from tdb_sam and export to tdb_ldif or something similar. Comments?
> It's beginning to seem like most of the options are ugly in some way. 
> Jim and I have discussed this a bit and this is what we've come up with
> as potential options:

> 1) Develop a separate tool that lives in examples/
>  Pros: simple, independent on Samba
>  Cons: requires knowledge of tdbsam format
Cons: Only works with tdbsam..

> 2) Modifications to pdbedit to improve performance of LDAP import via
> ldif
>  Pros: simple, does not modify passdb interface
>  Cons: hackish, does it handle posixAccount stuff?

> 3) Modification of pdb interface to allow bulk updates, either by a new
> call that adds multiple users at once or by some sort of bulk update
> flag that lets a backend cache adds until the bulk update is done.
>  Pros: least-ugly solution, most flexible in the long run
>  Cons: could be a bit of work, adds yet another call to the pdb
> interface.
I'd certainly go for this option (using a new call)... not all backends 
would have to implement such a backend, but it could help performance 
where necessary.



Jelmer Vernooij <jelmer at samba.org> - http://jelmer.vernstok.nl/
OSS Contributions in the last 3 days: 
ptabtools: 49 %, samba: 50 %

More information about the samba-technical mailing list