Download LDAP System Administration
Transcript
[ Team LiB ] B.3 LDAP Tools OpenLDAP's set of LDAP client tools can be used to communicate with any LDAPv3 server (see Table B-6). Table B-6. Command-line options common to ldapsearch, ldapcompare, ldapadd, ldapdelete, ldapmodify, and ldapmodrdn Option Description •-d integer • Specifies what debugging information to log. See the loglevelslapd.conf parameter for a Table of Contents listing of log levels. Index •-D binddn ReviewsSpecifies the DN to use for binding to the LDAP server. •-e Reader Defines Reviews an LDAP control to be used on the current operation. See also the -M option for the •[!]ctrl[=ctrlparam] Errata manageDSAit control. -f filename Specifies the file containing the LDIF entries to be used in the operations. LDAP System Administration By -HGerald URI Carter Defines the LDAP URI to be used in the connection request. -I Enables the SASL "interactive" mode. By default, the client prompts for information only when necessary. Publisher : O'Reilly Pub -k Date : March 2003 Enables Kerberos 4 authentication. : 1-56592-491-6 Enables only the first step of the Kerberos 4 bind for authentication. : 308 ISBN -K Pages -M-MM Enable the Manager DSA IT control. This option is necessary when modifying an entry that is a referral or an alias. -MM requires that the Manager DSA IT control be supported by the server. -n Does not perform the search; just displays what would be done. If you want to be a master of your domain, LDAP System Administration will help you get up and running quickly -O Defines the you SASL security forbook, authentication. See previous information on the regardless of which LDAP version use. After properties reading this even with no previous LDAP experience, you'll sasl-secprops parameter in slapd.conf. security_properties be able to integrate a directory server into essential network services such as mail, DNS, HTTP, and SMB/CIFS. Defines which protocol version to use in the connection (Version 2 or 3). The default is LDAP -P [2|3] [ Team LiB ] v3. -Q Suppresses SASL-related messages such as how the authentication mechanism is used, username, and realm. -R sasl_realm Defines the realm to be used by the SASL authentication mechanism. -U username Defines the username to be used by the SASL authentication mechanism. -v Enables verbose mode. -w password Specifies the password to be used for authentication. -W Instructs the client to prompt for the password. -x Enables simple authentication. The default is to use SASL authentication. -X id Defines the SASL authorization identity. The identity has the form dn:dn or u:user . The default is to use the same authorization identity that the user authenticated. -y passwdfile Instructs the ldap tool to read the password for a simple bind from the given filename. -Y sasl_mechanism Tells the client which SASL mechanism should be used. The bind request will fail if the server does not support the chosen mechanism. -Z-ZZ Issue a StartTLS request. Use of -ZZ makes the support of this request mandatory for a successful connection. B.3.1 ldapadd(1), ldapmodify(1) These tools send updates to directory servers (see Table B-7).