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
9a279634
Commit
9a279634
authored
20 years ago
by
Howard Chu
Browse files
Options
Downloads
Patches
Plain Diff
Rename k5key symbols, add k5key_hash
parent
fc337704
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/slapd-modules/smbk5pwd/smbk5pwd.c
+15
-4
15 additions, 4 deletions
contrib/slapd-modules/smbk5pwd/smbk5pwd.c
with
15 additions
and
4 deletions
contrib/slapd-modules/smbk5pwd/smbk5pwd.c
+
15
−
4
View file @
9a279634
...
...
@@ -199,8 +199,9 @@ static int smbk5pwd_op_bind(
return
SLAP_CB_CONTINUE
;
}
static
LUTIL_PASSWD_CHK_FUNC
chk_k5key
;
static
const
struct
berval
scheme
=
BER_BVC
(
"{K5KEY}"
);
static
LUTIL_PASSWD_CHK_FUNC
k5key_chk
;
static
LUTIL_PASSWD_HASH_FUNC
k5key_hash
;
static
const
struct
berval
k5key_scheme
=
BER_BVC
(
"{K5KEY}"
);
/* This password scheme stores no data in the userPassword attribute
* other than the scheme name. It assumes the invoking entry is a
...
...
@@ -216,7 +217,7 @@ static const struct berval scheme = BER_BVC("{K5KEY}");
* storage so we can retrieve it here. The Operation provides all
* the necessary context for us to get Entry from the database.
*/
static
int
chk_
k5key
(
static
int
k5key
_chk
(
const
struct
berval
*
sc
,
const
struct
berval
*
passwd
,
const
struct
berval
*
cred
,
...
...
@@ -281,6 +282,16 @@ static int chk_k5key(
be_entry_release_r
(
op
,
e
);
return
rc
;
}
static
int
k5key_hash
(
const
struct
berval
*
scheme
,
const
struct
berval
*
passwd
,
struct
berval
*
hash
,
const
char
**
text
)
{
ber_dupbv
(
hash
,
(
struct
berval
*
)
&
k5key_scheme
);
return
LUTIL_PASSWD_OK
;
}
#endif
/* DO_KRB5 */
static
int
smbk5pwd_exop_passwd
(
...
...
@@ -522,7 +533,7 @@ int smbk5pwd_init() {
#ifdef DO_KRB5
smbk5pwd
.
on_bi
.
bi_op_bind
=
smbk5pwd_op_bind
;
lutil_passwd_add
(
(
struct
berval
*
)
&
scheme
,
chk
_
k5key
,
NULL
);
lutil_passwd_add
(
(
struct
berval
*
)
&
k5key_
scheme
,
k5key_
chk
,
k5key
_hash
);
#endif
return
overlay_register
(
&
smbk5pwd
);
...
...
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