Oracle OID/LDAP User (group) export and export detailed

Source: Internet
Author: User
Tags ldap ldapsearch


The user of the OID has some properties that are not operational, such as Authpassword, so you need to export these properties (similar to auto-generated primary keys in db) when exporting.
Therefore, when OID is exported, it is important to note that common tools do not meet the needs, the simplest way is to use the command:


The code is as follows

Ldapsearch-h 10.8.2.12-p 3060-d "Cn=orcladmin"-w welcome2-l-S One-b "cn=users,dc=fmw007,dc=com" "cn=*" DN sn cn u ID userpassword objectclass >users.ldif &


This allows you to export the appropriate properties.



Import user Script


The code is as follows

Ldapadd-h


Ldapsearch Command usage:


  code is as follows

Ldapsearch- H Oid_hostname
-D "BINDDN"
-w password
[-y "proxy_dn"]
[-P ldap_port]
[-v ldap_version]
-B "BaseDN '
{-S base|one|sub}
{' filter_string ' [attributes]|-f input_file}
[-A]
[-A Never|always|search|find]
[-F separator]
[-S] [-r] [-I 1|0] [-t] [-u] [-l|-x] [-b] [-m] [-v] [-n]
[l time_limit]
[-Z size_limit] [-O ref_hop_limit]
[-u ssl_auth_mode {-W wallet_location-p Wallet_password}]
[-D debug_level]
[-e Characte] R_set]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.