ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Rebuild ldap index

Rebuild ldap index

原创 Linux操作系统 作者:benjamin_ZX 时间:2010-07-22 09:25:08 0 删除 编辑

The following is a procedure for backing up and/or recovering an Aphelion LDAP server. It is necessary that an LDAP export be performed (simultaneously with Oracle, to keep their data in sync) as part of a regular Windchill backup program.

We strongly recommend NOT using the BT LDAP Browser to perform. an import/export. Using the BT LDAP browser will almost guarantee problems.

其他资讯
Section on exporting (taking a backup):

The following command line utility is the most recommended way to perform. the export. Alternatively, the Aphelion Web Admin Interface may be used. We strongly recommend NOT using the BT LDAP Browser to perform. an import/export.

 

    Unix:   /usr/sbin/lde/export -f /var/lde/PTCLdap/PTCLdap_lde.conf -l
    Windows:
                 1) cd to your virtual drive of Aphelion. Default is R:
                 2) cd to \usr\sbin\lde (This is where you will find the export command)
                 3) R:\usr\sbin\lde>   \usr\sbin\lde\export -f R:\usr\var\lde\PTCLdap\PTCLdap_lde.conf -l


    Important: On Windows, the command will not run properly unless the command prompt is set to the R: drive (type "R:", without quotes, and press enter)


    Now examine the contents of /var/lde/PTCLdap/PTCLdap_database/root.ldif, to ensure that it is
    complete.
  
Section on importing (recovery):

1. Back up all of the directory containing the LDAP database.


    For unix this is /var/lde/PTCLdap
    For windows it is R:\usr\var\lde\PTCLdap. In this example R is the "virtual drive" used by Aphelion. 


    These are the default locations; they can and vary among sites.

2. Stop the server (if running).

  
    Unix:
    /etc/rc2.d/S77cdsDaemon stop
  
    Windows:
    net stop "Aphelion Administration"
    net stop "Aphelion Services"


    NOTE: For windows servers, ensure that the Aphelion Services are started at least once before continuing; this will ensure that the virtual drive (R: generally) has been mapped.

3. Locate the backup LDIF file, and place it in to the following location :


    Unix: /var/lde/PTCLdap/PTCLdap_database/root.ldif
    Windows: R:\usr\var\lde\PTCLdap\PTCLdap_database\root.ldif


    Ensure the file name is all in lower case.

4. Import the data into the database:


    Unix: /usr/sbin/lde/import -f /var/lde/PTCLdap/PTCLdap_lde.conf
    Windows:
                 1) cd to your virtual drive of Aphelion. Default is R:
                 2) cd to \usr\sbin\lde
                 3) R:\usr\sbin\lde> \usr\sbin\lde\import -f R:\usr\var\lde\PTCLdap\PTCLdap_lde.conf


   Important: On Windows, the command will not run properly unless the command prompt is set to the R: drive (type "R:", without quotes, and press enter)

5. Check the output for any errors.

6. Start the Aphelion servers:


    Unix: /etc/rc2.d/S77cdsDaemon start
    Windows: net start "Aphelion Services"
                  net start "Aphelion Administration"

7. Now check the database connection by connecting using an LDAP browser.

备注:不能正常导出,可用带参数的命令
R:\usr\sbin\lde> \usr\sbin\lde\export -f R:\usr\var\lde\PTCLdap\PTCLdap_lde.conf -l add -R

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24106960/viewspace-668703/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: Mylove1.zip
请登录后发表评论 登录
全部评论

注册时间:2010-06-17

  • 博文量
    69
  • 访问量
    39488