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] |