Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review 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
Christopher Ng
OpenLDAP
Commits
3553f9aa
Commit
3553f9aa
authored
24 years ago
by
Kurt Zeilenga
Browse files
Options
Downloads
Patches
Plain Diff
Fix #ifdefs when --disable-crypt
parent
4efcc974
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/liblutil/passwd.c
+8
-1
8 additions, 1 deletion
libraries/liblutil/passwd.c
with
8 additions
and
1 deletion
libraries/liblutil/passwd.c
+
8
−
1
View file @
3553f9aa
...
...
@@ -104,15 +104,20 @@ static int chk_kerberos(
const
struct
berval
*
cred
);
#endif
#ifdef SLAPD_CRYPT
static
int
chk_crypt
(
const
struct
pw_scheme
*
scheme
,
const
struct
berval
*
passwd
,
const
struct
berval
*
cred
);
#if defined( HAVE_GETSPNAM ) \
|| ( defined( HAVE_GETPWNAM ) && defined( HAVE_PW_PASSWD ) )
static
int
chk_unix
(
const
struct
pw_scheme
*
scheme
,
const
struct
berval
*
passwd
,
const
struct
berval
*
cred
);
#endif
#endif
/* password hash routines */
...
...
@@ -132,9 +137,11 @@ static struct berval *hash_md5(
const
struct
pw_scheme
*
scheme
,
const
struct
berval
*
passwd
);
#ifdef SLAPD_CRYPT
static
struct
berval
*
hash_crypt
(
const
struct
pw_scheme
*
scheme
,
const
struct
berval
*
passwd
);
#endif
static
const
struct
pw_scheme
pw_schemes
[]
=
...
...
@@ -155,10 +162,10 @@ static const struct pw_scheme pw_schemes[] =
#ifdef SLAPD_CRYPT
{
{
sizeof
(
"{CRYPT}"
)
-
1
,
"{CRYPT}"
},
chk_crypt
,
hash_crypt
},
#endif
# if defined( HAVE_GETSPNAM ) \
|| ( defined( HAVE_GETPWNAM ) && defined( HAVE_PW_PASSWD ) )
{
{
sizeof
(
"{UNIX}"
)
-
1
,
"{UNIX}"
},
chk_unix
,
NULL
},
# endif
#endif
#ifdef SLAPD_CLEARTEXT
...
...
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