LDAPCommon commands
1. ldapadd-X-d "cn = manager, ou = xxzx, O = netcenter, Dc = ujs, Dc = Edu, Dc = cn"-w-F first. ldif
2. ldapsearch-X-B "ou = xxzx, O = netcenter, Dc = ujs, Dc = Edu, Dc = cn" '(objectclass = *)'
Ldapsearch-X-B "ou = xxzx, O = netcenter, Dc = ujs, Dc = Edu, Dc = cn" '(| (uid = *)) 'or condition Query
3. ldapsearch Data Backup
Ldapsearch-H hostip-X-B "DC = JS, Dc = Edu, Dc = cn"-d "cn = admin, Dc = ujs, Dc = Edu, dc = cn "-lll" (objectclass = *) "-W Password
For lll, see man ldapsearch, which indicates that the output is the third version of ldif.
4. ldapdelete-m-X-d "cn = manager, Dc = Edu, Dc = cn"-W "ou = xxzx, O = netcenter, Dc = JS, Dc = Edu, dc = cn"
You can use-m to delete referral. For more information, see distributed OpenLDAP directory summary.
5. When using referral, both rootdn and suffix must be consistent.
6. ldapmodify-m-X-d "cn = LDAP, Dc = ujs, Dc = Edu, Dc = cn"-w-F first. ldif