## OpenCA - RA Server Command
## (c) 1998-2001 by Massimiliano Pala and OpenCA Group
##
##   File Name: updateLDAP
##       Brief: Updates LDAP server
## Description: Add issued certificates to LDAP server
##  Parameters: 

require "$common_libs/export-import.lib";

sub cmdUpdateLDAP {

	print startLogPage( gettext("LDAP Updating") );
	print addLogSection( gettext("Adding Certificates ... "));

	if( (addCertsUsers( $tmpdir ) ) == -1 ) {
		print addLogLine(gettext("Failed!")) ;
	}

	print closeLogSection();
	closePage();
}

1;

