net rpc vampire performance
Stefan Gohmann
gohmann at univention.de
Tue Jun 21 11:41:25 GMT 2005
Hi,
some comments for this patch:
- with ldap base l=ldapbase we got:
Malloc failure in sstring_sub
- during the vampire process there are some ldif files under /tmp readable for
everyone:
# net rpc vampire ldif /root/ldif -s /tmp/pdc-import.12327/smb.conf -wNTDOM02
-SPDC02 -UAdministrator%password -d0
Segmentation fault (core dumped)
# ls -la /tmp/*.ldif
-rw-r--r-- 1 root root 23628409 Jun 12 15:08 /tmp/add.ldif
-rw-r--r-- 1 root root 0 Jun 12 09:55 /tmp/mod.ldif
#
- there are some "Segmentation fault" in fetch_group_info_to_ldif and
fetch_account_info_to_ldif
Greetings
Stefan
Am Donnerstag, 16. Juni 2005 10:27 schrieb Don Watson:
> Hi,
>
> Attached is a patch to help improve vampire performance. It works by
> writing the vampired information to a file in the form of ldap adds and
> mods. Using the data in this file, ldif files can be created against which
> ldapadd and ldapmodify can be run to create the ldap database for the Samba
> PDC.
>
> Using this technique, it is not necessary to pre-populate the ldap database
> with smbldap-populate. The code takes care of the initial population.
>
> The code is activated with the command "net rpc vampire ldif <output
> filename> -S <existing domain machine> -U <domain admin%domain passwd>".
>
> Note that this code could be modified to create output in any desired
> format, such as XML.
>
> Let me know what you think.
--
Stefan Gohmann <gohmann at univention.de> fon: +49 421 22 232- 0
Entwicklung Linux for Your Business
Univention GmbH http://www.univention.de/ fax: +49 421 22 232-99
More information about the samba-technical
mailing list