addcrlldap

来自「Perl写的CA认证程序」· 代码 · 共 32 行

TXT
32
字号
## OpenCA - RA Server Command## (c) 2000-2001 by Michael Bell and OpenCA Group####   File Name: addCertsLDAP##       Brief: Add all certificates to LDAP server## Description: Add all issued certificates to LDAP server##  Parameters: if ( $cmd !~ /addCrlLDAP/i ) {        configError( "Wrong Command Usage ($cmd/importReqs)!" );        exit 1;}                                                                                            print startLogPage ( "Updating CRLs on the LDAP ...");## crlsmy @items = $db->searchItems ( DATATYPE => "CRL" );for my $h (@items) {  print addLogSection ("CRL ".$h->getParsed()->{KEY}." ...");  my $result = eximObjectToLDAP ( CRL => $h );  if ($result and $result->{STATUS}) {    print addLogLine (" Ok.");  } else {    print addErrorLog (" Failed.");  }  print closeLogSection ();}closePage ();1;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?