首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

OpenDS LDAP Client Utilities Commands - ldappasswordmodify

2012-10-26 
OpenDS LDAP Client Utilities Commands -- ldappasswordmodifyldappasswordmodifyThe ldappasswordmodify

OpenDS LDAP Client Utilities Commands -- ldappasswordmodify
ldappasswordmodify

The ldappasswordmodify command modifies LDAP passwords.

Synopsis

ldappasswordmodify options

Description

The ldappasswordmodify command can be used to change or reset user passwords with the LDAP password modify extended operation as defined in RFC3062OpenDS LDAP Client Utilities Commands - ldappasswordmodify

?

Example?100 Modifying and Generating a Password for Another User

The following command connects to the host (-h) using port 1389 (-p), specifies the bind DN (-D), specifies the bind password file (-j), and modifies and generates a password for another user (-a) connecting over simple authentication. For Windows platforms, specify the file where the bind password file resides, for example, -j \temp\bindPasswordFile.

$ ldappasswordmodify -h hostname -p 1389 -D "cn=Directory Manager" -j /tmp/bindPasswordFile \-a "dn:uid=abergin,ou=People,dc=example,dc=com"The LDAP password modify operation was successfulGenerated Password:  blb44hjm

?

Example?101 Modifying a Password for Another User

The following command connects to the host (-h) using port 1389 (-p), specifies the bind DN (-D), specifies the bind password file (-j), and modifies the password with a new one (-N) for another user (-a) connecting over simple authentication. For Windows platforms, specify the bind password file (for example, -j \temp\bindPasswordFile) and the new password file (for example, -N \temp\newPassword).

$ ldappasswordmodify -h hostname -p 1389 -D "cn=Directory Manager" -j /tmp/bindPasswordFile\-a "dn:uid=abergin,ou=People,dc=example,dc=com" -N /tmp/newPasswordThe LDAP password modify operation was successful

?

Exit Codes

An exit code of 0 indicates that the operation completed successfully. A nonzero exit code indicates that an error occurred during processing.

Using a CLI Properties File

The directory server supports the use of a properties file that passes in any default option values used with the ldappasswordmodify command. The properties file is convenient when working in different configuration environments, especially in scripted or embedded applications. See Using a Properties File With Server Commands for more information.

The following options can be stored in a properties file:

authzID
bindDN
bindPassword
bindPasswordFile
currentPassword
currentPasswordFile
control
hostname
keyStorePassword
keyStorePasswordFile
keyStorePath
newPassword
newPasswordFile
port
provideDNForAuthzID
trustAll
trustStorePassword
trustStorePasswordFile
trustStorePath
useSSL
useStartTLS

Entries in the properties file have the following format:

toolname.propertyname=propertyvalue

?

For example:

ldappasswordmodify.ldapport=12345

?

Location UNIX and Linux: install-dir/bin/ldappasswordmodify
Windows: install-dir\bat\ldappasswordmodify.bat

热点排行