Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jaak Ristioja
OpenLDAP
Commits
a54b9cde
Commit
a54b9cde
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Rework last commit for better forward compatibility
parent
be654e45
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/man/man8/slappasswd.8
+9
-3
9 additions, 3 deletions
doc/man/man8/slappasswd.8
servers/slapd/tools/slappasswd.c
+7
-3
7 additions, 3 deletions
servers/slapd/tools/slappasswd.c
with
16 additions
and
6 deletions
doc/man/man8/slappasswd.8
+
9
−
3
View file @
a54b9cde
...
...
@@ -7,8 +7,9 @@ slappasswd \- OpenLDAP password utility
.SH SYNOPSIS
.B SBINDIR/slappasswd
.B [\-v]
.B [\-u]
.B [\-s secret]
.B [\-
u
hash]
.B [\-
h
hash]
.B
.LP
.SH DESCRIPTION
...
...
@@ -25,12 +26,16 @@ coniguration directive.
.TP
.B \-v
enable verbose mode.
.B \-u
generate RFC2307 userPassword values (the default). Future
versions of this program may generate alternative syntaxes
by default. This option is provided for forward compatibility.
.TP
.BI \-s " secret"
The secret to hash. If not provided, the user will be prompted
for the secret to hash.
.TP
If -
u
is specified, one of the following RFC2307 schemes may
If -
h
is specified, one of the following RFC2307 schemes may
be specified:
.IR {CRYPT} ,
.IR {MD5} ,
...
...
@@ -43,7 +48,8 @@ The default is
.SH LIMITATIONS
The practice storing hashed passwords in userPassword violates
Standard Track (RFC2256) schema specifications and may hinder
interoperability.
interoperability. A new attribute type to hold hashed
passwords is needed.
.SH "SECURITY CONSIDERATIONS"
Use of hashed passwords does not protect passwords during
protocol transfer. TLS or other eavesdropping protections
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/tools/slappasswd.c
+
7
−
3
View file @
a54b9cde
...
...
@@ -29,8 +29,9 @@ usage(const char *s)
{
fprintf
(
stderr
,
"Usage: %s [options]
\n
"
" -
u
hash
\t
password scheme
\n
"
" -
h
hash
\t
password scheme
\n
"
" -s secret
\t
new password
\n
"
" -u
\t\t
generate RFC2307 values
\n
"
" -v
\t\t
increase verbosity
\n
"
,
s
);
...
...
@@ -50,10 +51,10 @@ main( int argc, char *argv[] )
struct
berval
*
hash
=
NULL
;
while
(
(
i
=
getopt
(
argc
,
argv
,
"d:
u
:s:v"
))
!=
EOF
)
"d:
h
:s:v
u
"
))
!=
EOF
)
{
switch
(
i
)
{
case
'
u
'
:
/* scheme */
case
'
h
'
:
/* scheme */
scheme
=
strdup
(
optarg
);
case
's'
:
/* new password (secret) */
...
...
@@ -68,6 +69,9 @@ main( int argc, char *argv[] )
}
break
;
case
'u'
:
/* RFC2307 userPassword */
break
;
case
'v'
:
/* verbose */
verbose
++
;
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment