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
James Lowden
OpenLDAP
Commits
584e0fd0
Commit
584e0fd0
authored
16 years ago
by
Quanah Gibson-Mount
Browse files
Options
Downloads
Patches
Plain Diff
Fix bogus whitespace
parent
1aae84df
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
contrib/slapd-modules/smbk5pwd/smbk5pwd.c
+32
-32
32 additions, 32 deletions
contrib/slapd-modules/smbk5pwd/smbk5pwd.c
with
32 additions
and
32 deletions
contrib/slapd-modules/smbk5pwd/smbk5pwd.c
+
32
−
32
View file @
584e0fd0
...
...
@@ -91,8 +91,8 @@ typedef struct smbk5pwd_t {
#ifdef DO_SAMBA
/* How many seconds before forcing a password change? */
time_t
smb_must_change
;
/* How many seconds after allowing a password change? */
time_t
smb_can_change
;
/* How many seconds after allowing a password change? */
time_t
smb_can_change
;
#endif
}
smbk5pwd_t
;
...
...
@@ -571,28 +571,28 @@ static int smbk5pwd_exop_passwd(
ml
->
sml_nvalues
=
NULL
;
}
if
(
pi
->
smb_can_change
)
{
ml
=
ch_malloc
(
sizeof
(
Modifications
));
ml
->
sml_next
=
qpw
->
rs_mods
;
qpw
->
rs_mods
=
ml
;
keys
=
ch_malloc
(
2
*
sizeof
(
struct
berval
)
);
keys
[
0
].
bv_val
=
ch_malloc
(
LDAP_PVT_INTTYPE_CHARS
(
long
)
);
keys
[
0
].
bv_len
=
snprintf
(
keys
[
0
].
bv_val
,
LDAP_PVT_INTTYPE_CHARS
(
long
),
"%ld"
,
slap_get_time
()
+
pi
->
smb_can_change
);
BER_BVZERO
(
&
keys
[
1
]
);
ml
->
sml_desc
=
ad_sambaPwdCanChange
;
ml
->
sml_op
=
LDAP_MOD_REPLACE
;
if
(
pi
->
smb_can_change
)
{
ml
=
ch_malloc
(
sizeof
(
Modifications
));
ml
->
sml_next
=
qpw
->
rs_mods
;
qpw
->
rs_mods
=
ml
;
keys
=
ch_malloc
(
2
*
sizeof
(
struct
berval
)
);
keys
[
0
].
bv_val
=
ch_malloc
(
LDAP_PVT_INTTYPE_CHARS
(
long
)
);
keys
[
0
].
bv_len
=
snprintf
(
keys
[
0
].
bv_val
,
LDAP_PVT_INTTYPE_CHARS
(
long
),
"%ld"
,
slap_get_time
()
+
pi
->
smb_can_change
);
BER_BVZERO
(
&
keys
[
1
]
);
ml
->
sml_desc
=
ad_sambaPwdCanChange
;
ml
->
sml_op
=
LDAP_MOD_REPLACE
;
#ifdef SLAP_MOD_INTERNAL
ml
->
sml_flags
=
SLAP_MOD_INTERNAL
;
ml
->
sml_flags
=
SLAP_MOD_INTERNAL
;
#endif
ml
->
sml_numvals
=
1
;
ml
->
sml_values
=
keys
;
ml
->
sml_nvalues
=
NULL
;
}
ml
->
sml_numvals
=
1
;
ml
->
sml_values
=
keys
;
ml
->
sml_nvalues
=
NULL
;
}
}
#endif
/* DO_SAMBA */
be_entry_release_r
(
op
,
e
);
...
...
@@ -626,11 +626,11 @@ static ConfigTable smbk5pwd_cfats[] = {
"( OLcfgCtAt:1.2 NAME 'olcSmbK5PwdMustChange' "
"DESC 'Credentials validity interval' "
"SYNTAX OMsInteger SINGLE-VALUE )"
,
NULL
,
NULL
},
{
"smbk5pwd-can-change"
,
"time"
,
2
,
2
,
0
,
ARG_MAGIC
|
ARG_INT
|
PC_SMB_CAN_CHANGE
,
smbk5pwd_cf_func
,
"( OLcfgCtAt:1.3 NAME 'olcSmbK5PwdCanChange' "
"DESC 'Credentials minimum validity interval' "
"SYNTAX OMsInteger SINGLE-VALUE )"
,
NULL
,
NULL
},
{
"smbk5pwd-can-change"
,
"time"
,
2
,
2
,
0
,
ARG_MAGIC
|
ARG_INT
|
PC_SMB_CAN_CHANGE
,
smbk5pwd_cf_func
,
"( OLcfgCtAt:1.3 NAME 'olcSmbK5PwdCanChange' "
"DESC 'Credentials minimum validity interval' "
"SYNTAX OMsInteger SINGLE-VALUE )"
,
NULL
,
NULL
},
{
NULL
,
NULL
,
0
,
0
,
0
,
ARG_IGNORED
}
};
...
...
@@ -677,13 +677,13 @@ smbk5pwd_cf_func( ConfigArgs *c )
#endif
/* ! DO_SAMBA */
break
;
case
PC_SMB_CAN_CHANGE
:
case
PC_SMB_CAN_CHANGE
:
#ifdef DO_SAMBA
c
->
value_int
=
pi
->
smb_can_change
;
c
->
value_int
=
pi
->
smb_can_change
;
#else
/* ! DO_SAMBA */
c
->
value_int
=
0
;
c
->
value_int
=
0
;
#endif
/* ! DO_SAMBA */
break
;
break
;
case
PC_SMB_ENABLE
:
c
->
rvalue_vals
=
NULL
;
...
...
@@ -844,7 +844,7 @@ smbk5pwd_modules_init( smbk5pwd_t *pi )
{
"sambaNTPassword"
,
&
ad_sambaNTPassword
},
{
"sambaPwdLastSet"
,
&
ad_sambaPwdLastSet
},
{
"sambaPwdMustChange"
,
&
ad_sambaPwdMustChange
},
{
"sambaPwdCanChange"
,
&
ad_sambaPwdCanChange
},
{
"sambaPwdCanChange"
,
&
ad_sambaPwdCanChange
},
{
NULL
}
},
#endif
/* DO_SAMBA */
...
...
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