Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

RSS

ldapknife (9) Versions 0.0.22

Installs ldapknife.pl to /usr/local/bin

Berkshelf/Librarian
Policyfile
Knife
cookbook 'ldapknife', '~> 0.0.22'
cookbook 'ldapknife', '~> 0.0.22', :supermarket
knife cookbook site install ldapknife
knife cookbook site download ldapknife
README
Dependencies
Quality 33%

Travis-ci status: Build Status

DESCRIPTION

  • ldapknife.pl is a command-line utility mainly used to do mass deletions from an OpenLDAP/AD directory by building an LDIF on-the-fly and using it as input.

  • ldapknife.pl will be mostly useful during the test/dev phase of building an OpenLDAP directory.

  • You may also find it useful when doing mass deletions or purging of old data from an OpenLDAP directory.

ATTRIBUTES

  • There are currently no attributes for this cookbook.

USAGE

The primary function of ldapknife.pl is to delete ALL distinguished names ( e.g. DNs ) from a given search base. This option is envoked by the --delall option. NOTE: --delall requires -b, -D, -H & --obj options to be given.

You can also execute ./ldapknife.pl --help for the help menu.

EXAMPLE1: ./ldapknife.pl --delall yes -D "cn=Manager,dc=example,dc=com" -b "cn=TestUsers,dc=example,dc=com" -H ldap://ldap.example.com --obj objectclass=person --dir /tmp -w SECRET_PASS_HERE

In EXAMPLE1, ldapknife.pl will DELETE ALL objects of type person in the container cn=TestUsers,dc=example,dc=com by connecting to ldap server ldap://ldap.example.com, building the file /tmp/delete_ldif.ldif and using it as input to build another LDIF which will contain changtype:delete for each DN found in the TestUsers container. The password for the admin account "cn=Manager,dc=example,dc=com" is specified with the -w option.

NOTE: If the --dir option is not given, files delete_all_dn_formatted.ldif, delete_all_dn.ldif, deleteAllDN.ldif, and delete_ldif.ldif will get written to PWD.

NOTE ABOUT *.LDIF FILES

  • delete_dn.ldif - LDIF produced by calling ldapsearchand passing it required parameters.
  • delete_all_dn_formatted.ldif - Same as delete_dn.ldif with line wrapping removed.
  • delete_all_dn.ldif - LDIF of all DNs from delete_all_dn_formatted.ldif of changetype:delete.
  • deleteAllDN.ldif - Same as delete_all_dn.ldif with last blank line removed.

TO-DO-LIST

  • Implement ability to backup an OpenLDAP directory using slapcat.
  • Implement ability to delete OpenLDAP database transaction database logs using slapd_db_archive.

Dependent cookbooks

yum >= 0.0.0
perl >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.22 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.0.22 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.0.22 failed this metric

FC064: Ensure issues_url is set in metadata: ldapknife/metadata.rb:1
FC065: Ensure source_url is set in metadata: ldapknife/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ldapknife/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: ldapknife/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ldapknife/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.0.22 passed this metric

No Binaries Metric
            

0.0.22 passed this metric

Publish Metric
            

0.0.22 passed this metric

Supported Platforms Metric
            

0.0.22 failed this metric

ldapknife should declare what platform(s) it supports.

Testing File Metric
            

0.0.22 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.0.22 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number