pdbedit - Export to LDIF

Anthony Liguori aliguori at us.ibm.com
Mon Jun 7 16:33:22 GMT 2004

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

2) Modifications to pdbedit to improve performance of LDAP import via
 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

What does everyone else think?  Am I missing something?


Anthony Liguori
Linux/Active Directory Interoperability
Linux Technology Center (LTC) - IBM Austin
E-mail: aliguori at us.ibm.com
Phone: (512) 838-1208
Tie Line: 678-1208

More information about the samba-technical mailing list