1 .TH SLAPPASSWD 8C "RELEASEDATE" "OpenLDAP LDVERSION"
2 .\" Copyright 1998-2013 The OpenLDAP Foundation All Rights Reserved.
3 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 slappasswd \- OpenLDAP password utility
14 .BR \-g \||\| \-s \ \fIsecret\fR \||\| \fB\-T \ \fIfile\fR]
18 .BI \-c \ salt-format\fR]
22 .BI \-o \ option\fR[ = value\fR]]
27 is used to generate an userPassword value
32 configuration directive or the
35 configuration directive.
43 Generate RFC 2307 userPassword values (the default). Future
44 versions of this program may generate alternative syntaxes
45 by default. This option is provided for forward compatibility.
53 are absent, the user will be prompted for the secret to hash.
58 are mutually exclusive flags.
66 are absent, the user will be prompted for the secret to hash.
71 are mutually exclusive flags.
78 are mutually exclusive flags.
81 Hash the contents of the file.
86 are absent, the user will be prompted for the secret to hash.
91 and mutually exclusive flags.
94 If \fB\-h\fP is specified, one of the following RFC 2307 schemes may
104 Note that scheme names may need to be protected, due to
108 from expansion by the user's command interpreter.
113 use the SHA-1 algorithm (FIPS 160-1), the latter with a seed.
118 use the MD5 algorithm (RFC 1321), the latter with a seed.
125 indicates that the new password should be added to userPassword as
129 is used, this flag is incompatible with option
132 .BI \-c \ crypt-salt-format
133 Specify the format of the salt passed to
135 when generating {CRYPT} passwords.
136 This string needs to be in
138 format and may include one (and only one)
141 This conversion will be substituted with a string of random
142 characters from [A\-Za\-z0\-9./]. For example,
144 provides a two character salt and
149 to use an MD5 algorithm and provides
150 8 random characters of salt.
153 which provides 31 characters of salt.
156 Omit the trailing newline; useful to pipe the credentials
159 .BI \-o \ option\fR[ = value\fR]
164 Possible generic options/values are:
167 module\-path=<pathspec> (see `\fBmodulepath\fP' in slapd.conf(5))
168 module\-load=<filename> (see `\fBmoduleload\fP' in slapd.conf(5))
171 You can load a dynamically loadable password hash module by
174 The practice of storing hashed passwords in userPassword violates
175 Standard Track (RFC 4519) schema specifications and may hinder
176 interoperability. A new attribute type, authPassword, to hold
177 hashed passwords has been defined (RFC 3112), but is not yet
181 It should also be noted that the behavior of
183 is platform specific.
184 .SH "SECURITY CONSIDERATIONS"
185 Use of hashed passwords does not protect passwords during
186 protocol transfer. TLS or other eavesdropping protections
187 should be in-place before using LDAP simple bind.
189 The hashed password values should be protected as if they
190 were clear text passwords.
196 .BR slapd\-config (5),
201 "OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)